summaryrefslogtreecommitdiffstats
path: root/templates/public
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2010-02-03 05:36:41 +0100
committerDan McGee <dan@archlinux.org>2010-02-05 02:03:32 +0100
commit6fe8aec0abdfe284439e9d3adda85da8e5c3825b (patch)
tree666ed920937ffd6ef330247809b5fc91ea66a95b /templates/public
parentf22f20003b659a21ec387188130e4a5013c9271a (diff)
downloadarchweb-6fe8aec0abdfe284439e9d3adda85da8e5c3825b.tar.gz
archweb-6fe8aec0abdfe284439e9d3adda85da8e5c3825b.tar.xz
feeds: add per arch, per repo feed ability
Make the feed framework a lot more flexible and give the possibility to have a feed for each architecture. You can drill down even more than also get a feed for a particular repo; some might find this helpful for something like tracking [testing]. Implements FS#12939. I also bumped up the number of items available in each of these feeds; since it is full of a bunch of small items it might be more helpful to have more available and it should also prevent fewer ones from being missed. The UI isn't exactly spectacular, but I figured some sort of page is better than none listing all the various feeds you can pull from. Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'templates/public')
-rw-r--r--templates/public/feeds.html27
-rw-r--r--templates/public/index.html3
2 files changed, 29 insertions, 1 deletions
diff --git a/templates/public/feeds.html b/templates/public/feeds.html
new file mode 100644
index 0000000..a63c9ea
--- /dev/null
+++ b/templates/public/feeds.html
@@ -0,0 +1,27 @@
+{% extends "base.html" %}
+{% block title %}Arch Linux - RSS Feeds{% endblock %}
+{% block content %}
+<div class="box">
+ <h2 class="title">RSS Feeds</h2>
+ <br /><br />
+ <p>Several RSS feeds are available for consumption from the Arch website.
+ The majority of these are package related and allow feeds to be customized
+ for the updates you care about.</p>
+ <table cellspacing="20">
+ <tr><td>News items feed</td>
+ <td><a href="/feeds/news/">Feed <img src="/media/rss.png" alt="RSS Feed" /></a></td></tr>
+ <tr><td>Packages feed for <em>all</em> architectures, <em>all</em> repositories</td>
+ <td><a href="/feeds/packages/">Feed <img src="/media/rss.png" alt="RSS Feed" /></a></td></tr>
+ {% for arch in arches %}
+ <tr><td>Packages feed for architecture {{ arch }}, <em>all</em> repositories</td>
+ <td><a href="/feeds/packages/{{ arch }}/">Feed <img src="/media/rss.png" alt="RSS Feed" /></a></td></tr>
+ {% for repo in repos %}
+ <tr><td>Packages feed for architecture {{ arch }}, repository {{ repo }}</td>
+ <td><a href="/feeds/packages/{{ arch }}/{{ repo }}/">Feed <img src="/media/rss.png" alt="RSS Feed" /></a></td></tr>
+ {% endfor %}
+ {% endfor %}
+ </table>
+</div>
+<br /><br />
+{% endblock %}
+
diff --git a/templates/public/index.html b/templates/public/index.html
index 9351a72..0bc0af4 100644
--- a/templates/public/index.html
+++ b/templates/public/index.html
@@ -64,7 +64,8 @@
</tr>
{% endfor %}
<tr>
- <td colspan="2" style="text-align:right;font-size:x-small"><br /><a href="/packages/?sort=-last_update">More...</a></td>
+ <td style="font-size:x-small"><br /><a href="/feeds/">More Feeds...</a></td>
+ <td style="text-align:right;font-size:x-small"><br /><a href="/packages/?sort=-last_update">More Updates...</a></td>
</tr>
</table>
</div>