-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathseries-index.html
42 lines (35 loc) · 1.67 KB
/
series-index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
{% extends "zinnia/base.html" %}
{% load i18n comments zinnia thumbnail %}
{% block "title" %}Blog series{% endblock %}
{% block "metadescr" %}List of blog series{% endblock %}
{% block content %}
{% for series in all_series %}
<div class="mb-5 series">
{% if series.image %}
{% thumbnail series.image "120x120" crop="center" format="PNG" as im %}
<img src="{{ im.url }}" alt="Series illustration" class="pull-left thumbnail" width="{{ im.width }}" height="{{ im.height }}" />
{% endthumbnail %}
{% endif %}
<div class="innerdiv">
{# <h2 id="serie-{{ serie.pk }}"><a href="{% url 'dolweb.blog.views.serie_view' uid=serie.pk %}">{{ serie.name }}</a> #}
<h2 id="series-{{ series.pk }}">{{ series.name }}
<small class="text-muted">{% blocktrans count count=series.entries.count %}
{{ count }} entry
{% plural %}
{{ count }} entries
{% endblocktrans %}</small>
</h2>
<p>
{% trans "RSS feed:" %} <a href="{% url 'dolweb_blog_series_feed' pk=series.pk %}" class="rss-tag"><i class="bi bi-rss" role="button" aria-label="RSS"></i></a>
</p>
<ol>
{% for entry in series.entries_reversed %}
<li><a href="{{ entry.get_absolute_url }}">{{ entry.title }}</a></li>
{% endfor %}
</ol>
</div>
</div>
{% empty %}
<p>{% trans "No blog series yet." %}</p>
{% endfor %}
{% endblock %}