leftypol/templates/themes/categories/news.html

78 lines
2.2 KiB
HTML
Raw Normal View History

2012-02-14 10:26:08 +00:00
{% filter remove_whitespace %}
<div class="content">
2021-01-17 22:57:28 +00:00
{{ boardlist.top }}
2012-04-22 06:52:24 +00:00
<header>
<h1>{{ settings.title }}</h1>
<div class="subtitle">{{ settings.subtitle }}</div>
2021-01-17 23:08:09 +00:00
<link rel="stylesheet" media="screen" href="{{ config.url_stylesheet }}">
2012-04-22 06:52:24 +00:00
</header>
2012-02-14 10:26:08 +00:00
<div class="ban">
{% if not news %}
2013-07-27 05:43:09 +00:00
<p style="text-align:center" class="unimportant">{% trans %}(No news to show.){% endtrans %}</p>
2012-02-14 10:26:08 +00:00
{% else %}
{% for entry in news %}
<h2 id="{{ entry.id }}">
{% if entry.subject %}
{{ entry.subject }}
{% else %}
2013-07-27 05:43:09 +00:00
<em>{% trans %}no subject{% endtrans %}</em>
2012-02-14 10:26:08 +00:00
{% endif %}
2013-07-27 05:43:09 +00:00
<span class="unimportant"> &mdash; {% trans %}by{% endtrans %} {{ entry.name }} {% trans %}at{% endtrans %} {{ entry.time|date(config.post_date) }}</span>
2012-02-14 10:26:08 +00:00
</h2>
<p>{{ entry.body }}</p>
{% endfor %}
{% endif %}
</div>
2021-01-20 02:27:00 +00:00
{% if stats %}
<div class="ban post">
<h2 id="post-statistics">
{% trans "Post Statistics" %}
</h2>
<table class="modlog" style="width: 50%; text-align: left;">
<thead>
<tr>
<th>Board</th>
<th>PPH</th>
<th>Recent IPs</th>
</tr>
</thead>
<tbody>
<tr>
<td class="minimal">
<span>{% trans Total %}</span>
</td>
<td class="minimal">
<span>{{ stats.pph }}</span>
</td>
<td class="minimal">
<span>{{ stats.recent_ips }}</span>
</td>
</tr>
{% for boardStat in stats.boards %}
<tr>
<td class="minimal">
<span>{{ boardStat.title }}</span>
</td>
<td class="minimal">
<span>{{ boardStat.pph }}</span>
</td class="minimal">
<span>{{ boardStat.recent_ips }}</span>
</td>
</tr>
2021-01-20 02:38:18 +00:00
{% endfor %}
2021-01-20 02:27:00 +00:00
</tbody>
</table>
</div>
{% endif %}
<footer>
2021-01-20 02:27:00 +00:00
<p class="unimportant" style="margin-top:20px;text-align:center;">- Tinyboard +
<a href="https://engine.vichan.net/">vichan</a> {{ config.version }} -
<br>Tinyboard Copyright &copy; 2010-2014 Tinyboard Development Group
<br><a href="https://engine.vichan.net/">vichan</a> Copyright &copy; 2012-2016 vichan-devel
2021-01-18 04:38:18 +00:00
<br><br>
<br><b>Leftypol.org is not currently under investigation by any Federal, State, or Local Authorities.</b></p>
</footer>
</div>
2012-02-14 10:26:08 +00:00
{% endfilter %}