summaryrefslogtreecommitdiff
path: root/templates/news/list.html
diff options
context:
space:
mode:
authorIsmael Carnales <icarnales@gmail.com>2009-10-31 14:28:53 -0200
committerIsmael Carnales <icarnales@gmail.com>2009-11-09 22:24:51 -0200
commit522838d28153fc05d10fc7913babf477894aab79 (patch)
tree38ae15054fcb16e56990a388564c618e55275620 /templates/news/list.html
parenta008b0de807fab5285cd481a8a227ae06b1e1c19 (diff)
updated news list template
- added title - added permission checks
Diffstat (limited to 'templates/news/list.html')
-rw-r--r--templates/news/list.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/templates/news/list.html b/templates/news/list.html
index 0edaae1d..a35c41e0 100644
--- a/templates/news/list.html
+++ b/templates/news/list.html
@@ -1,5 +1,5 @@
{% extends "base.html" %}
-
+{% block title %}Arch Linux - News{% endblock %}
{% block content %}
<div class="greybox">
{% if perms.main.add_news %}
@@ -14,10 +14,12 @@
<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 %}
+ {% if perms.main.change_news %}
<a href="/news/edit/{{ item.id }}/">edit</a>
+ {% endif %}
+ {% if perms.main.delete_news %}
<a href="/news/delete/{{ item.id }}/">delete</a>
- {% comment %}{% endifequal %}{% endif %}{% endcomment %}
+ {% endif %}
</td>
</tr>
{% endfor %}