diff options
Diffstat (limited to 'templates')
-rw-r--r-- | templates/news/list.html | 8 |
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 %} |