summaryrefslogtreecommitdiffstats
path: root/templates/news/list.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/list.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/list.html')
-rw-r--r--templates/news/list.html69
1 files changed, 45 insertions, 24 deletions
diff --git a/templates/news/list.html b/templates/news/list.html
index a35c41e..cadc24a 100644
--- a/templates/news/list.html
+++ b/templates/news/list.html
@@ -1,28 +1,49 @@
{% 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>
+<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 %}
+
+ <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' %}">
+ <td>{{ item.postdate }}</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.main.change_news %}
+ <td>
+ <a href="/news/edit/{{ item.id }}/"
+ title="Edit: {{ item.title }}">Edit</a>
+ {% endif %}
+ {% if perms.main.delete_news %}
+ &nbsp;&nbsp;<a href="/news/delete/{{ item.id }}/"
+ title="Delete: {{ item.title }}">Delete</a>
+ </td>
+ {% endif %}
+ </tr>
+ {% endfor %}
+ </tbody>
+ </table>
+
+</div>
{% endblock %}