diff --git a/core/context_processors.py b/core/context_processors.py index f977700..6c08073 100644 --- a/core/context_processors.py +++ b/core/context_processors.py @@ -16,7 +16,7 @@ def load_config(request): return { 'nav': Button.objects.filter(published=True), 'uppernav': UpperButton.objects.filter(published=True), - 'gpw': GrandPrixW.get_current(), + 'gpws': GrandPrixW.get_current(), 'posts': Post.objects.filter(published=True), 'daneadresowe': Data.load(), 'czlonkowie': Member.objects.all(), diff --git a/core/templates/gpw-reverse.html b/core/templates/gpw-reverse.html index c0e285a..28f4b40 100644 --- a/core/templates/gpw-reverse.html +++ b/core/templates/gpw-reverse.html @@ -4,7 +4,7 @@ {% load static tailwind_tags wysiwyg %} {% block content %}
-
+
{% if focus.show_title %}

{{ focus.title }}

{% endif %} diff --git a/core/templates/home.html b/core/templates/home.html index 30b9451..85cd53f 100644 --- a/core/templates/home.html +++ b/core/templates/home.html @@ -1,14 +1,26 @@ {% extends 'base.html' %} {% block title %}Strona główna | pdlzbs{% endblock %} {% load static tailwind_tags wysiwyg %} {% block content %}
-
- {% content gpw %} -
- {% buttons gpw.buttons %} -
-
+ {% for gpw in gpws %} +
+ {% if gpw.show_title %} +

{{ gpw.title }}

+ {% endif %} +
{% readmore gpw %}
+
+ {% buttons gpw.buttons %} +
+
+ {% if not forloop.last %} +
+ {% endif %} {% endfor %} +
+

{href}') - class Meta: + class Meta(OrderableModel.Meta): verbose_name = 'Grand Prix Województwa' verbose_name_plural = 'Grand Prix Województwa' - ordering = ['-year']