All pastes #254770 Raw Edit

Untitled

public text v1 · immutable
#254770 ·published 2006-11-22 07:35 UTC
rendered paste body
{% extends "bone.html" %}
{% load ratings %}

{% block title %}Gaming News{% endblock %}
{% comment %}
{% block extraheader %}
{% if mediabox_article_list %}
	<script type="text/javascript">
	_mb_items = new Array();
{% for article in mediabox_article_list %}	_mb_items.push(new Array('{{ article.name|escape }}', '{{ article.type|escape }}', '{{ article.author|escape }}', '{{ article.get_absolute_url|escape }}', '{{ article.related_table.id }}', '{{ article.related_object }}'));
{% endfor %}	</script>
	<script type="text/javascript" src="{{ JS_URL }}mediabox.js"></script>
	<link rel="stylesheet" type="text/css" href="{{ CSS_URL }}mediabox.css" />
{% endif %}
	<link rel="search" title="Search for Articles &amp; News" href="/{{ request.LANGUAGE_CODE }}/articles/search/" />
	<link rel="alternate" title="{{ current_site.name|escape }} News" href="/{{ request.LANGUAGE_CODE }}/rss/news/" type="application/rss+xml" />
	<link rel="alternate" title="{{ current_site.name|escape }} Headlines" href="/{{ request.LANGUAGE_CODE }}/rss/headlines/" type="application/rss+xml" />
{% endblock %}
{% endcomment %}
{% block content %}
{% comment %}
	{% if mediabox_article_list %}
		<div id="mediabox">
		<!-- Curse Gaming (c) Media Box -->
			<div id="mediabox_c">
				<a href="{{ mediabox_article_list.0.get_absolute_url }}" id="mediabox_img">
					<img src="{{ IMAGE_URL }}mediabox/overlays/{{ mediabox_article_list.0.related_table.id }}/{{ mediabox_article_list.0.related_object }}.jpg" alt="" width="525" height="257"/>				</a>			</div>

			<a href="{{ mediabox_article_list.0.get_absolute_url }}" id="mediabox_t">
				<h3 id="mediabox_name">{{ mediabox_article_list.0.name|escape }}</h3>
				<p id="mediabox_text">{{ mediabox_article_list.0.type|escape }} by {{ mediabox_article_list.0.author|escape }}</p>
			</a>
			<div id="mediabox_l_c">
			</div>
			<div id="mediabox_l">
				{% for article in mediabox_article_list %}
					<a href="{{ article.get_absolute_url }}" id="mediabox_i_{{ forloop.counter0 }}" {% ifequal mediabox_article_list.0.id article.id %} class="active"{% endifequal %} title="{{ article.name|escape }}">

						<img src="{{ IMAGE_URL }}mediabox/thumbs/{{ article.related_table.id }}/{{ article.related_object }}.jpg" alt="" width="71" height="35"/>
					</a>
				{% endfor %}			</div>
		<!-- Curse Gaming (c) Media Box -->
		</div>
	{% endif %}
{% endcomment %}

<div class="endbox">
{% if article_list %}
<div style="margin: -7px 5px 0 5px; padding: 2px;">
	<div style="float: right;">

		<a href="/{{ LANGUAGE_CODE }}/2/" class="button">Older &gt;</a>
	</div>
	<a href="/{{ LANGUAGE_CODE }}/rss/news/" class="button">RSS</a>  <a href="/{{ LANGUAGE_CODE }}/articles/search/" class="button">Search</a> <a href="/{{ LANGUAGE_CODE }}/articles/submit/" class="button">Submit</a>
</div>
{% for article in article_list %}
<div class="sect">

	<div class="title">
		{% show_rating "articles.article" article.id %}
		<h3 title="{{ article.name|escape }}"><a href="{{ article.get_absolute_url }}">{{ article.name|escape }}</a></h3>
		<small><a href="{{ article.type.get_absolute_url }}">{{ article.type|escape }}</a> - Posted by {% ifequal article.author request.user %}You{% else %}{{ article.author.get_html_code }}{% endifequal %} on {{ article.post_date }} (<a href="{{ article.get_absolute_url }}#comments">{{ article.comments_total }} comment{% ifnotequal article.comments_total 1 %}s{% endifnotequal %}</a>)</small>
	</div>
	<div class="body">

	<img src="{{ IMAGE_URL }}newsicons/{{ article.related_table.id }}/{{ article.related_object }}.png" alt="" width="64" height="64" class="newsicon"/>
	{{ article.get_truncated_body|linebreaks }}
	<small style="float: left;"><a href="/{{ LANGUAGE_CODE }}/labels/articles/article/{{ article.id }}/" style="font-weight: bold;">Labels</a>: {% if article.labels %}{% for label in article.get_label_names %}<a href="/{{ LANGUAGE_CODE }}/articles/search/?label={{ label|escape }}">{{ label|escape }}</a> {% endfor %}{% else %}(No labels yet){% endif %}</small>
	<a href="{{ article.get_absolute_url }}" class="more" title="{{ article.name|escape }}"><img src="{{ IMAGE_URL }}more.gif" alt="More" width="65" height="15" /></a>	</div>
</div>
{% endfor %}
<div style="margin: -7px 5px -7px 5px;">
	<div style="float: right;">

		<a href="/{{ LANGUAGE_CODE }}/2/" class="button">Older &gt;</a>
	</div>
	<a href="/{{ LANGUAGE_CODE }}/rss/news/" class="button">RSS</a> <a href="/{{ LANGUAGE_CODE }}/articles/search/" class="button">Search</a> <a href="/{{ LANGUAGE_CODE }}/articles/submit/" class="button">Submit</a>
</div>
{% else %}
<div class="sect">

	<div class="body">
		<p>It seems there are no articles posted for this portal in your language yet. Be the first by heading over to our <a href="/{{ LANGUAGE_CODE }}/articles/submit/">article and news submission form</a>.</p>
	</div>
</div>
{% endif %}
</div>
{% endblock %}