Files
the-daily-epub/src/epub/templates/in_this_issue.xhtml
T

27 lines
1.4 KiB
HTML

{% extends "base.xhtml" %}
{% block body_class %}in-this-issue{% endblock %}
{% block content %}
<h1>In This Issue</h1>
<p class="stats">{{ stats_line }}</p>
{% for section in sections %}
<h2 class="index-section">{{ section.name }}</h2>
<ul class="index-list">
{% for entry in section.entries %}
<li class="index-entry">
<p class="index-title"><a href="{{ entry.href }}">{{ entry.title }}</a></p>
<p class="index-meta">{{ entry.source }} &#183; {{ entry.reading_minutes }} min read</p>
{% if entry.understanding.kicker.is_some() || entry.understanding.topics.is_some() %}
<p class="rubric">{% if let Some(kicker) = entry.understanding.kicker %}<span class="kicker">{{ kicker }}</span>{% if let Some(topics) = entry.understanding.topics %} &#160; {{ topics }}{% endif %}{% else %}{% if let Some(topics) = entry.understanding.topics %}{{ topics }}{% endif %}{% endif %}</p>
{% endif %}
{% if !entry.understanding.interests.is_empty() %}
<p class="matches">{% for interest in entry.understanding.interests %}{% if !loop.first %}<span class="sep">|</span>{% endif %}<span class="interest">{{ interest.name }}</span>{% endfor %}</p>
{% endif %}
{% if !entry.summary.is_empty() %}
<p class="index-summary">{{ entry.summary }}</p>
{% endif %}
</li>
{% endfor %}
</ul>
{% endfor %}
{% endblock %}