summaryrefslogtreecommitdiff
path: root/templates/_feed_partial.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/_feed_partial.html')
-rw-r--r--templates/_feed_partial.html14
1 files changed, 14 insertions, 0 deletions
diff --git a/templates/_feed_partial.html b/templates/_feed_partial.html
new file mode 100644
index 0000000..e22cdde
--- /dev/null
+++ b/templates/_feed_partial.html
@@ -0,0 +1,14 @@
+{% if active_shelf == 'diary' and grouped_films %}
+ {% for group in grouped_films %}
+ <div class="month-group" data-month="{{ group.month }}">
+ <p class="month-label">{{ group.month }}</p>
+ {% for film in group.films %}
+ {% include "_film_card.html" %}
+ {% endfor %}
+ </div>
+ {% endfor %}
+{% else %}
+ {% for film in films %}
+ {% include "_film_card.html" %}
+ {% endfor %}
+{% endif %}