1 {% extends
"base.html" %}
5 {% if perms.news.add_news %}
6 <div style=
"float:right">
7 <a href=
"/news/add/">Add News Item
</a>
10 <h2 class=
"title">News Updates
</h2>
11 <table class=
"results" width=
"100%">
12 {% for item in news %}
13 <tr class=
"{% cycle pkgr2,pkgr1 %}">
14 <td>{{ item.postdate }}
</td>
15 <td><a href=
"{{ item.get_absolute_url }}">{{ item.title }}
</a></td>
17 {% comment %}{% if item.author %}{% ifequal user.username item.author.username %}{% endcomment %}
18 <a href=
"/news/edit/{{ item.id }}/">edit
</a>
19 <a href=
"/news/delete/{{ item.id }}/">delete
</a>
20 {% comment %}{% endifequal %}{% endif %}{% endcomment %}