source: djangobb/djangobb_forum/templates/forum/forum.html @ 279:bde1c620c072

Last change on this file since 279:bde1c620c072 was 279:bde1c620c072, checked in by alafin <alafin@…>, 3 years ago

fix #71 Permissions of feeds

File size: 3.9 KB
Line 
1{% extends 'forum/base.html' %}
2{% load forum_extras %}
3{% load i18n %}
4
5{% block title %} / {{ forum.name }}{% endblock %}
6{% block content %}
7<div class="linkst">
8        <div class="inbox">
9                <p class="pagelink conl">{% pagination %}</p>
10                {% if user.is_authenticated %}
11                        <p class="postlink conr"><a href="{% url djangobb:add_topic forum.id %}">{% trans "New topic" %}</a></p>
12                {% endif %}
13                <ul><li><a href="{% url djangobb:index %}">{% trans "Root" %}</a> </li><li>&raquo; {{ forum.name }}</li></ul>
14                <div class="clearer"></div>
15        </div>
16</div>
17<div id="vf" class="blocktable">
18        <h2>
19                <a href="{% url djangobb:forum_forum_feed forum.id %}"><img src="{{ MEDIA_URL }}/forum/img/feed-icon-small.png"  alt="[RSS Feed]" title="[RSS Feed]" class="rss" /></a>
20                <b><span>{{ forum.name }}</span></b>
21        </h2>
22        <div class="box">
23                <div class="inbox">
24                        <table cellspacing="0">
25                        <thead>
26                                <tr>
27                                        <th class="tcl" scope="col">{% trans "Topic" %}</th>
28                                        <th class="tc2" scope="col">{% trans "Replies" %}</th>
29                                        <th class="tc3" scope="col">{% trans "Views" %}</th>
30                                        <th class="tcr" scope="col">{% trans "Last post" %}</th>
31                                </tr>
32                        </thead>
33                        <tbody>
34                        {% if topics %}
35                                {% for topic in topics %}
36                                        <tr>
37                                                <td class="tcl">
38                                                        <div class="intd">
39                                                                <div {% if topic.sticky %}class="sticky"{% else %}{% if topic.closed %}class="closed"{% else %}{% if topic|has_unreads:user %}class="inew"{% else %}class="icon"{% endif %}{% endif %}{% endif %}><div class="nosize"><!-- --></div></div>
40                                                                <div class="tclcon">
41                                                                        {% if topic.sticky %}
42                                                                                {% trans "Sticky:" %}
43                                                                        {% endif %}
44                                                                        {% if topic|has_unreads:user %}
45                                                                                <strong>{% link topic %} <span class="byuser">{% trans "by" %} {{ topic.user.username }}</span></strong>
46                                                                        {% else %}
47                                                                                {% link topic %} <span class="byuser">{% trans "by" %} {{ topic.user.username }}</span>
48                                                                        {% endif %}
49                                                                </div>
50                                                        </div>
51                                                </td>
52                                                <td class="tc2">{{ topic.reply_count }}</td>
53                                                <td class="tc3">{{ topic.views }}</td>
54                                                <td class="tcr"><a href="{{ topic.get_absolute_url }}">{% forum_time topic.updated %}</a> <span class="byuser">{% trans "by" %} {{ topic.last_post.user.username }}</span></td>
55                                        </tr>
56                                {% endfor %}
57                        {% else %}
58                                <tr><td class="djangobbcon1" colspan="4">{% trans "Forum is empty." %}</td></tr>
59                        {% endif %}
60                        </tbody>
61                        </table>
62                </div>
63        </div>
64</div>
65<div class="linkst">
66        <div class="inbox">
67                <p class="pagelink conl">{% pagination %}</p>
68                {% if user.is_authenticated %}
69                        <p class="postlink conr"><a href="{% url djangobb:add_topic forum.id %}">{% trans "New topic" %}</a></p>
70                {% endif %}
71                <ul><li><a href="{% url djangobb:index %}">{% trans "Root" %}</a> </li><li>&raquo; {{ forum.name }}</li></ul>
72                <div class="clearer"></div>
73        </div>
74</div>
75{% if forum_settings.LOFI_SUPPORT %}
76        <div id="brdfooter" class="block">
77                <div class="box">
78                        <div class="inbox" align="center">
79                                <a href="{{ forum.get_absolute_url }}lofi/">Lo-Fi Version</a>
80                                <div class="clearer"></div>
81                        </div>
82                </div>
83        </div>
84{% endif %}
85{% endblock %}
86{% block controls %}
87<div class="conl">
88        <form id="qjump" method="get" action="forum">
89                <div><label>{% trans "Jump to" %}
90                <br />
91                <select name="id" id="forum_id" onchange="window.location=('{% url djangobb:index %}'+this.options[this.selectedIndex].value)">
92                        {% for category in categories %}
93                                <optgroup label="{{ category }}">
94                                        {% for forum in category.forums.all %}
95                                                <option value="{{ forum.id }}">{{ forum.name }}</option>
96                                        {% endfor %}
97                                </optgroup>
98                        {% endfor %}
99                </select>
100                <input type="button" onclick="window.location=('{% url djangobb:index %}'+getElementById('forum_id').value)" value=" {% trans "Go" %} " accesskey="g" />
101                </label></div>
102        </form>
103        {% if moderator %}
104                <p id="modcontrols"><a href="{% url djangobb:moderate forum.id %}">{% trans "Moderate forum" %}</a></p>
105        {% endif %}
106</div>
107{% endblock %}
Note: See TracBrowser for help on using the repository browser.