summaryrefslogtreecommitdiff
path: root/templates/news/list.html
blob: 0edaae1d3de6ad52e506f20fb018daef8f587515 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{% extends "base.html" %}

{% block content %}
	<div class="greybox">
	{% if perms.main.add_news %}
		<div style="float:right">
			<a href="/news/add/">Add News Item</a>
		</div>
	{% endif %}
		<h2 class="title">News Updates</h2>
		<table class="results" width="100%">
		{% for item in news_list %}
            <tr class="{% cycle pkgr2,pkgr1 %}">
				<td>{{ item.postdate }}</td>
				<td><a href="{{ item.get_absolute_url }}">{{ item.title }}</a></td>
				<td>
				{% comment %}{% if item.author %}{% ifequal user.username item.author.username %}{% endcomment %}
					<a href="/news/edit/{{ item.id }}/">edit</a>
					<a href="/news/delete/{{ item.id }}/">delete</a>
				{% comment %}{% endifequal %}{% endif %}{% endcomment %}
				</td>
			</tr>
		{% endfor %}
		</table>
	</div>
{% endblock %}