evorepo/templates/news/view.html
Dan McGee 00e9dce4db Fix news permission checking in templates
We were still looking at the permissions on the main application; these
need to be updated to point at the news application instead.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-24 11:12:31 -05:00

25 lines
699 B
HTML

{% extends "base.html" %}
{% load markup %}
{% block title %}Arch Linux - News: {{ news.title }}{% endblock %}
{% block content %}
<div class="news-article box">
<h2>News: {{ news.title }}</h2>
{% if perms.news.change_news %}
<ul class="admin-actions">
<li><a href="edit/" title="Edit this article">Edit News Item</a></li>
{% if perms.news.delete_news %}
<li><a href="delete/" title="Delete this article">Delete News Item</a></li>
{% endif %}
</ul>
{% endif %}
<p class="article-info">{{ news.postdate|date }} - {{ news.author.get_full_name }}</p>
<div class="article-content">{{ news.content|markdown }}</div>
</div>
{% endblock %}