summaryrefslogtreecommitdiff
path: root/templates/news/list.html
diff options
context:
space:
mode:
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 %}