summaryrefslogtreecommitdiffstats
path: root/templates/news/list.html
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-09-20 23:10:09 +0200
committerDan McGee <dan@archlinux.org>2010-09-21 16:10:02 +0200
commit41dc37c8126f062257ce7d5fc8fcf84286b55a88 (patch)
treec73e8f661ffb68d036f528257148243036b28a82 /templates/news/list.html
parent7c92ddbd3c86d6aaa34abd4b2d3f12775801b50b (diff)
downloadarchweb-41dc37c8126f062257ce7d5fc8fcf84286b55a88.tar.gz
archweb-41dc37c8126f062257ce7d5fc8fcf84286b55a88.tar.xz
Update news views to use slug instead of ID
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/news/list.html')
-rw-r--r--templates/news/list.html4
1 files changed, 2 insertions, 2 deletions
diff --git a/templates/news/list.html b/templates/news/list.html
index 14ba79b..26e8c26 100644
--- a/templates/news/list.html
+++ b/templates/news/list.html
@@ -34,11 +34,11 @@
<td>{{ item.author.get_full_name }}</td>
{% if perms.main.change_news %}
<td>
- <a href="/news/edit/{{ item.id }}/"
+ <a href="{{ item.get_absolute_url }}edit/"
title="Edit: {{ item.title }}">Edit</a>
{% endif %}
{% if perms.main.delete_news %}
- &nbsp;&nbsp;<a href="/news/delete/{{ item.id }}/"
+ &nbsp;&nbsp;<a href="{{ item.get_absolute_url }}delete/"
title="Delete: {{ item.title }}">Delete</a>
</td>
{% endif %}