Commit Graph

6 Commits

Author SHA1 Message Date
Dan McGee
f81323ff6f Generate package filelist in JavaScript via AJAX
This is a super-simple template to follow to make the filelists work, so
we can do all the "hard" work client-side. This also removes the need
for a header-dependent '/files/' URL, as we are now just using the JSON
representation instead.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-23 21:13:30 -05:00
Dan McGee
c589f7d930 Don't remove approval CSS class when updating signoff list
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-08 23:24:35 -05:00
Dan McGee
ef8fb7c7f2 Make collapseDependsList() a bit smarter
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-08 21:24:36 -05:00
Dan McGee
ca86b8d339 Collapse the dependencies and required by lists when they are long
For now, this happens when the lists are over 20 items. Using JS, hide
the 21st and following packages listed in the list and replace them with
a 'Show More...' link that users can click to get the full list.

For a package such as glibc with 444 'Required By' entries, this can
make quite a visual difference.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-05 17:36:22 -05:00
Dan McGee
3b545d23b6 Add checkbox range selection to stale relations page
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-03 14:18:22 -06:00
Dan McGee
943ef2e8e4 Convert to and enable staticfiles contrib application
This moves our site static files into the sitestatic directory if they
are shared resources, and also moves a handful of things (such as the
artwork logos) into application-specific static/ directories. This
allows the staticfiles contrib app to work after a few settings tweaks,
a run of collectstatic, and massaging the hardcoded '/media/' prefix out
of our templates.

Django 1.4 is going to make this a lot easier to move things to a CDN
and provides better template tags; for now this is setting the stage
before we can move to that.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-05 23:06:10 -06:00