diff --git a/aircox/models/station.py b/aircox/models/station.py index ca8a00e..7c9f4fe 100644 --- a/aircox/models/station.py +++ b/aircox/models/station.py @@ -66,6 +66,11 @@ class Station(models.Model): help_text=_("Audio streams urls used by station's player. One url " "a line.") ) + default_cover = FilerImageField( + on_delete=models.SET_NULL, + verbose_name=_('Default pages cover'), null=True, blank=True, + related_name='+', + ) objects = StationQuerySet.as_manager() diff --git a/aircox/templates/aircox/page_list.html b/aircox/templates/aircox/page_list.html index 6f8cc42..8a0b4ad 100644 --- a/aircox/templates/aircox/page_list.html +++ b/aircox/templates/aircox/page_list.html @@ -6,7 +6,7 @@ {% if not parent %}{{ view.model|verbose_name:True|title }} {% else %} {% with parent.title as title %} -{% with model|default:"Publications"|verbose_name:true|capfirst as model %} +{% with model|default:"Publications"|verbose_name:True|capfirst as model %} {% comment %}Translators: title when pages are filtered for a specific parent page, e.g.: Articles of My Incredible Show{% endcomment %} {% blocktrans %}{{ model }} of {{ title }}{% endblocktrans %} {% endwith %} diff --git a/aircox/templates/aircox/widgets/page_item.html b/aircox/templates/aircox/widgets/page_item.html index 2be3cb9..9935a44 100644 --- a/aircox/templates/aircox/widgets/page_item.html +++ b/aircox/templates/aircox/widgets/page_item.html @@ -14,7 +14,7 @@ Context variables:
- +
@@ -29,7 +29,7 @@ Context variables:
{% if has_cover|default_if_none:True %}
-
{% endif %}