diff options
author | Dan McGee <dan@archlinux.org> | 2010-02-03 05:36:41 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2010-02-05 02:03:32 +0100 |
commit | 6fe8aec0abdfe284439e9d3adda85da8e5c3825b (patch) | |
tree | 666ed920937ffd6ef330247809b5fc91ea66a95b /public | |
parent | f22f20003b659a21ec387188130e4a5013c9271a (diff) | |
download | archweb-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 'public')
-rw-r--r-- | public/views.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/public/views.py b/public/views.py index 5c05782..d4a1c80 100644 --- a/public/views.py +++ b/public/views.py @@ -72,5 +72,12 @@ def moreforums(request): template_name="public/moreforums.html", template_object_name="forum") +def feeds(request): + context = { + 'arches': Arch.objects.all(), + 'repos': Repo.objects.all(), + } + return render_to_response('public/feeds.html', context) + # vim: set ts=4 sw=4 et: |