summaryrefslogtreecommitdiffstats
path: root/templates/news/view.html
diff options
context:
space:
mode:
authorThayer Williams <thayerw@gmail.com>2010-03-16 19:25:02 +0100
committerDan McGee <dan@archlinux.org>2010-05-17 21:49:44 +0200
commit3945c52682702a9b4b62a46e667f2c3307f06907 (patch)
tree5f7e1ebf52ff4c02ad0a178265b36e5599c6e27e /templates/news/view.html
parent06f52613522adebd9228221a4fa36ab5746f4fdd (diff)
downloadarchweb-3945c52682702a9b4b62a46e667f2c3307f06907.tar.gz
archweb-3945c52682702a9b4b62a46e667f2c3307f06907.tar.xz
Redesigned News Pages
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/news/view.html')
-rw-r--r--templates/news/view.html29
1 files changed, 19 insertions, 10 deletions
diff --git a/templates/news/view.html b/templates/news/view.html
index 2f7c3d8..1b82bc0 100644
--- a/templates/news/view.html
+++ b/templates/news/view.html
@@ -1,14 +1,23 @@
{% extends "base.html" %}
-{% block title %}Arch Linux - {{ news.title }}{% endblock %}
+{% block title %}Arch Linux - News: {{ news.title }}{% endblock %}
{% block content %}
- <div class="box">
- <div style="float: right; font-size: small">
- {{ news.author.get_full_name }}<br />
- {{ news.postdate }}
- </div>
- <h3>{{ news.title }}</h3>
- <hr /><br />
- {{ news.content|safe|linebreaks }}
- </div>
+<div id="news-article" class="box">
+
+ <h2>News: {{ news.title }}</h2>
+
+ {% if perms.main.change_news %}
+ <ul class="admin-actions">
+ <li><a href="/news/edit/{{ news.id }}/" title="Edit this article">Edit News Item</a></li>
+ {% if perms.main.delete_news %}
+ <li><a href="/news/delete/{{ news.id }}/" title="Delete this article">Delete News Item</a></li>
+ {% endif %}
+ </ul>
+ {% endif %}
+
+ <p class="article-info">{{ news.postdate }} - {{ news.author.get_full_name }}</p>
+
+ {{ news.content|safe|linebreaks }}
+
+</div>
{% endblock %}