2007-11-03 00:45:10 -07:00
|
|
|
{% extends "base.html" %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="greybox">
|
2008-07-30 09:59:09 -07:00
|
|
|
{% if perms.main.add_news %}
|
2007-11-03 00:45:10 -07:00
|
|
|
<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 %}
|
2007-12-30 14:44:27 -08:00
|
|
|
<tr class="{% cycle pkgr2,pkgr1 %}">
|
2007-11-03 00:45:10 -07:00
|
|
|
<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 %}
|