From 522838d28153fc05d10fc7913babf477894aab79 Mon Sep 17 00:00:00 2001 From: Ismael Carnales Date: Sat, 31 Oct 2009 14:28:53 -0200 Subject: updated news list template - added title - added permission checks --- templates/news/list.html | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'templates') 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 %}
{% if perms.main.add_news %} @@ -14,10 +14,12 @@

News Updates

{{ item.postdate }} {{ item.title }} - {% comment %}{% if item.author %}{% ifequal user.username item.author.username %}{% endcomment %} + {% if perms.main.change_news %} edit + {% endif %} + {% if perms.main.delete_news %} delete - {% comment %}{% endifequal %}{% endif %}{% endcomment %} + {% endif %} {% endfor %} -- cgit v1.2.3-54-g00ecf