Carriage return.
[archweb_dev-nj.git] / templates / news / list.html
bloba6780f3f299434032a55673be4a7c64ef709fda8
1 {% extends "base.html" %}
3 {% block content %}
4 <div class="greybox">
5 {% if perms.news.add_news %}
6 <div style="float:right">
7 <a href="/news/add/">Add News Item</a>
8 </div>
9 {% endif %}
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>
16 <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 %}
21 </td>
22 </tr>
23 {% endfor %}
24 </table>
25 </div>
26 {% endblock %}