Rename app, update css classes
This commit is contained in:
parent
7685fb7599
commit
0b19f6c697
|
|
@ -3,7 +3,7 @@
|
|||
<div v-for="teaser in newsTeasers" :key="teaser.id" class="news-teasers__teaser teaser">
|
||||
<a :href="teaser.newsArticleUrl">
|
||||
<img :src="teaser.imageUrl" class="teaser__image" />
|
||||
<p class="teaser__image-source"><a class="tiny" :href="teaser.imageSource">Quelle {{teaser.imageSource}}</a></p>
|
||||
<p class="teaser__image-source"><a class="tiny-text" :href="teaser.imageSource">Quelle {{teaser.imageSource}}</a></p>
|
||||
<h4 class="teaser__title">{{teaser.title}}</h4>
|
||||
<p class="teaser__description">{{teaser.description}}</p>
|
||||
<p class="teaser__date">{{teaser.displayDate}}</p>
|
||||
|
|
|
|||
|
|
@ -81,7 +81,7 @@ input, textarea, select, button {
|
|||
color: $color-brand-dark;
|
||||
}
|
||||
|
||||
.tiny {
|
||||
.tiny-text {
|
||||
font-size: toRem(11px);
|
||||
font-family: $sans-serif-font-family;
|
||||
font-weight: $font-weight-regular;
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ import graphene
|
|||
from django.conf import settings
|
||||
from graphene_django.debug import DjangoDebug
|
||||
|
||||
from newsteaser.schema_public import AllNewsTeasersQuery
|
||||
from news.schema_public import AllNewsTeasersQuery
|
||||
from users.mutations_public import UserMutations
|
||||
from registration.mutations_public import RegistrationMutations
|
||||
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@ INSTALLED_APPS = [
|
|||
'surveys',
|
||||
'notes',
|
||||
'registration',
|
||||
'newsteaser',
|
||||
'news',
|
||||
|
||||
'wagtail.contrib.forms',
|
||||
'wagtail.contrib.redirects',
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
from django.contrib import admin
|
||||
from newsteaser.models import NewsTeaser
|
||||
from news.models import NewsTeaser
|
||||
|
||||
|
||||
@admin.register(NewsTeaser)
|
||||
|
|
@ -2,4 +2,4 @@ from django.apps import AppConfig
|
|||
|
||||
|
||||
class UserConfig(AppConfig):
|
||||
name = 'newsteaser'
|
||||
name = 'news'
|
||||
|
|
@ -6,7 +6,7 @@ from factory.fuzzy import FuzzyDateTime
|
|||
from pytz import UTC
|
||||
|
||||
from core.factories import fake, fake_title
|
||||
from newsteaser.models import NewsTeaser
|
||||
from news.models import NewsTeaser
|
||||
|
||||
|
||||
class NewsTeaserFactory(factory.django.DjangoModelFactory):
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
from django.core.management import BaseCommand
|
||||
|
||||
from newsteaser.factories import NewsTeaserFactory
|
||||
from newsteaser.models import NewsTeaser
|
||||
from news.factories import NewsTeaserFactory
|
||||
from news.models import NewsTeaser
|
||||
|
||||
|
||||
class Command(BaseCommand):
|
||||
|
|
@ -5,8 +5,8 @@ from graphene import relay
|
|||
from graphene_django import DjangoObjectType
|
||||
from graphene_django.filter import DjangoFilterConnectionField
|
||||
|
||||
from newsteaser.date_helper import month_to_german_string
|
||||
from newsteaser.models import NewsTeaser
|
||||
from news.date_helper import month_to_german_string
|
||||
from news.models import NewsTeaser
|
||||
|
||||
|
||||
class NewsTeaserNode(DjangoObjectType):
|
||||
|
|
@ -18,7 +18,7 @@ class NewsTeaserNode(DjangoObjectType):
|
|||
interfaces = (relay.Node,)
|
||||
|
||||
def resolve_display_date(self, *args, **kwargs):
|
||||
# play it safe, locale might not be installed in platform
|
||||
# play it safe, locale might not be installed on platform
|
||||
try:
|
||||
locale.setlocale(locale.LC_TIME, "de_DE")
|
||||
return self.date.strftime("%-d. %B %Y")
|
||||
|
|
@ -2,7 +2,7 @@ from unittest import TestCase
|
|||
from graphene.test import Client
|
||||
|
||||
from api.schema_public import schema
|
||||
from newsteaser.factories import NewsTeaserFactory
|
||||
from news.factories import NewsTeaserFactory
|
||||
|
||||
|
||||
class NewsTeaserTests(TestCase):
|
||||
Loading…
Reference in New Issue