evorepo/templates/news/list.html
Dan McGee eef1ee7051 Add RSS links to /news/ and /packages/ URLs
These were available only from the home page, but it makes sense to
advertise them on the corresponding index pages too.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-05-19 16:32:17 -05:00

58 lines
1.8 KiB
HTML

{% extends "base.html" %}
{% block title %}Arch Linux - News{% endblock %}
{% block head %}
<link rel="alternate" type="application/rss+xml" title="Arch Linux News Updates" href="/feeds/news/" />
{% endblock %}
{% block content %}
<div id="news-article-list" class="box">
<h2>News Archives</h2>
{% if perms.news.add_news %}
<ul class="admin-actions">
<li><a href="/news/add/" title="Add a news item">Add News Item</a></li>
</ul>
{% endif %}
{% include "news/paginator.html" %}
<table id="article-list" class="results">
<thead>
<tr>
<th>Published</th>
<th>Title</th>
<th>Author</th>
{% if perms.news.change_news %}
<th></th>
{% endif %}
</tr>
</thead>
<tbody>
{% for item in news_list %}
<tr class="{% cycle 'odd' 'even' %}">
<td>{{ item.postdate|date }}</td>
<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.news.change_news %}
<td>
<a href="{{ item.get_absolute_url }}edit/"
title="Edit: {{ item.title }}">Edit</a>
{% endif %}
{% if perms.news.delete_news %}
&nbsp;&nbsp;<a href="{{ item.get_absolute_url }}delete/"
title="Delete: {{ item.title }}">Delete</a>
</td>
{% endif %}
</tr>
{% endfor %}
</tbody>
</table>
{% include "news/paginator.html" %}
</div>
{% endblock %}