1. jgsogo
  2. DjangoBB

Commits

jgsogo  committed 1ca163a Draft

backwards incompatible in django v1.5: name for url as var

  • Participants
  • Parent commits 03ff782
  • Branches django.v1.5

Comments (0)

Files changed (24)

File djangobb_forum/templates/djangobb_forum/add_topic.html

View file
 
 {% block content %}
 <div class="linkst">
-	<div class="inbox">
-		{% if forum %}
-		<ul class="start"><li><a href="{% url djangobb:index %}">{% trans "Root" %}</a> </li><li>&raquo; {% link forum %}</li></ul>
-		{% else %}
-			<ul><li><a href="{% url djangobb:index %}">{% trans "Root" %}</a> </li><li>&raquo; {% link topic.forum %}</li><li>&raquo; {{ topic }}</li></ul>
-		{% endif %}
-		<div class="clearer"></div>
-	</div>
+    <div class="inbox">
+        {% if forum %}
+        <ul class="start"><li><a href="{% url 'djangobb:index' %}">{% trans "Root" %}</a> </li><li>&raquo; {% link forum %}</li></ul>
+        {% else %}
+            <ul><li><a href="{% url 'djangobb:index' %}">{% trans "Root" %}</a> </li><li>&raquo; {% link topic.forum %}</li><li>&raquo; {{ topic }}</li></ul>
+        {% endif %}
+        <div class="clearer"></div>
+    </div>
 </div>
 {% include "djangobb_forum/includes/post_form.html" %}
 {% endblock %}

File djangobb_forum/templates/djangobb_forum/base.html

View file
 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
-	<title>{{ forum_settings.FORUM_BASE_TITLE }} {% block title %}{% endblock %}</title>
-	<meta name="description" content="{{ forum_settings.FORUM_META_DESCRIPTION }} " />
-	<meta name="keywords" content="{{ forum_settings.FORUM_META_KEYWORDS }}" />
-	<meta http-equiv="content-type" content="text/html; charset=utf-8" />
-	
-	{% set_theme_style request.user %}
+    <title>{{ forum_settings.FORUM_BASE_TITLE }} {% block title %}{% endblock %}</title>
+    <meta name="description" content="{{ forum_settings.FORUM_META_DESCRIPTION }} " />
+    <meta name="keywords" content="{{ forum_settings.FORUM_META_KEYWORDS }}" />
+    <meta http-equiv="content-type" content="text/html; charset=utf-8" />
 
-	<link rel="alternate" type="application/atom+xml" href="{% url djangobb:forum_posts_feed %}" title="{% trans "Latest posts on forum" %}" />
-	<link rel="alternate" type="application/atom+xml" href="{% url djangobb:forum_topics_feed %}" title="{% trans "Latest topics on forum" %}" />
+    {% set_theme_style request.user %}
 
-	<link rel="shortcut icon" href="{{ STATIC_URL }}djangobb_forum/favicon.png" type="image/png" />
-	<script type="text/javascript">
-		var STATIC_URL = "{{ STATIC_URL }}";
-		var POST_PREVIEW_URL = "{% url djangobb:post_preview %}";
-	</script>
-	{% if DEBUG %}
-	   <script type="text/javascript" src="{{ STATIC_URL }}admin/js/jquery.js" onerror="JavaScript:alert('Error loading file [' + this.src + '] !');" ></script>
-	{% else %}
-    	<script type="text/javascript" src="{{ STATIC_URL }}admin/js/jquery.min.js" onerror="JavaScript:alert('Error loading file [' + this.src + '] !');" ></script>
-	{% endif %}
-	{% if user.is_authenticated %}
-    	{% if post %}
+    <link rel="alternate" type="application/atom+xml" href="{% url 'djangobb:forum_posts_feed' %}" title="{% trans "Latest posts on forum" %}" />
+    <link rel="alternate" type="application/atom+xml" href="{% url 'djangobb:forum_topics_feed' %}" title="{% trans "Latest topics on forum" %}" />
+
+    <link rel="shortcut icon" href="{{ STATIC_URL }}djangobb_forum/favicon.png" type="image/png" />
+    <script type="text/javascript">
+        var STATIC_URL = "{{ STATIC_URL }}";
+        var POST_PREVIEW_URL = "{% url 'djangobb:post_preview' %}";
+    </script>
+    {% if DEBUG %}
+       <script type="text/javascript" src="{{ STATIC_URL }}admin/js/jquery.js" onerror="JavaScript:alert('Error loading file [' + this.src + '] !');" ></script>
+    {% else %}
+        <script type="text/javascript" src="{{ STATIC_URL }}admin/js/jquery.min.js" onerror="JavaScript:alert('Error loading file [' + this.src + '] !');" ></script>
+    {% endif %}
+    {% if user.is_authenticated %}
+        {% if post %}
             {% with markup=post.markup %}
                 {% include "djangobb_forum/includes/markup_editor.html" %}
             {% endwith %}
                 {% include "djangobb_forum/includes/markup_editor.html" %}
             {% endwith %}
         {% endif %}
-    	<script type="text/javascript">
-    	   $(document).ready(function() {
-    		$(".markup").markItUp(mySettings);
-    	   });
-    	</script>
-	{% endif %}
+        <script type="text/javascript">
+           $(document).ready(function() {
+            $(".markup").markItUp(mySettings);
+           });
+        </script>
+    {% endif %}
 
     <!-- Highlightjs goodies -->
-	<link type="text/css" rel="stylesheet" href="{{ STATIC_URL }}djangobb_forum/css/pygments.css" />
-	{% if highlight_word %}
-		<script type="text/javascript" src="{{ STATIC_URL }}djangobb_forum/js/jquery.highlight-3.pack.js"></script>
-		<script type="text/javascript">
-			$(document).ready(function(){
-				$("div.postmsg").highlight("{{ highlight_word }}");
-			});
-		</script>
-	{% endif %}
-	{% block extra_meta %}{% endblock %}
+    <link type="text/css" rel="stylesheet" href="{{ STATIC_URL }}djangobb_forum/css/pygments.css" />
+    {% if highlight_word %}
+        <script type="text/javascript" src="{{ STATIC_URL }}djangobb_forum/js/jquery.highlight-3.pack.js"></script>
+        <script type="text/javascript">
+            $(document).ready(function(){
+                $("div.postmsg").highlight("{{ highlight_word }}");
+            });
+        </script>
+    {% endif %}
+    {% block extra_meta %}{% endblock %}
 </head>
 <body>
     {% include 'djangobb_forum/header.html' %}
         {% endif %}
     {% endblock messages %}
 
-	{% block content %}{% endblock %}
-	<div id="brdfooter" class="block">
-	<h2><span>{% trans "Board footer" %}</span></h2>
+    {% block content %}{% endblock %}
+    <div id="brdfooter" class="block">
+    <h2><span>{% trans "Board footer" %}</span></h2>
         <div class="box">
             <div class="inbox">
                 {% block controls %}
                     <dl id="searchlinks" class="conl">
                         <dt><strong>{% trans "Search links" %}</strong></dt>
-                        <dd><a href="{% url djangobb:search %}?action=show_24h">{% trans "Show recent posts" %}</a></dd>
-                        <dd><a href="{% url djangobb:search %}?action=show_unanswered">{% trans "Show unanswered posts" %}</a></dd>
+                        <dd><a href="{% url 'djangobb:search' %}?action=show_24h">{% trans "Show recent posts" %}</a></dd>
+                        <dd><a href="{% url 'djangobb:search' %}?action=show_unanswered">{% trans "Show unanswered posts" %}</a></dd>
                         {% if user.is_authenticated %}
-                        <dd><a href="{% url djangobb:search %}?action=show_subscriptions">{% trans "Show your subscribed topics" %}</a></dd>
-                        <dd>{% trans "Show your" %} <a href="{% url djangobb:search %}?action=show_user&show_as=topics">{% trans "topics" %}</a>/<a href="{% url djangobb:search %}?action=show_user&show_as=posts">{% trans "posts" %}</a></dd>
+                        <dd><a href="{% url 'djangobb:search' %}?action=show_subscriptions">{% trans "Show your subscribed topics" %}</a></dd>
+                        <dd>{% trans "Show your" %} <a href="{% url 'djangobb:search' %}?action=show_user&show_as=topics">{% trans "topics" %}</a>/<a href="{% url 'djangobb:search' %}?action=show_user&show_as=posts">{% trans "posts" %}</a></dd>
                         {% endif %}
                     </dl>
                 {% endblock controls %}
 </div>
 </div>
 </body>
-</html>
+</html>

File djangobb_forum/templates/djangobb_forum/delete_posts.html

View file
 {% block content %}
 {% autopaginate posts forum_settings.TOPIC_PAGE_SIZE %}
 <div class="linkst">
-	<div class="inbox">
-		<div class="pagelink conl">{% paginate %}</div>
-				<ul><li><a href="{% url djangobb:index %}">{% trans "Root" %} </a></li><li>&raquo; {% link topic.forum %} </li><li>&raquo; {{ topic }} 
-				<a href="{% url djangobb:forum_topic_feed topic.id %}"><img src="{{ STATIC_URL }}djangobb_forum/img/feed-icon-small.png" alt="[RSS Feed]" title="[RSS Feed]" style="vertical-align:middle;" /></a>
-				</li></ul>
-		<div class="clearer"></div>
-	</div>
+    <div class="inbox">
+        <div class="pagelink conl">{% paginate %}</div>
+                <ul><li><a href="{% url 'djangobb:index' %}">{% trans "Root" %} </a></li><li>&raquo; {% link topic.forum %} </li><li>&raquo; {{ topic }}
+                <a href="{% url 'djangobb:forum_topic_feed' topic.id %}"><img src="{{ STATIC_URL }}djangobb_forum/img/feed-icon-small.png" alt="[RSS Feed]" title="[RSS Feed]" style="vertical-align:middle;" /></a>
+                </li></ul>
+        <div class="clearer"></div>
+    </div>
 </div>
 
 <form method="post">
 {% csrf_token %}
 {% for post in posts %}
 <div id="p{{ post.id }}" class="blockpost roweven firstpost">
-	<a name="post-{{ post.id }}"></a>
-	<h2><span><span class="conr">#{{ forloop.counter }}&nbsp;</span><a href="{{ post.get_absolute_url }}">{% forum_time post.created %}</a></span></h2>
-	<div class="box">
-		<div class="inbox">
-			<div class="postleft">
-				<dl>
-					<dt><strong><a href="{% url djangobb:forum_profile post.user.username %}">{{ post.user.username }}</a></strong></dt>
-					<dd class="usertitle"><strong>{{ post.user.forum_profile.status }}</strong></dd>
-				</dl>
-			</div>
-			<div class="postright">
-				<h3>{{ post.topic.name }}</h3>
-				<div class="postmsg">
-					{{ post.body_html|safe }}
-			{% if post.updated %}
-				<p class="postedit"><em>{% trans "Edited" %} {{ post.user.username }} ({% forum_time post.updated %})</em></p>
-			{% endif %}
-				</div>
-				{% if not forloop.first %} 
-				<p class="multidelete"><label><strong>{% trans "Select" %}</strong>&nbsp;&nbsp;<input type="checkbox" name="post" value="{{ post.id }}" /></label></p>
-				{% endif %}
-			</div>
-			<div class="clearer"></div>
-		</div>
-	</div>
+    <a name="post-{{ post.id }}"></a>
+    <h2><span><span class="conr">#{{ forloop.counter }}&nbsp;</span><a href="{{ post.get_absolute_url }}">{% forum_time post.created %}</a></span></h2>
+    <div class="box">
+        <div class="inbox">
+            <div class="postleft">
+                <dl>
+                    <dt><strong><a href="{% url 'djangobb:forum_profile' post.user.username %}">{{ post.user.username }}</a></strong></dt>
+                    <dd class="usertitle"><strong>{{ post.user.forum_profile.status }}</strong></dd>
+                </dl>
+            </div>
+            <div class="postright">
+                <h3>{{ post.topic.name }}</h3>
+                <div class="postmsg">
+                    {{ post.body_html|safe }}
+            {% if post.updated %}
+                <p class="postedit"><em>{% trans "Edited" %} {{ post.user.username }} ({% forum_time post.updated %})</em></p>
+            {% endif %}
+                </div>
+                {% if not forloop.first %}
+                <p class="multidelete"><label><strong>{% trans "Select" %}</strong>&nbsp;&nbsp;<input type="checkbox" name="post" value="{{ post.id }}" /></label></p>
+                {% endif %}
+            </div>
+            <div class="clearer"></div>
+        </div>
+    </div>
 </div>
 {% endfor %}
 
 <div class="postlinksb">
-	<div class="inbox">
-		<div class="pagelink conl">{% paginate %}</div>
-		<p class="conr"><input type="submit" value="{% trans "Delete" %}" /></p>
-		<div class="clearer"></div>
-	</div>
+    <div class="inbox">
+        <div class="pagelink conl">{% paginate %}</div>
+        <p class="conr"><input type="submit" value="{% trans "Delete" %}" /></p>
+        <div class="clearer"></div>
+    </div>
 </div>
 </form>
 {% endblock %}

File djangobb_forum/templates/djangobb_forum/edit_post.html

View file
 
 {% block content %}
 <div class="linkst">
-	<div class="inbox">
-		<ul><li><a href="{% url djangobb:index %}">{% trans "Root" %}</a> </li><li>&raquo; {% link post.topic.forum %}</li><li>&raquo; {{ post.topic }}</li></ul>
-		<div class="clearer"></div>
-	</div>
+    <div class="inbox">
+        <ul><li><a href="{% url 'djangobb:index' %}">{% trans "Root" %}</a> </li><li>&raquo; {% link post.topic.forum %}</li><li>&raquo; {{ post.topic }}</li></ul>
+        <div class="clearer"></div>
+    </div>
 </div>
 
 <div class="blockform">
-	<h2>{% trans "Edit post" %}</h2>
+    <h2>{% trans "Edit post" %}</h2>
 
-	<div class="box">
-		<form method="post">
-			{% csrf_token %}
-			<div class="inform">
-				<fieldset>
-					<legend>{% trans "Edit the post and submit changes" %}</legend>
-					<div class="infldset txtarea">
-						{% if post.id == post.topic.head.id %}
-						<label>{% trans "Subject" %}<br />
-						{{ form.name }}<br /></label>
-						{% endif %}
-						<label>{% trans "Message" %}<br />
-						{{ form.body }}
-						<br /></label>
-					</div>
-				</fieldset>
-			</div>
+    <div class="box">
+        <form method="post">
+            {% csrf_token %}
+            <div class="inform">
+                <fieldset>
+                    <legend>{% trans "Edit the post and submit changes" %}</legend>
+                    <div class="infldset txtarea">
+                        {% if post.id == post.topic.head.id %}
+                        <label>{% trans "Subject" %}<br />
+                        {{ form.name }}<br /></label>
+                        {% endif %}
+                        <label>{% trans "Message" %}<br />
+                        {{ form.body }}
+                        <br /></label>
+                    </div>
+                </fieldset>
+            </div>
 
-			<p><input type="submit" value="{% trans "Save" %}" /><a href="javascript:history.go(-1)">{% trans "Go back" %}</a></p>
-		</form>
-	</div>
+            <p><input type="submit" value="{% trans "Save" %}" /><a href="javascript:history.go(-1)">{% trans "Go back" %}</a></p>
+        </form>
+    </div>
 </div>
 {% endblock %}

File djangobb_forum/templates/djangobb_forum/forum.html

View file
 {% block title %} / {{ forum.name }}{% endblock %}
 {% block content %}
 {% autopaginate topics forum_settings.FORUM_PAGE_SIZE %}
+{{ topics }}
 <div class="linkst">
-	<div class="inbox">
-		<div class="pagelink conl">{% paginate %}</div>
-		{% if user.is_authenticated %}
-			<p class="postlink conr"><a href="{% url djangobb:add_topic forum.id %}">{% trans "New topic" %}</a></p>
-		{% endif %}
-		<ul><li><a href="{% url djangobb:index %}">{% trans "Root" %}</a> </li><li>&raquo; {{ forum.name }}</li></ul>
-		<div class="clearer"></div>
-	</div>
+    <div class="inbox">
+        <div class="pagelink conl">{% paginate %}</div>
+        {% if user.is_authenticated %}
+            <p class="postlink conr"><a href="{% url 'djangobb:add_topic' forum.id %}">{% trans "New topic" %}</a></p>
+        {% endif %}
+        <ul><li><a href="{% url 'djangobb:index' %}">{% trans "Root" %}</a> </li><li>&raquo; {{ forum.name }}</li></ul>
+        <div class="clearer"></div>
+    </div>
 </div>
 <div id="vf" class="blocktable">
-	<h2>
-		<a href="{% url djangobb:forum_forum_feed forum.id %}"><img src="{{ STATIC_URL }}djangobb_forum/img/feed-icon-small.png"  alt="[RSS Feed]" title="[RSS Feed]" class="rss" /></a>
-		<b><span>{{ forum.name }}</span></b>
-	</h2>
-	<div class="box">
-		<div class="inbox">
-			<table cellspacing="0">
-			<thead>
-				<tr>
-					<th class="tcl" scope="col">{% trans "Topic" %}</th>
-					<th class="tc2" scope="col">{% trans "Replies" %}</th>
-					<th class="tc3" scope="col">{% trans "Views" %}</th>
-					<th class="tcr" scope="col">{% trans "Last post" %}</th>
-				</tr>
-			</thead>
-			<tbody>
-			{% if topics %}
-				{% for topic in topics %}
-					<tr>
-						<td class="tcl">
-							<div class="intd">
-								<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>
-								<div class="tclcon">
-									{% if topic.sticky %}
-										{% trans "Sticky:" %}
-									{% endif %}
-									{% if topic|has_unreads:user %}
-										<strong>{% link topic %} <span class="byuser">{% trans "by" %} {{ topic.user.username }}</span></strong>
-									{% else %}
-										{% link topic %} <span class="byuser">{% trans "by" %} {{ topic.user.username }}</span>
-									{% endif %}
-								</div>
-							</div>
-						</td>
-						<td class="tc2">{{ topic.reply_count }}</td>
-						<td class="tc3">{{ topic.views }}</td>
-						<td class="tcr"><a href="{{ topic.last_post.get_absolute_url }}">{% forum_time topic.updated %}</a> <span class="byuser">{% trans "by" %} {{ topic.last_post.user.username }}</span></td>
-					</tr>
-				{% endfor %}
-			{% else %}
-				<tr><td class="djangobbcon1" colspan="4">{% trans "Forum is empty." %}</td></tr>
-			{% endif %}
-			</tbody>
-			</table>
-		</div>
-	</div>
+    <h2>
+        <a href="{% url 'djangobb:forum_forum_feed' forum.id %}"><img src="{{ STATIC_URL }}djangobb_forum/img/feed-icon-small.png"  alt="[RSS Feed]" title="[RSS Feed]" class="rss" /></a>
+        <b><span>{{ forum.name }}</span></b>
+    </h2>
+    <div class="box">
+        <div class="inbox">
+            <table cellspacing="0">
+            <thead>
+                <tr>
+                    <th class="tcl" scope="col">{% trans "Topic" %}</th>
+                    <th class="tc2" scope="col">{% trans "Replies" %}</th>
+                    <th class="tc3" scope="col">{% trans "Views" %}</th>
+                    <th class="tcr" scope="col">{% trans "Last post" %}</th>
+                </tr>
+            </thead>
+            <tbody>
+            {% if topics %}
+                {% for topic in topics %}
+                    <tr>
+                        <td class="tcl">
+                            <div class="intd">
+                                <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>
+                                <div class="tclcon">
+                                    {% if topic.sticky %}
+                                        {% trans "Sticky:" %}
+                                    {% endif %}
+                                    {% if topic|has_unreads:user %}
+                                        <strong>{% link topic %} <span class="byuser">{% trans "by" %} {{ topic.user.username }}</span></strong>
+                                    {% else %}
+                                        {% link topic %} <span class="byuser">{% trans "by" %} {{ topic.user.username }}</span>
+                                    {% endif %}
+                                </div>
+                            </div>
+                        </td>
+                        <td class="tc2">{{ topic.reply_count }}</td>
+                        <td class="tc3">{{ topic.views }}</td>
+                        <td class="tcr"><a href="{{ topic.last_post.get_absolute_url }}">{% forum_time topic.updated %}</a> <span class="byuser">{% trans "by" %} {{ topic.last_post.user.username }}</span></td>
+                    </tr>
+                {% endfor %}
+            {% else %}
+                <tr><td class="djangobbcon1" colspan="4">{% trans "Forum is empty." %}</td></tr>
+            {% endif %}
+            </tbody>
+            </table>
+        </div>
+    </div>
 </div>
 <div class="linkst">
-	<div class="inbox">
-		<div class="pagelink conl">{% paginate %}</div>
-		{% if user.is_authenticated %}
-			<p class="postlink conr"><a href="{% url djangobb:add_topic forum.id %}">{% trans "New topic" %}</a></p>
-		{% endif %}
-		<ul><li><a href="{% url djangobb:index %}">{% trans "Root" %}</a> </li><li>&raquo; {{ forum.name }}</li></ul>
-		<div class="clearer"></div>
-	</div>
+    <div class="inbox">
+        <div class="pagelink conl">{% paginate %}</div>
+        {% if user.is_authenticated %}
+            <p class="postlink conr"><a href="{% url 'djangobb:add_topic' forum.id %}">{% trans "New topic" %}</a></p>
+        {% endif %}
+        <ul><li><a href="{% url 'djangobb:index' %}">{% trans "Root" %}</a> </li><li>&raquo; {{ forum.name }}</li></ul>
+        <div class="clearer"></div>
+    </div>
 </div>
 {% endblock %}
 {% block controls %}
 <div class="conl">
-	<form id="qjump" method="get" action="forum">
-		<div><label>{% trans "Jump to" %}
-		<br />
-		<select name="id" id="forum_id" onchange="window.location=('{% url djangobb:index %}'+this.options[this.selectedIndex].value)">
-			{% for category in categories %}
-				<optgroup label="{{ category }}">
-					{% for forum in category.forums.all %}
-						<option value="{{ forum.id }}">{{ forum.name }}</option>
-					{% endfor %}
-				</optgroup>
-			{% endfor %}
-		</select>
-		<input type="button" onclick="window.location=('{% url djangobb:index %}'+getElementById('forum_id').value)" value=" {% trans "Go" %} " accesskey="g" />
-		</label></div>
-	</form>
-	{% if moderator %}
-		<p id="modcontrols"><a href="{% url djangobb:moderate forum.id %}">{% trans "Moderate forum" %}</a></p>
-	{% endif %}
+    <form id="qjump" method="get" action="forum">
+        <div><label>{% trans "Jump to" %}
+        <br />
+        <select name="id" id="forum_id" onchange="window.location=('{% url 'djangobb:index' %}'+this.options[this.selectedIndex].value)">
+            {% for category in categories %}
+                <optgroup label="{{ category }}">
+                    {% for forum in category.forums.all %}
+                        <option value="{{ forum.id }}">{{ forum.name }}</option>
+                    {% endfor %}
+                </optgroup>
+            {% endfor %}
+        </select>
+        <input type="button" onclick="window.location=('{% url 'djangobb:index' %}'+getElementById('forum_id').value)" value=" {% trans "Go" %} " accesskey="g" />
+        </label></div>
+    </form>
+    {% if moderator %}
+        <p id="modcontrols"><a href="{% url 'djangobb:moderate' forum.id %}">{% trans "Moderate forum" %}</a></p>
+    {% endif %}
 </div>
 {% endblock %}
 

File djangobb_forum/templates/djangobb_forum/forum_row.html

View file
 {% load i18n %}
 
 {% if forum.last_post.topic %}
-	<tr {% if forum|forum_unreads:user %}class="inew"{% endif %}>
+    <tr {% if forum|forum_unreads:user %}class="inew"{% endif %}>
 {% else %}
-	<tr>
+    <tr>
 {% endif %}
-	<td class="tcl">
-		<div class="intd">
-			<div class="icon">
-				<div class="nosize"><!-- --></div>
-			</div>
-			<div class="tclcon">
-				<h3>{% link forum %} <a href="{% url djangobb:forum_forum_feed forum.id %}"><img src="{{ STATIC_URL }}djangobb_forum/img/feed-icon-small.png"  alt="[RSS Feed]" title="[RSS Feed]" class="rss" /></a></h3>
-				{{ forum.description|safe }}
-				<p>
-				{% cache 6000 moderators forum.id %}
-					{% with forum.moderators.all as moderators %}
-						{% if moderators %}
-							{% include 'djangobb_forum/moderators.html' %}
-						{% endif %}
-					{% endwith %}
-				{% endcache %}
-				</p>
-			</div>
-		</div>
-	</td>
-	<td class="tc2">{{ forum.topic_count }}</td>
-	<td class="tc3">{{ forum.post_count }}</td>
-	<td class="tcr">
-		{% if forum.updated %}
-			{% if forum.last_post.topic %}
-				<a href="{{ forum.last_post.get_absolute_url }}">{% forum_time forum.last_post.created %}</a>
-				<span class="byuser">{% trans "by" %} {{ forum.last_post.user.username }}</span>
-			{% endif %}
-		{% endif %}
-	</td>
+    <td class="tcl">
+        <div class="intd">
+            <div class="icon">
+                <div class="nosize"><!-- --></div>
+            </div>
+            <div class="tclcon">
+                <h3>{% link forum %} <a href="{% url 'djangobb:forum_forum_feed' forum.id %}"><img src="{{ STATIC_URL }}djangobb_forum/img/feed-icon-small.png"  alt="[RSS Feed]" title="[RSS Feed]" class="rss" /></a></h3>
+                {{ forum.description|safe }}
+                <p>
+                {% cache 6000 moderators forum.id %}
+                    {% with forum.moderators.all as moderators %}
+                        {% if moderators %}
+                            {% include 'djangobb_forum/moderators.html' %}
+                        {% endif %}
+                    {% endwith %}
+                {% endcache %}
+                </p>
+            </div>
+        </div>
+    </td>
+    <td class="tc2">{{ forum.topic_count }}</td>
+    <td class="tc3">{{ forum.post_count }}</td>
+    <td class="tcr">
+        {% if forum.updated %}
+            {% if forum.last_post.topic %}
+                <a href="{{ forum.last_post.get_absolute_url }}">{% forum_time forum.last_post.created %}</a>
+                <span class="byuser">{% trans "by" %} {{ forum.last_post.user.username }}</span>
+            {% endif %}
+        {% endif %}
+    </td>
 </tr>

File djangobb_forum/templates/djangobb_forum/header.html

View file
 <div id="djangobbwrap">
 <div id="djangobbindex" class="djangobb">
 <div id="brdheader" class="block">
-	<div class="box">
-		<div id="brdtitle" class="inbox">
-			<h1><span><a href="{% url djangobb:index %}">{{ forum_settings.HEADER|safe }}</a></span></h1>
-			<p><span>{{ forum_settings.TAGLINE|safe }}</span></p>
-		</div>
-		<div id="brdmenu" class="inbox">
-			<ul>
-			{% block menu %}
-				<li id="navindex"><a href="{% url djangobb:index %}">{% trans "Index" %}</a></li>
-				<li id="navuserlist"><a href="{% url djangobb:forum_users %}">{% trans "User list" %}</a></li>
-				<li id="navsearch"><a href="{% url djangobb:search %}">{% trans "Search" %}</a></li>
-				{% if user.is_superuser %}
-					<li id="navadmin"><a href="{% url admin:index %}">{% trans "Administration" %}</a></li>
-				{% endif %}
-				{% if user.is_authenticated %}
-					<li id="navprofile"><a href="{% url djangobb:forum_profile request.user %}">{% trans "Profile" %}</a></li>
-					{% if forum_settings.PM_SUPPORT %}
-						<li id="navpm"><a href="{% url messages_inbox %}">{% trans "PM" %}</a></li> 
-					{% endif %}
-				{% endif %}
-			{% endblock %}
-			</ul>
-		</div>
-		<div id="brdwelcome" class="inbox">
-			<ul class="conl">
-				{% if user.is_authenticated %}
-					<li>{% trans "Logged in as" %} <strong>{{ user.username }}</strong></li>
-					<li>{% trans "Last visit:" %} {% forum_time user.last_login %}</li>
-					{% if forum_settings.PM_SUPPORT and messages_inbox_count > 0 %}
-						<ul><li class="pmlink"><strong><a href="{% url messages_inbox %}">{% trans "There are new messages" %} ({{ messages_inbox_count }})</a></strong></li></ul>
-					{% endif %}
-				{% else %}
-					<li>{% trans "You are not logged in." %}</li>
-				{% endif %}
-				{% if user.is_superuser and reports %}
-					<li class="reportlink"><strong><a href="{% url admin:index %}">{% trans "There are new reports" %} ({% new_reports %})</a></strong></li>
-				{% endif %}
-			</ul>
-			{% if user.is_authenticated %}
-				<ul class="conr">
-					<li><a href="{% url djangobb:search %}?action=show_new">{% trans "Show new posts since last visit" %}</a></li>
-					<li><a href="{% url djangobb:misc %}?action=markread">{% trans "Mark all topics as read" %}</a></li>
-				</ul>
-			{% endif %}
-			<div class="clearer"></div>
-		</div>
-	</div>
+    <div class="box">
+        <div id="brdtitle" class="inbox">
+            <h1><span><a href="{% url 'djangobb:index' %}">{{ forum_settings.HEADER|safe }}</a></span></h1>
+            <p><span>{{ forum_settings.TAGLINE|safe }}</span></p>
+        </div>
+        <div id="brdmenu" class="inbox">
+            <ul>
+            {% block menu %}
+                <li id="navindex"><a href="{% url 'djangobb:index' %}">{% trans "Index" %}</a></li>
+                <li id="navuserlist"><a href="{% url 'djangobb:forum_users' %}">{% trans "User list" %}</a></li>
+                <li id="navsearch"><a href="{% url 'djangobb:search' %}">{% trans "Search" %}</a></li>
+                {% if user.is_superuser %}
+                    <li id="navadmin"><a href="{% url 'admin:index' %}">{% trans "Administration" %}</a></li>
+                {% endif %}
+                {% if user.is_authenticated %}
+                    <li id="navprofile"><a href="{% url 'djangobb:forum_profile' request.user %}">{% trans "Profile" %}</a></li>
+                    {% if forum_settings.PM_SUPPORT %}
+                        <li id="navpm"><a href="{% url 'messages_inbox' %}">{% trans "PM" %}</a></li>
+                    {% endif %}
+                {% endif %}
+            {% endblock %}
+            </ul>
+        </div>
+        <div id="brdwelcome" class="inbox">
+            <ul class="conl">
+                {% if user.is_authenticated %}
+                    <li>{% trans "Logged in as" %} <strong>{{ user.username }}</strong></li>
+                    <li>{% trans "Last visit:" %} {% forum_time user.last_login %}</li>
+                    {% if forum_settings.PM_SUPPORT and messages_inbox_count > 0 %}
+                        <ul><li class="pmlink"><strong><a href="{% url 'messages_inbox' %}">{% trans "There are new messages" %} ({{ messages_inbox_count }})</a></strong></li></ul>
+                    {% endif %}
+                {% else %}
+                    <li>{% trans "You are not logged in." %}</li>
+                {% endif %}
+                {% if user.is_superuser and reports %}
+                    <li class="reportlink"><strong><a href="{% url 'admin:index' %}">{% trans "There are new reports" %} ({% new_reports %})</a></strong></li>
+                {% endif %}
+            </ul>
+            {% if user.is_authenticated %}
+                <ul class="conr">
+                    <li><a href="{% url 'djangobb:search' %}?action=show_new">{% trans "Show new posts since last visit" %}</a></li>
+                    <li><a href="{% url 'djangobb:misc' %}?action=markread">{% trans "Mark all topics as read" %}</a></li>
+                </ul>
+            {% endif %}
+            <div class="clearer"></div>
+        </div>
+    </div>
 </div>
 
 {% if forum_settings.NOTICE %}
-	<div id="announce" class="block">
-		<h2><span>{% trans "Notice" %}</span></h2>
-		<div class="box">
-			<div class="inbox">
-				<div>{{ forum_settings.NOTICE }}</div>
-			</div>
-		</div>
-	</div>
+    <div id="announce" class="block">
+        <h2><span>{% trans "Notice" %}</span></h2>
+        <div class="box">
+            <div class="inbox">
+                <div>{{ forum_settings.NOTICE }}</div>
+            </div>
+        </div>
+    </div>
 {% endif %}

File djangobb_forum/templates/djangobb_forum/include/post_in_search_page.html

View file
         <div class="inbox">
             <div class="postleft">
                 <dl>
-                    <dt><strong><a href="{% url djangobb:forum_profile post.user %}">{{ post.user }}</a></strong></dt>
+                    <dt><strong><a href="{% url 'djangobb:forum_profile' post.user %}">{{ post.user }}</a></strong></dt>
                     <dd>{% trans "Replies:" %} {{ post.topic.post_count }}</dd>
                     <dd><div class="icon"><div class="nosize"><!-- --></div></div></dd>
                     <dd><p class="clearb"><a href="{{ post.get_absolute_url }}">{% trans "Go to post" %}</a></p></dd>
             <div class="clearer"></div>
         </div>
     </div>
-</div>
+</div>

File djangobb_forum/templates/djangobb_forum/index.html

View file
 <script type="text/javascript" src="{{ STATIC_URL }}djangobb_forum/js/jquery.cookie.js"></script>
 <script type="text/javascript">
 
-	function set_collapser(cat_id) {
-		category_body_id = "category_body_" + cat_id;
-		if($.cookie(category_body_id)){
-			item_id = "#" + category_body_id;
-			head_id = item_id.replace("body", "head");
-			$(head_id).addClass("collapsed");
-			$(item_id).hide()
-		}
-	}
-	$(document).ready(function(){
-		$("a.toggle").click(function(){
-			header_id = $(this).parent().attr('id');
-			body_id = header_id.replace("head", "body");
-			item_id = '#' + body_id
-			if ($(this).parent().attr('class')==''){
-				$(this).parent().addClass("collapsed");
-				$.cookie(body_id, 'collapsed');
-			}else {
-				$(this).parent().removeClass("collapsed");
-				$.cookie(body_id, '');
-			}
-			$(item_id).slideToggle("slow");
-		});
-	{% for iter in cats %}
-		set_collapser({{ iter.id }})
-	{% endfor %}
-	});
+    function set_collapser(cat_id) {
+        category_body_id = "category_body_" + cat_id;
+        if($.cookie(category_body_id)){
+            item_id = "#" + category_body_id;
+            head_id = item_id.replace("body", "head");
+            $(head_id).addClass("collapsed");
+            $(item_id).hide()
+        }
+    }
+    $(document).ready(function(){
+        $("a.toggle").click(function(){
+            header_id = $(this).parent().attr('id');
+            body_id = header_id.replace("head", "body");
+            item_id = '#' + body_id
+            if ($(this).parent().attr('class')==''){
+                $(this).parent().addClass("collapsed");
+                $.cookie(body_id, 'collapsed');
+            }else {
+                $(this).parent().removeClass("collapsed");
+                $.cookie(body_id, '');
+            }
+            $(item_id).slideToggle("slow");
+        });
+    {% for iter in cats %}
+        set_collapser({{ iter.id }})
+    {% endfor %}
+    });
 </script>
 {% endblock %}
 
 {% block content %}
 <div id="idx1" class="blocktable">
 {% for iter in cats %}
-	<h2 id="category_head_{{ iter.id }}">
-		<a class="toggle" href="#">Toggle shoutbox</a>
-		<span>
-			{{ iter.cat }}
-		</span>
-	</h2>
-	<div class="box" id="category_body_{{ iter.id }}">
-		<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 'djangobb_forum/forum_row.html' %}
-				{% endfor %}
-				</tbody>
-			</table>
-		</div>
-	</div>
+    <h2 id="category_head_{{ iter.id }}">
+        <a class="toggle" href="#">Toggle shoutbox</a>
+        <span>
+            {{ iter.cat }}
+        </span>
+    </h2>
+    <div class="box" id="category_body_{{ iter.id }}">
+        <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 'djangobb_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>
+    <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>
             {% if online_count %}
                 <dl id="onlinelist" class= "clearb">
                     <dt><strong>{% trans "Online:" %} </strong></dt>
                     {% endfor %}
                 </dl>
             {% endif %}
-		</div>
-	</div>
+        </div>
+    </div>
 </div>
 {% endblock %}
 
 {% block lofi %}
 {% if forum_settings.LOFI_SUPPORT %}
     <p class="lofi">
-        <a href="{% url djangobb:lofi_index %}">Lo-Fi Version</a>
+        <a href="{% url 'djangobb:lofi_index' %}">Lo-Fi Version</a>
     </p>
 {% endif %}
 {% endblock %}

File djangobb_forum/templates/djangobb_forum/lofi/forum.html

View file
 {% block content %}
 <div id='largetext'>{% trans "Full Version:" %} {% link forum %}</div>
 <div class='djangobbnav'>
-	<a href="{% url djangobb:lofi_index %}">{% trans "Root" %}</a> &raquo; {% lofi_link forum %}
+    <a href="{% url 'djangobb:lofi_index' %}">{% trans "Root" %}</a> &raquo; {% lofi_link forum %}
 </div>
 
 {% autopaginate topics forum_settings.FORUM_PAGE_SIZE %}
 <div class="djangobbpagespan">
-	{% lofi_pagination %}
+    {% lofi_pagination %}
 </div>
 
   <div id="djangobbcontent">

File djangobb_forum/templates/djangobb_forum/lofi/header.html

View file
 {% load i18n %}
 <div id='djangobbwrapper'>
-	<div class='djangobbnavsmall'>
-   		<a href='{% url djangobb:search %}'>{% trans "Search" %}</a> -
-		<a href='{% url djangobb:forum_users %}'>{% trans "User list" %}</a>
-	</div>
-	
+    <div class='djangobbnavsmall'>
+        <a href='{% url 'djangobb:search' %}'>{% trans "Search" %}</a> -
+        <a href='{% url 'djangobb:forum_users' %}'>{% trans "User list" %}</a>
+    </div>

File djangobb_forum/templates/djangobb_forum/lofi/index.html

View file
 {% load i18n %}
 
 {% block content %}
-<div id='largetext'>{% trans "Full Version:" %} <a href="{% url djangobb:index %}">{% trans "Root" %}</a></div>
+<div id='largetext'>{% trans "Full Version:" %} <a href="{% url 'djangobb:index' %}">{% trans "Root" %}</a></div>
 <div class='djangobbnav'>
-	<a href="{% url djangobb:lofi_index %}">{% trans "Root" %}</a>
+    <a href="{% url 'djangobb:lofi_index' %}">{% trans "Root" %}</a>
 </div>
 
 <div id="djangobbcontent">
 {% for iter in cats %}
 <li><strong>{{ iter.cat }}</strong></li>
 <ul>
-	{% for forum in iter.forums %}
-		<li>{% lofi_link forum %} <span class="desc">({{ forum.post_count }} {% trans "posts" %})</span></li>
-	{% endfor %}
+    {% for forum in iter.forums %}
+        <li>{% lofi_link forum %} <span class="desc">({{ forum.post_count }} {% trans "posts" %})</span></li>
+    {% endfor %}
 </ul>
 {% endfor %}
 </ul>
 </div>
 </div>
-<div class='smalltext'>This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please <a href='{% url djangobb:index %}'>click here</a>.</div>
+<div class='smalltext'>This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please <a href='{% url 'djangobb:index' %}'>click here</a>.</div>
 </div>
 {% endblock %}
 

File djangobb_forum/templates/djangobb_forum/lofi/topic.html

View file
 {% block content %}
 <div id='largetext'>{% trans "Full Version:" %} {% link topic %}</div>
 <div class='djangobbnav'>
-	<a href="{% url djangobb:lofi_index %}">{% trans "Root" %}</a> &raquo; {% lofi_link topic.forum %} &raquo; {% lofi_link topic %}
+    <a href="{% url 'djangobb:lofi_index' %}">{% trans "Root" %}</a> &raquo; {% lofi_link topic.forum %} &raquo; {% lofi_link topic %}
 </div>
 
 {% autopaginate posts forum_settings.TOPIC_PAGE_SIZE %}
 <div class="djangobbpagespan">
-	{% lofi_pagination %}
+    {% lofi_pagination %}
 </div>
 
 <div id='djangobbcontent'>
 {% for post in posts %}
-		<div class='postwrapper'>
-			<div class='posttopbar'>
-			  <div class='postname'>{{ post.user.username }}</div>
-			  <div class='postdate'>{% forum_time post.created %}</div>
-		 	</div>
-			<div class='postcontent'>
-				{{ post.body_html|safe }}
-			</div>
-		</div>
+        <div class='postwrapper'>
+            <div class='posttopbar'>
+              <div class='postname'>{{ post.user.username }}</div>
+              <div class='postdate'>{% forum_time post.created %}</div>
+            </div>
+            <div class='postcontent'>
+                {{ post.body_html|safe }}
+            </div>
+        </div>
 {% endfor %}
 </div>
 </div>

File djangobb_forum/templates/djangobb_forum/moderate.html

View file
 {% block content %}
 {% autopaginate topics forum_settings.FORUM_PAGE_SIZE %}
 <div class="linkst">
-	<div class="inbox">
-		<div class="pagelink conl">{% paginate %}</div>
-		<ul><li><a href="{% url djangobb:index %}">{% trans "Root" %}</a> </li><li>&raquo; {{ forum }}</li></ul>
-		<div class="clearer"></div>
-	</div>
+    <div class="inbox">
+        <div class="pagelink conl">{% paginate %}</div>
+        <ul><li><a href="{% url 'djangobb:index' %}">{% trans "Root" %}</a> </li><li>&raquo; {{ forum }}</li></ul>
+        <div class="clearer"></div>
+    </div>
 </div>
 
 <form method="post">
 {% csrf_token %}
 <div id="vf" class="blocktable">
-	<h2><span>{{ forum }}</span></h2>
-	<div class="box">
-		<div class="inbox">
-			<table cellspacing="0">
-			<thead>
-				<tr>
-					<th class="tcl" scope="col">{% trans "Topic" %}</th>
-					<th class="tc2" scope="col">{% trans "Replies" %}</th>
-					<th class="tc3" scope="col">{% trans "Views" %}</th>
-					<th class="tcr">{% trans "Last post" %}</th>
-					<th class="tcmod" scope="col">{% trans "Select" %}</th>
-				</tr>
-			</thead>
-			<tbody>
-			{% if topics %}
-				{% for topic in topics %}
-					<tr>
-						<td class="tcl">
-							<div class="intd">
-								<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>
-								<div class="tclcon">
-									{% if topic.sticky %}
-										{% trans "Sticky:" %}
-									{% endif %}
-									{% if topic|has_unreads:user %}
-										<strong>{% link topic %} <span class="byuser">{% trans "by" %} {{ topic.user.username }}</span></strong>
-									{% else %}
-										{% link topic %} <span class="byuser">{% trans "by" %} {{ topic.user.username }}</span>
-									{% endif %}
-								</div>
-							</div>
-						</td>
-						<td class="tc2">{{ topic.reply_count }}</td>
-						<td class="tc3">{{ topic.views }}</td>
-						<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>
-						<td class="tcmod"><input type="checkbox" name="topic_id" value="{{ topic.id }}" /></td>
-					</tr>
-				{% endfor %}
-			{% else %}
-				<tr><td class="djangobbcon1" colspan="4">{% trans "Forum is empty." %}</td></tr>
-			{% endif %}
-			</tbody>
-			</table>
-		</div>
-	</div>
+    <h2><span>{{ forum }}</span></h2>
+    <div class="box">
+        <div class="inbox">
+            <table cellspacing="0">
+            <thead>
+                <tr>
+                    <th class="tcl" scope="col">{% trans "Topic" %}</th>
+                    <th class="tc2" scope="col">{% trans "Replies" %}</th>
+                    <th class="tc3" scope="col">{% trans "Views" %}</th>
+                    <th class="tcr">{% trans "Last post" %}</th>
+                    <th class="tcmod" scope="col">{% trans "Select" %}</th>
+                </tr>
+            </thead>
+            <tbody>
+            {% if topics %}
+                {% for topic in topics %}
+                    <tr>
+                        <td class="tcl">
+                            <div class="intd">
+                                <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>
+                                <div class="tclcon">
+                                    {% if topic.sticky %}
+                                        {% trans "Sticky:" %}
+                                    {% endif %}
+                                    {% if topic|has_unreads:user %}
+                                        <strong>{% link topic %} <span class="byuser">{% trans "by" %} {{ topic.user.username }}</span></strong>
+                                    {% else %}
+                                        {% link topic %} <span class="byuser">{% trans "by" %} {{ topic.user.username }}</span>
+                                    {% endif %}
+                                </div>
+                            </div>
+                        </td>
+                        <td class="tc2">{{ topic.reply_count }}</td>
+                        <td class="tc3">{{ topic.views }}</td>
+                        <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>
+                        <td class="tcmod"><input type="checkbox" name="topic_id" value="{{ topic.id }}" /></td>
+                    </tr>
+                {% endfor %}
+            {% else %}
+                <tr><td class="djangobbcon1" colspan="4">{% trans "Forum is empty." %}</td></tr>
+            {% endif %}
+            </tbody>
+            </table>
+        </div>
+    </div>
 </div>
 <div class="linksb">
-	<div class="inbox">
-		<div class="pagelink conl">{% paginate %}</div>
-		<p class="conr">
-			<input type="submit" name="move_topics" value="{% trans "Move" %}" />&nbsp;&nbsp;
-			<input type="submit" name="delete_topics" value="{% trans "Delete" %}" />&nbsp;&nbsp;
-			<input type="submit" name="open_topics" value="{% trans "Open" %}" />&nbsp;&nbsp;
-			<input type="submit" name="close_topics" value="{% trans "Close" %}" />
-		</p>
-		<div class="clearer"></div>
-	</div>
+    <div class="inbox">
+        <div class="pagelink conl">{% paginate %}</div>
+        <p class="conr">
+            <input type="submit" name="move_topics" value="{% trans "Move" %}" />&nbsp;&nbsp;
+            <input type="submit" name="delete_topics" value="{% trans "Delete" %}" />&nbsp;&nbsp;
+            <input type="submit" name="open_topics" value="{% trans "Open" %}" />&nbsp;&nbsp;
+            <input type="submit" name="close_topics" value="{% trans "Close" %}" />
+        </p>
+        <div class="clearer"></div>
+    </div>
 </div>
 </form>
 {% endblock %}

File djangobb_forum/templates/djangobb_forum/move_topic.html

View file
 
 {% block content %}
 <div class="blockform">
-	<h2><span>{% trans "Move topic" %}</span></h2>
-	<div class="box">
-		<form method="POST" action="{% url djangobb:move_topic %}">
-			{% csrf_token %}
-			<div class="inform">
-				{% for topic_id in topic_ids %}
-					<input type="hidden" value="{{ topic_id }}" name="topic_id"/>
-				{% endfor %}
-				<fieldset>
-					<legend>{% trans "Select destination of move" %}</legend>
-					<div class="infldset">
-						<label>{% trans "Move to" %}<br />
-						<select name="to_forum">
-						{% for category in categories %}
-							<optgroup label="{{ category }}">
-							{% for forum in category.forums.all %}
-								{% if forum != exclude_forum %}
-									<option value="{{ forum.id }}">{{ forum.name }}</option>
-								{% endif %}
-							{% endfor %}
-							</optgroup>
-						{% endfor %}
-						</select>
-						<br /></label>
-					</div>
-				</fieldset>
-			</div>
-			<p><input type="submit" value="{% trans "Move" %}" /><a href="javascript:history.go(-1)">{% trans "Go back" %}</a></p>
-		</form>
-	</div>
+    <h2><span>{% trans "Move topic" %}</span></h2>
+    <div class="box">
+        <form method="POST" action="{% url 'djangobb:move_topic' %}">
+            {% csrf_token %}
+            <div class="inform">
+                {% for topic_id in topic_ids %}
+                    <input type="hidden" value="{{ topic_id }}" name="topic_id"/>
+                {% endfor %}
+                <fieldset>
+                    <legend>{% trans "Select destination of move" %}</legend>
+                    <div class="infldset">
+                        <label>{% trans "Move to" %}<br />
+                        <select name="to_forum">
+                        {% for category in categories %}
+                            <optgroup label="{{ category }}">
+                            {% for forum in category.forums.all %}
+                                {% if forum != exclude_forum %}
+                                    <option value="{{ forum.id }}">{{ forum.name }}</option>
+                                {% endif %}
+                            {% endfor %}
+                            </optgroup>
+                        {% endfor %}
+                        </select>
+                        <br /></label>
+                    </div>
+                </fieldset>
+            </div>
+            <p><input type="submit" value="{% trans "Move" %}" /><a href="javascript:history.go(-1)">{% trans "Go back" %}</a></p>
+        </form>
+    </div>
 </div>
 {% endblock %}

File djangobb_forum/templates/djangobb_forum/profile/profile_essentials.html

View file
 
 {% block content %}
 <div id="profile" class="block2col">
-	{% include 'djangobb_forum/profile/profile_menu.html' %}
-	<div class="blockform">
-		<h2><span>{{ profile.username }} - {% trans "Essentials" %}</span></h2>
-		<div class="box">
-			<form id="profile1" method="post">
-				{% csrf_token %}
-				<div class="inform">
-					<fieldset>
-						<legend>{% trans "Enter your username and password" %}</legend>
-						<div class="infldset">
-							{{ form.username.errors }}
-							<label><strong>{{ form.username.label }}</strong><br>
-							{{ form.username }}
-							{% if not request.user.is_superuser %}
-								{{ form.fields.username.initial }}
-							{% endif %}
-							<br></label>
-							<p>
-							{% if request.user.is_superuser %}
-								<a href="{% url admin:user_change_password profile.id %}">{% trans "Change password" %}</a>
-							{% else %}
-								<a href="{% url auth_password_change %}">{% trans "Change password" %}</a>
-							{% endif %}
-							</p>
-					</div>
-					</fieldset>
-				</div>
-				<div class="inform">
-					<fieldset>
-						<legend>{% trans "Enter a valid e-mail address" %}</legend>
-						<div class="infldset">
-							{{ form.email.errors }}
-							<label><strong>{{ form.email.label }}</strong><br>
-							{{ form.email }}<br></label>
-							{% if request.user.is_superuser %}
-								<p><a href="{% url djangobb:misc %}?mail_to={{ profile }}">{% trans "Send e-mail" %}</a></p>
-							{% endif %}
+    {% include 'djangobb_forum/profile/profile_menu.html' %}
+    <div class="blockform">
+        <h2><span>{{ profile.username }} - {% trans "Essentials" %}</span></h2>
+        <div class="box">
+            <form id="profile1" method="post">
+                {% csrf_token %}
+                <div class="inform">
+                    <fieldset>
+                        <legend>{% trans "Enter your username and password" %}</legend>
+                        <div class="infldset">
+                            {{ form.username.errors }}
+                            <label><strong>{{ form.username.label }}</strong><br>
+                            {{ form.username }}
+                            {% if not request.user.is_superuser %}
+                                {{ form.fields.username.initial }}
+                            {% endif %}
+                            <br></label>
+                            <p>
+                            {% if request.user.is_superuser %}
+                                <a href="{% url 'admin:user_change_password' profile.id %}">{% trans "Change password" %}</a>
+                            {% else %}
+                                <a href="{% url 'auth_password_change' %}">{% trans "Change password" %}</a>
+                            {% endif %}
+                            </p>
+                    </div>
+                    </fieldset>
+                </div>
+                <div class="inform">
+                    <fieldset>
+                        <legend>{% trans "Enter a valid e-mail address" %}</legend>
+                        <div class="infldset">
+                            {{ form.email.errors }}
+                            <label><strong>{{ form.email.label }}</strong><br>
+                            {{ form.email }}<br></label>
+                            {% if request.user.is_superuser %}
+                                <p><a href="{% url 'djangobb:misc' %}?mail_to={{ profile }}">{% trans "Send e-mail" %}</a></p>
+                            {% endif %}
 
-						</div>
-					</fieldset>
-				</div>
+                        </div>
+                    </fieldset>
+                </div>
                 <div class="inform">
                     <fieldset>
                         <legend>{{ form.auto_subscribe.label }}</legend>
                         </div>
                     </fieldset>
                 </div>
-				<div class="inform">
-					<fieldset>
-						<legend>{% trans "Set your localisation options" %}</legend>
-						<div class="infldset">
-							{{ form.time_zone.errors }}
-							<label>
-								{% trans "Timezone: For the forum to display times correctly you must select your local timezone." %}<br>
-							<br>
-							{{ form.time_zone }}
-							</label>
-							{{ form.language.errors }}
-							<label>
-								{% trans "Language: You can choose which language you wish to use to view the forum" %}
-							<br>
-							{{ form.language }}
-							<br></label>
-						</div>
-					</fieldset>
-				</div>
-				<div class="inform">
+                <div class="inform">
+                    <fieldset>
+                        <legend>{% trans "Set your localisation options" %}</legend>
+                        <div class="infldset">
+                            {{ form.time_zone.errors }}
+                            <label>
+                                {% trans "Timezone: For the forum to display times correctly you must select your local timezone." %}<br>
+                            <br>
+                            {{ form.time_zone }}
+                            </label>
+                            {{ form.language.errors }}
+                            <label>
+                                {% trans "Language: You can choose which language you wish to use to view the forum" %}
+                            <br>
+                            {{ form.language }}
+                            <br></label>
+                        </div>
+                    </fieldset>
+                </div>
+                <div class="inform">
 
-					<fieldset>
-						<legend>{% trans "User activity" %}</legend>
-						<div class="infldset">
-							<p>{% trans "Registered:" %} {{ profile.date_joined|date:"Y-m-d" }}</p>
-							<p>{% trans "Last post:" %} {{ profile.forum_profile.last_post }}</p>
-							<label>{% trans "Posts:" %} {{ profile.forum_profile.post_count }} - 
-							<a href="{% url djangobb:search %}?action=show_user&user_id={{ profile.id }}">{% trans "Show all posts" %}</a></p>
-							</label>
-						</div>
-					</fieldset>
-				</div>
-				<p><input name="update" value="{% trans "Submit" %}" type="submit">{% trans "When you update your profile, you will be redirected back to this page." %}</p>
-			</form>
-		</div>
+                    <fieldset>
+                        <legend>{% trans "User activity" %}</legend>
+                        <div class="infldset">
+                            <p>{% trans "Registered:" %} {{ profile.date_joined|date:"Y-m-d" }}</p>
+                            <p>{% trans "Last post:" %} {{ profile.forum_profile.last_post }}</p>
+                            <label>{% trans "Posts:" %} {{ profile.forum_profile.post_count }} -
+                            <a href="{% url 'djangobb:search' %}?action=show_user&user_id={{ profile.id }}">{% trans "Show all posts" %}</a></p>
+                            </label>
+                        </div>
+                    </fieldset>
+                </div>
+                <p><input name="update" value="{% trans "Submit" %}" type="submit">{% trans "When you update your profile, you will be redirected back to this page." %}</p>
+            </form>
+        </div>
 
-	</div>
-	<div class="clearer"></div>
+    </div>
+    <div class="clearer"></div>
 </div>
 {% endblock %}
 

File djangobb_forum/templates/djangobb_forum/profile/profile_menu.html

View file
 {% load i18n %}
-	<div class="blockmenu">
-		<h2><span>{% trans "Profile menu" %}</span></h2>
-		<div class="box">
-			<div class="inbox">
-				<ul>
-					<li {%if active_menu == "essentials" %}class="isactive"{% endif %}><a href="{% url djangobb:forum_profile_essentials profile %}">{% trans "Essentials" %}</a></li>
-					<li {%if active_menu == "personal" %}class="isactive"{% endif %}><a href="{% url djangobb:forum_profile_personal profile %}">{% trans "Personal" %}</a></li>
-					<li {%if active_menu == "messaging" %}class="isactive"{% endif %}><a href="{% url djangobb:forum_profile_messaging profile %}">{% trans "Messaging" %}</a></li>
-					<li {%if active_menu == "personality" %}class="isactive"{% endif %}><a href="{% url djangobb:forum_profile_personality profile %}">{% trans "Personality" %}</a></li>
-					<li {%if active_menu == "display" %}class="isactive"{% endif %}><a href="{% url djangobb:forum_profile_display profile %}">{% trans "Display" %}</a></li>
-					<li {%if active_menu == "privacy" %}class="isactive"{% endif %}><a href="{% url djangobb:forum_profile_privacy profile %}">{% trans "Privacy" %}</a></li>
-					{# if request.user.is_superuser #}
-					<!--li {% if active_menu == "admin" %}class="isactive"{% endif %}><a href="{% url djangobb:forum_profile profile %}?section=admin">{% trans "Administration" %}</a></li-->
-					{# endif #}
+    <div class="blockmenu">
+        <h2><span>{% trans "Profile menu" %}</span></h2>
+        <div class="box">
+            <div class="inbox">
+                <ul>
+                    <li {%if active_menu == "essentials" %}class="isactive"{% endif %}><a href="{% url 'djangobb:forum_profile_essentials' profile %}">{% trans "Essentials" %}</a></li>
+                    <li {%if active_menu == "personal" %}class="isactive"{% endif %}><a href="{% url 'djangobb:forum_profile_personal' profile %}">{% trans "Personal" %}</a></li>
+                    <li {%if active_menu == "messaging" %}class="isactive"{% endif %}><a href="{% url 'djangobb:forum_profile_messaging' profile %}">{% trans "Messaging" %}</a></li>
+                    <li {%if active_menu == "personality" %}class="isactive"{% endif %}><a href="{% url 'djangobb:forum_profile_personality' profile %}">{% trans "Personality" %}</a></li>
+                    <li {%if active_menu == "display" %}class="isactive"{% endif %}><a href="{% url 'djangobb:forum_profile_display' profile %}">{% trans "Display" %}</a></li>
+                    <li {%if active_menu == "privacy" %}class="isactive"{% endif %}><a href="{% url 'djangobb:forum_profile_privacy' profile %}">{% trans "Privacy" %}</a></li>
+                    {# if request.user.is_superuser #}
+                    <!--li {% if active_menu == "admin" %}class="isactive"{% endif %}><a href="{% url 'djangobb:forum_profile' profile %}?section=admin">{% trans "Administration" %}</a></li-->
+                    {# endif #}
 
-				</ul>
-			</div>
-		</div>
-	</div>
+                </ul>
+            </div>
+        </div>
+    </div>

File djangobb_forum/templates/djangobb_forum/profile/profile_personality.html

View file
 
 {% block content %}
 <div id="profile" class="block2col">
-	{% include 'djangobb_forum/profile/profile_menu.html' %}
-	<div class="blockform">
-		<h2><span>{{ profile.username }} - {% trans "Personality" %}</span></h2>
-		<div class="box">
-			<form id="profile4" method="post">
-				{% csrf_token %}
-				<div class="inform">
-					<fieldset id="profileavatar">
-						<legend>{% trans "Set your avatar display options" %}</legend>
-						<div class="infldset">
-							{{ profile.forum_profile.avatar.errors }}
-							{% if profile.forum_profile.avatar %}
-								<img src="{{ profile.forum_profile.avatar.url }}" />
-							{% endif %}
-							<p>{% trans "An avatar is a small image that will be displayed with all your posts. You can upload an avatar by clicking the link below. The checkbox 'Use avatar' below must be checked in order for the avatar to be visible in your posts." %}</p>
-							<div class="rbox">
-								{{ form.show_avatar.errors }}
-								<label>{{ form.show_avatar }}{% trans "Use avatar." %}<br></label>
-							</div>
-							<p class="clearb"><a href="{% url djangobb:forum_profile_upload_avatar profile.username %}">{% trans "Upload avatar" %}</a></p>
-						</div>
-					</fieldset>
-				</div>
-				<div class="inform">
-					<fieldset>
-						<legend>{% trans "Compose your signature" %}</legend>
-						<div class="infldset">
-							{{ form.signature.errors }}
-							<p>{% trans "A signature is a small piece of text that is attached to your posts. In it, you can enter just about anything you like. Perhaps you would like to enter your favourite quote or your star sign. It's up to you! In your signature you can use BBCode if it is allowed in this particular forum. You can see the features that are allowed/enabled listed below whenever you edit your signature." %}</p>
-							<div class="txtarea">
-								<label><br>
-								{{ form.signature }}
-								<br></label>
-							</div>
-							{% if profile.forum_profile.signature_html %}
-								<p>{{ profile.forum_profile.signature_html|safe }}</p>
-							{% else %}
-								<p>{% trans "No signature currently stored in profile." %}</p>
-							{% endif %}
-						</div>
-					</fieldset>
-				</div>
-				<p><input name="update" value="{% trans "Submit" %}" type="submit">{% trans "When you update your profile, you will be redirected back to this page." %}</p>
-			</form>
-		</div>
-	</div>
-	<div class="clearer"></div>
+    {% include 'djangobb_forum/profile/profile_menu.html' %}
+    <div class="blockform">
+        <h2><span>{{ profile.username }} - {% trans "Personality" %}</span></h2>
+        <div class="box">
+            <form id="profile4" method="post">
+                {% csrf_token %}
+                <div class="inform">
+                    <fieldset id="profileavatar">
+                        <legend>{% trans "Set your avatar display options" %}</legend>
+                        <div class="infldset">
+                            {{ profile.forum_profile.avatar.errors }}
+                            {% if profile.forum_profile.avatar %}
+                                <img src="{{ profile.forum_profile.avatar.url }}" />
+                            {% endif %}
+                            <p>{% trans "An avatar is a small image that will be displayed with all your posts. You can upload an avatar by clicking the link below. The checkbox 'Use avatar' below must be checked in order for the avatar to be visible in your posts." %}</p>
+                            <div class="rbox">
+                                {{ form.show_avatar.errors }}
+                                <label>{{ form.show_avatar }}{% trans "Use avatar." %}<br></label>
+                            </div>
+                            <p class="clearb"><a href="{% url 'djangobb:forum_profile_upload_avatar' profile.username %}">{% trans "Upload avatar" %}</a></p>
+                        </div>
+                    </fieldset>
+                </div>
+                <div class="inform">
+                    <fieldset>
+                        <legend>{% trans "Compose your signature" %}</legend>
+                        <div class="infldset">
+                            {{ form.signature.errors }}
+                            <p>{% trans "A signature is a small piece of text that is attached to your posts. In it, you can enter just about anything you like. Perhaps you would like to enter your favourite quote or your star sign. It's up to you! In your signature you can use BBCode if it is allowed in this particular forum. You can see the features that are allowed/enabled listed below whenever you edit your signature." %}</p>
+                            <div class="txtarea">
+                                <label><br>
+                                {{ form.signature }}
+                                <br></label>
+                            </div>
+                            {% if profile.forum_profile.signature_html %}
+                                <p>{{ profile.forum_profile.signature_html|safe }}</p>
+                            {% else %}
+                                <p>{% trans "No signature currently stored in profile." %}</p>
+                            {% endif %}
+                        </div>
+                    </fieldset>
+                </div>
+                <p><input name="update" value="{% trans "Submit" %}" type="submit">{% trans "When you update your profile, you will be redirected back to this page." %}</p>
+            </form>
+        </div>
+    </div>
+    <div class="clearer"></div>
 </div>
 {% endblock %}
 

File djangobb_forum/templates/djangobb_forum/reputation.html

View file
 
 {% block content %}
 <div class="linkst">
-	<div class="inbox">
-		<p class="pagelink conl">{# pagination #}</p>
-		<div class="clearer"></div>
-	</div>
+    <div class="inbox">
+        <p class="pagelink conl">{# pagination #}</p>
+        <div class="clearer"></div>
+    </div>
 </div>
 
 <form method="POST">
 {% csrf_token %}
 <div class="blockform">
-	<h2><span>{% trans "Reputation of the user" %} {{ profile.user }}&nbsp;&nbsp;<strong>[+{{ profile.reply_count_plus|default_if_none:"0" }} / -{{ profile.reply_count_minus|default_if_none:"0" }}] &nbsp;</strong></span></h2>
-	<div class="box">
-		<div class="inbox">
-			<table cellspacing="0">
-			<thead>
-				<tr>
-				<th class="tc3" style="width: 15%;">{% trans "From user" %}</th>
-				<th class="tc3" style="width: 15%;">{% trans "For post in topic" %}</th>
-				<th class="tc3" style="width: 35%;">{% trans "Reason" %}</th>
-				<th class="tc3" style="width: 10%; text-align: center;">{% trans "Estimation" %}</th>
-				<th class="tc3" style="width: 15%;">{% trans "Date" %}</th>
-				{% if request.user.is_superuser %}
-					<th class="tc3" style="width: 10%;">{% trans "Delete" %}</th>
-				{% endif %}
-				</tr>
-			</thead>
-				<tbody>
-				{% for reputation in reputations %}
-					<tr>
-						<td><a href="{% url djangobb:reputation reputation.from_user %}">{{ reputation.from_user }}</a></td>
-						<td><a href="{{ reputation.post.get_absolute_url }}">{{ reputation.post.topic }}</a></td>
-						<td>{{ reputation.reason }}</td>
-						<td style="text-align: center;">
-						{% if reputation.sign == 1 %}
-							<img src="{{ STATIC_URL }}djangobb_forum/img/reputation/warn_add.gif" alt="+" border="0">
-						{% else %}
-							<img src="{{ STATIC_URL }}djangobb_forum/img/reputation/warn_minus.gif" alt="+" border="0">
-						{% endif %}
-						</td>
-						<td>{% forum_time reputation.time %}</td>
-						{% if request.user.is_superuser %}
-							<td style="text-align: center;"><input type="checkbox" name="reputation_id" value="{{ reputation.id }}"></td>
-						{% endif %}
-					</tr>
-				{% endfor %}
-				</tbody>
-			</table>
-		</div>
-	</div>
+    <h2><span>{% trans "Reputation of the user" %} {{ profile.user }}&nbsp;&nbsp;<strong>[+{{ profile.reply_count_plus|default_if_none:"0" }} / -{{ profile.reply_count_minus|default_if_none:"0" }}] &nbsp;</strong></span></h2>
+    <div class="box">
+        <div class="inbox">
+            <table cellspacing="0">
+            <thead>
+                <tr>
+                <th class="tc3" style="width: 15%;">{% trans "From user" %}</th>
+                <th class="tc3" style="width: 15%;">{% trans "For post in topic" %}</th>
+                <th class="tc3" style="width: 35%;">{% trans "Reason" %}</th>
+                <th class="tc3" style="width: 10%; text-align: center;">{% trans "Estimation" %}</th>
+                <th class="tc3" style="width: 15%;">{% trans "Date" %}</th>
+                {% if request.user.is_superuser %}
+                    <th class="tc3" style="width: 10%;">{% trans "Delete" %}</th>
+                {% endif %}
+                </tr>
+            </thead>
+                <tbody>
+                {% for reputation in reputations %}
+                    <tr>
+                        <td><a href="{% url 'djangobb:reputation' reputation.from_user %}">{{ reputation.from_user }}</a></td>
+                        <td><a href="{{ reputation.post.get_absolute_url }}">{{ reputation.post.topic }}</a></td>
+                        <td>{{ reputation.reason }}</td>
+                        <td style="text-align: center;">
+                        {% if reputation.sign == 1 %}
+                            <img src="{{ STATIC_URL }}djangobb_forum/img/reputation/warn_add.gif" alt="+" border="0">
+                        {% else %}
+                            <img src="{{ STATIC_URL }}djangobb_forum/img/reputation/warn_minus.gif" alt="+" border="0">
+                        {% endif %}
+                        </td>
+                        <td>{% forum_time reputation.time %}</td>
+                        {% if request.user.is_superuser %}
+                            <td style="text-align: center;"><input type="checkbox" name="reputation_id" value="{{ reputation.id }}"></td>
+                        {% endif %}
+                    </tr>
+                {% endfor %}
+                </tbody>
+            </table>
+        </div>
+    </div>
 </div>
 
 <div class="clearer"></div>
 <div class="postlinksb">
-	<div class="inbox">
-		<p class="pagelink conl">{# pagination #}</p>
-		<p class="postlink conr">
-			{% if request.user.is_superuser %}
-				<input name="del_reputation" value="Delete" onclick="return confirm('{% trans "Are you sure" %}?')" type="submit">
-			{% endif %}
-			<a href="javascript:history.go(-1)">{% trans "Go back" %}</a>
-		</p>
-		
-		<div class="clearer"></div>
-	</div>
+    <div class="inbox">
+        <p class="pagelink conl">{# pagination #}</p>
+        <p class="postlink conr">
+            {% if request.user.is_superuser %}
+                <input name="del_reputation" value="Delete" onclick="return confirm('{% trans "Are you sure" %}?')" type="submit">
+            {% endif %}
+            <a href="javascript:history.go(-1)">{% trans "Go back" %}</a>
+        </p>
+
+        <div class="clearer"></div>
+    </div>
 </div>
 </form>
 {% endblock %}

File djangobb_forum/templates/djangobb_forum/reputation_form.html

View file
 
 {% block content %}
 <div class="blockform">
-	<h2><span>{% trans "Please, fill the form" %}</span></h2>
-	<div class="box">
-		<div class="inbox">
-			<form action="{% url djangobb:reputation form.to_user %}" method="post">
-			{% csrf_token %}
-			<table cellspacing="0">
-				{{ form.errors.as_ul }}
-				{{ form.post }}
-				{{ form.sign }}
-				<tbody><tr>
-					<td class="tc4" width="30%">{% trans "Your name:" %}</td>
-					<td class="tc4" width="70%">{{ form.from_user }}</td>
-				</tr>
-				<tr>
-					<td class="tc4" width="30%">{% trans "To whom we change a reputation:" %}</td>
-					<td class="tc4" width="70%">{{ form.to_user }}</td>
-				</tr>
-				<tr>
-					<td class="tc4" width="30%"></td>
-					<td class="tc4" width="70%">{{ form.reason }}</td>
-				</tr>				
-				<tr>
-					<td class="tc4" width="30%">{% trans "Method:" %}</td>
-					<td class="tc4" width="70%">
-						{% if request.GET.action == "plus" %}
-						{% trans "Add of a reputation" %}
-						{% else %}
-						{% trans "Reduction of a reputation" %}
-						{% endif %}
-					</td>
-				</tr>
-			</tbody></table>
-			<table cellspacing="0">
-				<tbody><tr>
-					<td class="tc4" style="text-align: center;"><input name="submit" value="{% trans "Submit" %}" type="submit">  <a href="javascript:history.go(-1)">{% trans "Go back" %}</a></td>
-				</tr>
-			</tbody></table>
-			</form>
-		</div>
-	</div>
+    <h2><span>{% trans "Please, fill the form" %}</span></h2>
+    <div class="box">
+        <div class="inbox">
+            <form action="{% url 'djangobb:reputation' form.to_user %}" method="post">
+            {% csrf_token %}
+            <table cellspacing="0">
+                {{ form.errors.as_ul }}
+                {{ form.post }}
+                {{ form.sign }}
+                <tbody><tr>
+                    <td class="tc4" width="30%">{% trans "Your name:" %}</td>
+                    <td class="tc4" width="70%">{{ form.from_user }}</td>
+                </tr>
+                <tr>
+                    <td class="tc4" width="30%">{% trans "To whom we change a reputation:" %}</td>
+                    <td class="tc4" width="70%">{{ form.to_user }}</td>
+                </tr>
+                <tr>
+                    <td class="tc4" width="30%"></td>
+                    <td class="tc4" width="70%">{{ form.reason }}</td>
+                </tr>
+                <tr>
+                    <td class="tc4" width="30%">{% trans "Method:" %}</td>
+                    <td class="tc4" width="70%">
+                        {% if request.GET.action == "plus" %}
+                        {% trans "Add of a reputation" %}
+                        {% else %}
+                        {% trans "Reduction of a reputation" %}
+                        {% endif %}
+                    </td>
+                </tr>
+            </tbody></table>
+            <table cellspacing="0">
+                <tbody><tr>
+                    <td class="tc4" style="text-align: center;"><input name="submit" value="{% trans "Submit" %}" type="submit">  <a href="javascript:history.go(-1)">{% trans "Go back" %}</a></td>
+                </tr>
+            </tbody></table>
+            </form>
+        </div>
+    </div>
 </div>
 {% endblock %}
 

File djangobb_forum/templates/djangobb_forum/search_posts.html

View file
 {% block content %}
 {% autopaginate posts forum_settings.FORUM_PAGE_SIZE %}
 <div class="linkst">
-	<div class="inbox">
-		<p class="pagelink">{% paginate %}</p>
-		<div class="clearer"></div>
-	</div>
+    <div class="inbox">
+        <p class="pagelink">{% paginate %}</p>
+        <div class="clearer"></div>
+    </div>
 </div>
 
 <div id="messages" class="block">
 {% endif %}
 {% empty %}
 <div id="msg" class="block">
-	<h2><span>{% trans "Info" %}</span></h2>
-	<div class="box">
-		<div class="inbox">
-		<p>{% trans "Your search returned no hits." %}</p>
-		<p><a href="javascript: history.go(-1)">{% trans "Go back" %}</a></p>
-		</div>
-	</div>
+    <h2><span>{% trans "Info" %}</span></h2>
+    <div class="box">
+        <div class="inbox">
+        <p>{% trans "Your search returned no hits." %}</p>
+        <p><a href="javascript: history.go(-1)">{% trans "Go back" %}</a></p>
+        </div>
+    </div>
 </div>
 {% endfor %}
 
 
 <div class="postlinksb">
-	<div class="inbox">
-		<p class="pagelink">{% paginate %}</p>
-		<div class="clearer"></div>
-	</div>
+    <div class="inbox">
+        <p class="pagelink">{% paginate %}</p>
+        <div class="clearer"></div>