summaryrefslogtreecommitdiff
path: root/templates/news/list.html
blob: a35c41e0cc7b56b71bf6c8de0f8882f4ead18288 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{% extends "base.html" %}
{% block title %}Arch Linux - News{% endblock %}
{% block content %}
	<div class="greybox">
	{% if perms.main.add_news %}
		<div style="float:right">
			<a href="/news/add/">Add News Item</a>
		</div>
	{% endif %}
		<h2 class="title">News Updates</h2>
		<table class="results" width="100%">
		{% for item in news_list %}
            <tr class="{% cycle pkgr2,pkgr1 %}">
				<td>{{ item.postdate }}</td>
				<td><a href="{{ item.get_absolute_url }}">{{ item.title }}</a></td>
				<td>
        {% 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>
        {% endif %}
				</td>
			</tr>
		{% endfor %}
		</table>
	</div>
{% endblock %}