This repository has been archived on 2025-05-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
s2forums/apps/forum/templates/forum/index.html
2009-01-12 15:02:48 +02:00

79 lines
2.7 KiB
HTML

{% extends 'forum/base.html' %}
{% load forum_extras %}
{% load i18n %}
{% block content %}
<div id="idx1" class="blocktable">
{% for iter in cats %}
<h2>
<a href="{% url forum_feed "category" %}{{ iter.cat.id }}/"><img src="{{ MEDIA_URL }}/forum/img/feed-icon-small.png" alt="[RSS Feed]" title="[RSS Feed]" style="float:right;" /></a>
<span>{{ iter.cat }}</span>
</h2>
<div class="box">
<div class="inbox">
<table cellspacing="0">
<thead>
<tr>
<th class="tcl" scope="col">{% trans "Forum" %}</th>
<th class="tc2" scope="col">{% trans "Topics" %}</th>
<th class="tc3" scope="col">{% trans "Posts" %}</th>
<th class="tcr" scope="col">{% trans "Last post" %}</th>
</tr>
</thead>
<tbody>
{% for forum in iter.forums %}
{% include 'forum/forum_row.html' %}
{% endfor %}
</tbody>
</table>
</div>
</div>
{% endfor %}
</div>
<div id="brdstats" class="block">
<h2><span>{% trans "Board information" %}</span></h2>
<div class="box">
<div class="inbox">
<dl class="conr">
<dt><strong>{% trans "Board statistics" %}</strong></dt>
<dd>{% trans "Total number of registered users:" %} <strong>{{ users }}</strong></dd>
<dd>{% trans "Total number of topics:" %} <strong>{{ topics }}</strong></dd>
<dd>{% trans "Total number of posts:" %} <strong>{{ posts }}</strong></dd>
</dl>
<dl class="conl">
<dt><strong>{% trans "User information" %}</strong></dt>
<dd>{% trans "Newest registered user:" %} {{ last_user|profile_link }}</dd>
<dd>{% trans "Registered users online:" %} <strong>{{ online_count }}</strong></dd>
<dd>{% trans "Guests online:" %} <strong>{{ guest_count }}</strong></dd>
</dl>
<dl id="onlinelist" class= "clearb">
{% if online_count %}
<dt><strong>{% trans "Online:" %} </strong></dt>
{% for online in users_online %}
<dd>{{ online|profile_link }}</dd>
{% endfor %}
{% endif %}
</dl>
</div>
</div>
</div>
{% endblock %}
{% block controls %}
<dl id="searchlinks" class="conl">
<dt><strong>{% trans "Search links" %}</strong></dt>
<dd><a href="{% url search %}?action=show_24h">{% trans "Show recent posts" %}</a></dd>
<dd><a href="{% url search %}?action=show_unanswered">{% trans "Show unanswered posts" %}</a></dd>
{% if user.is_authenticated %}
<dd><a href="{% url search %}?action=show_subscriptions">{% trans "Show your subscribed topics" %}</a></dd>
<dd><a href="{% url search %}?action=show_user&amp;user_id={{ request.user.id }}">{% trans "Show your posts" %}</a></dd>
{% endif %}
</dl>
{% endblock %}