summaryrefslogtreecommitdiffstats
path: root/templates/news/list.html
diff options
context:
space:
mode:
authoreliott <eliott@cactuswax.net>2007-11-03 08:45:10 +0100
committereliott <eliott@cactuswax.net>2007-11-03 08:45:10 +0100
commit39a548fd2629f3b6383990264b2e331b3aea99fb (patch)
treef68c3156dad5f7814473ceff2461679ddf11a2e8 /templates/news/list.html
downloadarchweb-39a548fd2629f3b6383990264b2e331b3aea99fb.tar.gz
archweb-39a548fd2629f3b6383990264b2e331b3aea99fb.tar.xz
Initial import for public release...
Special Note Prior to git import, approx 90% of the code was done by Judd Vinet. Thanks Judd!
Diffstat (limited to 'templates/news/list.html')
-rw-r--r--templates/news/list.html26
1 files changed, 26 insertions, 0 deletions
diff --git a/templates/news/list.html b/templates/news/list.html
new file mode 100644
index 0000000..e188e3c
--- /dev/null
+++ b/templates/news/list.html
@@ -0,0 +1,26 @@
+{% extends "base.html" %}
+
+{% block content %}
+ <div class="greybox">
+ {% if perms.news.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 %}
+ <tr>
+ <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 %}