diff --git a/radiocampus/static/radiocampus/radiocampus.css b/radiocampus/static/radiocampus/radiocampus.css index e0b5e65..5e7dd8b 100644 --- a/radiocampus/static/radiocampus/radiocampus.css +++ b/radiocampus/static/radiocampus/radiocampus.css @@ -17,6 +17,8 @@ --button-hv-fg: #1d3cab; --button-active-fg: white; --button-active-bg: #738ef2; + --cover-small-h: 10rem; + --cover-small-w: 10rem; --heading-font-family: "campus_grotesk"; --header-height: 320px; --heading-link-hv-fg: #aa217b; @@ -139,6 +141,15 @@ a.heading.title:hover { .header.has-cover { min-height: unset; } +.grid.listfive { + grid-template-columns: 1fr 1fr 1fr 1fr 1fr; + grid-auto-flow: dense; + gap: 0.2rem; +} +.grid.listfive .media-content { + margin-top: 0.4rem; + font-size: 0.84rem; +} .today { color: yellow; font-size: 1.4em !important; @@ -162,6 +173,10 @@ a.heading.title:hover { .page section.container { margin-top: 0; } +.program-list { + flex-direction: column; +} + .radiocampus-grid { display: block; } @@ -217,6 +232,7 @@ a.heading.title:hover { } } + @media screen and (max-width: 1024px) { :root { --header-height: 200px; @@ -237,6 +253,9 @@ a.heading.title:hover { .dropdown.is-right .dropdown-menu { left: 0; } + .grid.listfive { + grid-template-columns: 1fr 1fr 1fr; + } #grandlogo { display: none; } @@ -276,6 +295,12 @@ a.heading.title:hover { } } +@media screen and (max-width: 900px) { + .grid.listfive { + grid-template-columns: 1fr 1fr; + } +} + .list-item .headings { margin-bottom: .2rem !important; } diff --git a/radiocampus/templates/aircox/page_list.html b/radiocampus/templates/aircox/page_list.html index 48b92a2..59ffb9a 100644 --- a/radiocampus/templates/aircox/page_list.html +++ b/radiocampus/templates/aircox/page_list.html @@ -1,12 +1,46 @@ -{% extends "aircox/page_list.html" %} +{% extends "aircox/basepage_list.html" %} {% comment %}Display a list of Pages{% endcomment %} {% load i18n aircox %} +{% block secondary-nav %} +{% if not parent and categories %} + +{% endif %} +{% endblock %} + +{% block title %} +{% if parent %}{{ parent.title }} +{% else %}{{ block.super }} +{% endif %} +{% endblock %} + +{% block header %} +{% if page and not object %} + {% with page as object %} + {{ block.super }} + {% endwith %} +{% else %} + {{ block.super }} +{% endif %} +{% endblock %} + {% block breadcrumbs %} {% if parent and model.list_url_name %} {% include "./widgets/breadcrumbs.html" with page=parent %} {{ model|verbose_name:True }} -{% elif page.title == "Podcasts" and not category %} {% elif page and model.list_url_name %} {{ page.title }} {% if category %} @@ -25,3 +59,24 @@ {% endblock %} {% block content-container %}{% endblock %} + +{% block list-pagination %} +{% include "./widgets/page_pagination.html" %} +{% endblock %} + +{% block list-container %} +
+{% block list %} +{% with has_headline=True %} + {% for object in object_list %} + {% block list_object %} + {% page_widget item_widget|default:"program" object %} + {% endblock %} + {% empty %} + {% blocktranslate %}There is nothing published here...{% endblocktranslate %} + {% endfor %} +{% endwith %} +{% endblock %} +
+ +{% endblock %} diff --git a/radiocampus/templates/aircox/podcast_list.html b/radiocampus/templates/aircox/podcast_list.html new file mode 100644 index 0000000..f393acd --- /dev/null +++ b/radiocampus/templates/aircox/podcast_list.html @@ -0,0 +1,62 @@ +{% extends "aircox/basepage_list.html" %} +{% comment %}Display a list of Pages{% endcomment %} +{% load i18n aircox %} + +{% block secondary-nav %} +{% if not parent and categories %} + +{% endif %} +{% endblock %} + +{% block title %} +{% if parent %}{{ parent.title }} +{% else %}{{ block.super }} +{% endif %} +{% endblock %} + +{% block header %} +{% if page and not object %} + {% with page as object %} + {{ block.super }} + {% endwith %} +{% else %} + {{ block.super }} +{% endif %} +{% endblock %} + +{% block breadcrumbs %} +{% if parent and model.list_url_name %} + {% include "./widgets/breadcrumbs.html" with page=parent %} + {{ model|verbose_name:True }} +{% elif page.title == "Podcasts" and not category %} +{% elif page and model.list_url_name %} + {{ page.title }} + {% if category %} + + {{ category.title }} + + {% endif %} +{% else %} + {{ model|verbose_name:True }} + {% if category %} + + {{ category.title }} + + {% endif %} +{% endif %} +{% endblock %} + +{% block content-container %}{% endblock %} diff --git a/radiocampus/templates/aircox/widgets/program.html b/radiocampus/templates/aircox/widgets/program.html new file mode 100644 index 0000000..64cce70 --- /dev/null +++ b/radiocampus/templates/aircox/widgets/program.html @@ -0,0 +1,42 @@ +{% extends "./preview.html" %} +{% load i18n aircox %} + +{% block tag-class %}{{ block.super }} list-item is-fullwidth{% endblock %} + +{% block headings %} +{% endblock %} + +{% block inner %} +{% block headings-container %}{{ block.super }}{% endblock %} +{% block content-container %} +
+ {% if object.cover and not no_cover %} + + + {% endif %} +
+ + {% if object|model_name == "Episode" %} +
+ {{ object.pub_date|date:"d/m/Y" }}
+
+ {% endif %} + + {% block title %}{{ title|default:"" }}{% endblock %} + + + {% block subtitle %}{{ subtitle|default:"" }}{% endblock %} + +
+ +
+ {% block content %}{{ block.super }}{% endblock %} +
+ {% block actions-container %}{{ block.super }}{% endblock %} +
+
+{% endblock %} + +{% endblock %}