2007-11-03 00:45:10 -07:00
|
|
|
{% extends "base.html" %}
|
2009-10-31 09:28:53 -07:00
|
|
|
{% block title %}Arch Linux - News{% endblock %}
|
2010-03-16 11:25:02 -07:00
|
|
|
|
2007-11-03 00:45:10 -07:00
|
|
|
{% block content %}
|
2010-03-16 11:25:02 -07:00
|
|
|
<div id="news-article-list" class="box">
|
|
|
|
|
|
|
|
<h2>News Archives</h2>
|
|
|
|
|
|
|
|
{% if perms.main.add_news %}
|
|
|
|
<ul class="admin-actions">
|
|
|
|
<li><a href="/news/add/" title="Add a news item">Add News Item</a></li>
|
|
|
|
</ul>
|
|
|
|
{% endif %}
|
|
|
|
|
2010-09-07 22:46:04 -07:00
|
|
|
{% include "news/paginator.html" %}
|
|
|
|
|
2010-03-16 11:25:02 -07:00
|
|
|
<table id="article-list" class="results">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Published</th>
|
|
|
|
<th>Title</th>
|
|
|
|
<th>Author</th>
|
|
|
|
{% if perms.main.change_news %}
|
|
|
|
<th></th>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
{% for item in news_list %}
|
|
|
|
<tr class="{% cycle 'odd' 'even' %}">
|
2010-09-14 16:47:12 -07:00
|
|
|
<td>{{ item.postdate|date }}</td>
|
2010-03-16 11:25:02 -07:00
|
|
|
<td class="wrap"><a href="{{ item.get_absolute_url }}"
|
|
|
|
title="View: {{ item.title }}">{{ item.title }}</a></td>
|
|
|
|
<td>{{ item.author.get_full_name }}</td>
|
|
|
|
{% if perms.main.change_news %}
|
|
|
|
<td>
|
2010-09-20 14:10:09 -07:00
|
|
|
<a href="{{ item.get_absolute_url }}edit/"
|
2010-03-16 11:25:02 -07:00
|
|
|
title="Edit: {{ item.title }}">Edit</a>
|
|
|
|
{% endif %}
|
|
|
|
{% if perms.main.delete_news %}
|
2010-09-20 14:10:09 -07:00
|
|
|
<a href="{{ item.get_absolute_url }}delete/"
|
2010-03-16 11:25:02 -07:00
|
|
|
title="Delete: {{ item.title }}">Delete</a>
|
|
|
|
</td>
|
|
|
|
{% endif %}
|
|
|
|
</tr>
|
|
|
|
{% endfor %}
|
|
|
|
</tbody>
|
|
|
|
</table>
|
|
|
|
|
2010-09-07 22:46:04 -07:00
|
|
|
{% include "news/paginator.html" %}
|
|
|
|
|
2010-03-16 11:25:02 -07:00
|
|
|
</div>
|
2007-11-03 00:45:10 -07:00
|
|
|
{% endblock %}
|