All pastes #234084 Raw Edit

Mine

public text v1 · immutable
·published 2006-11-02 08:55 UTC
rendered paste body
{% extends "bone.html" %}

{% load ratings %}
{% load i18n %}

{% block hasright %}{% endblock %}
{% block right %}{% endblock %}

{% block title %}{{ current_site.name|escape }} Forums: {{ thread.name }}{% endblock %}

{% block content %}
<div id="forums">
<div class="box alt">

<form method="post" action="/{{ LANGUAGE_CODE }}/forums/">
<fieldset class="forumselect">
<label for="forum_id">Change Forum:</label> <select id="forum_id" name="forum">
{% for portal in portal_list %}
<option value="{{ portal.id }}"{% ifequal portal.id current_site.id %} selected="selected"{% endifequal %}>{{ portal.name|escape }}</option>
{% endfor %}
</select> <input type="submit" value="Go" class="button" />
</fieldset>
</form>
<h1>{% if category.name %}{{ category.name }} Discussions{% else %}{{ current_site.name }} Forums{% endif %}</h1>
</div>

<div class="box">
{% if not thread.visible %}
<div class="information">This thread is currently hidden from users. (<a href="{{ thread.get_show_url }}">Restore</a>)</div>
<br />
{% endif %}
<ul class="tabs">
	<li{% if not thread.category %} class="use"{% endif %}><a href="/{{ LANGUAGE_CODE }}/forums/">All Threads</a></li>
{% for cat in category_list %}
	<li{% if thread.category.name %}{% ifequal thread.category.name cat.name %} class="use"{% endifequal %}{% endif %}><a href="{{ cat.get_absolute_url }}">{{ cat.name }}</a></li>
{% endfor %}
</ul>

<div class="postarea tborder">
<div class="tbar">
	<div class="bit">
	{% if start_page %}
		<a href="{{ thread.get_absolute_url }}1/">1</a> .. 
	{% endif %}
	{% for p in pages_to_show %}
		{% ifequal p page %}
		<strong>{{ p }}</strong>
		{% else %}
		<a href="{{ thread.get_absolute_url }}{{ p }}/">{{ p }}</a>
		{% endifequal %}
	{% endfor %}
	{% if end_page %}
		 .. <a href="{{ thread.get_absolute_url }}{{ total_pages }}/">{{ total_pages }}</a>
	{% endif %}
	</div>
	<div class="bit">Page {{ page }} of {{ total_pages }}</div>
	<h2 title="{{ thread.name|escape }}">{% if thread.sticky %}<img src="{{ IMAGE_URL }}icons/sticky.png" alt="Sticky" /> {% endif %}{% if not thread.open %}<img src="{{ IMAGE_URL }}icons/closed.png" alt="Closed" /> {% endif %} {{ thread.name|escape }}</h2>
</div>
<div class="tsubbar">
	{% if moderator %}
	<div style="float: right;">
		{% if thread.sticky %}
		<a href="{{ thread.get_unsticky_url }}">Unstick</a>
		{% else %}
		<a href="{{ thread.get_sticky_url }}">Sticky</a>
		{% endif %}
		{% if thread.open %}
		<a href="{{ thread.get_close_url }}">Close</a>
		{% else %}
		<a href="{{ thread.get_open_url }}">Open</a>
		{% endif %}
		{% if thread.visible %}
		<a href="{{ thread.get_hide_url }}">Delete</a>
		{% else %}
		<a href="{{ thread.get_show_url }}">Restore</a>
		{% endif %}
	</div>
	{% endif %}
	Started By {{ thread.author.get_html_code }}
	<span class="sep"></span>
	Has {{ thread.total_posts }} posts
	<span class="sep"></span>
	Forum <a href="{{ thread.category.get_absolute_url }}">{{ thread.category.name }}</a>
	<span class="sep"></span>
	Last post by {{ thread.last_author.get_html_code }} on {{ thread.last_post_date }}
</div>

{% for post in post_list %}
<div class="post {% cycle post1,post2 %}{% if post.is_hidden %} hiddenpost{% endif %}" id="post_{{ post.id }}">
	<a name="post_{{ post.id }}"></a>
	{% show_rating "forums.post" post.id %}
	{% if post.is_hidden %}
	<div class="userinfo">{{ post.author.get_html_code }}</div>
	<p>This post has been removed due to negative ratings by users.</p>
	{% else %}
	<h4>{{ post.post_date }}</h4>
	<div class="userinfo">
		{{ post.author.get_html_code }}
	</div>
	<div class="posttext">
		{{ post.html }}
		<div class="cb"></div>
	</div>
	<div class="footer">
		{% if thread.open %}
		<a href="{{ post.get_reply_url }}"><img src="{{ IMAGE_URL }}buttons/reply.gif" alt="Reply" /></a>
		<a href="{{ post.get_quote_url }}"><img src="{{ IMAGE_URL }}buttons/quote.gif" alt="Quote" /></a>
		{% endif %}
		{% if post.canedit %}
			<a href="{{ post.get_edit_url }}"><img src="{{ IMAGE_URL }}buttons/edit.gif" alt="Edit" /></a>
		{% endif %}
	</div>
	{% endif %}
</div>
{% endfor %}
</div>
</div>
{% if thread.open %}
<div class="endbox">
	{% include "forums/replyform.html" %}
</div>
{% endif %}
</div>
{% endblock %}