summaryrefslogtreecommitdiff
path: root/media/archweb.js
AgeCommit message (Collapse)Author
2011-12-05Convert to and enable staticfiles contrib applicationDan McGee
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-11-30Add more precise sort for last update signoff columnDan McGee
This allows sorting by the exact time recorded in the database, even if we don't show it directly to the user, which makes finding the most recent updates a lot easier. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-13Fix styling on new signoff list JS creationDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-04Add filter by target repo on signoffs pageDan McGee
And add a count of displayed rows below the filter options. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03Signoffs changes and improvementsDan McGee
* Better signoff report with more detail * Show signoff specification in signoffs view * Honor disabled/bad flags and display in approval column * Various other small bugfixes and tweaks Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-03Many signoff page improvementsDan McGee
Add a new 'SignoffSpecification' model which will capture metadata regarding a specific package if it differs from the norm- e.g. more or less than 2 required signoffs, is known to be bad, a comment from the maintainer, etc. The groundwork is laid here; much of this will still need to be wired up in the future. Enhance the view with a lot more JS prettiness and add revoking of signoffs. The signoff page can be filtered and the links and all the fun stuff are totally dynamic now. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-27Prettify filesizes in package visualization chartDan McGee
Add a general purpose formatter and mark up each value function with an 'is_size' attribute so we can add additional display formatting if asked for. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-09-29Slight rework of package size sort functionDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-09-29JSLint suggested cleanupsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-05-02Ensure we can handle all values in file size columnsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-05-02Add filesizeformat filter to sizes in reports/bigEvangelos Foutras
We also add a new 'filesize' tablesorter parser that handles all the suffixes found in django's filesizeformat filter. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-21Fix news preview with CSRF and AJAX in Django 1.2.5release_2011-03-21Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-01Fix JS date parsing sort helperDan McGee
How could I ever forget the awesomeness that is the JS date constructor that takes a month value between 0-11, not 1-12. Total insanity. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-18Small JS clarification for finding table cellDan McGee
Although it happened to be the parent element in this case, we are really just looking for the containing cell. Change the call to closest so we are future-proofed. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-18Make package signoffs AJAX if JS is enabledDan McGee
This makes the signoffs page a heck of a lot more usable as you can go through and click a bunch at once without waiting for the rather slow page to reload. Hopefully the first step to bringing life back into this part of the site. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-14Use more efficient updateCell event after todo list clickDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-14Update tablesorter cache after clicking todo list statusDan McGee
We didn't update this before, so sorting the last after checking off a few todos didn't work right, as it was using the old values. Fix it by adding a call to update; this can eventually be changed to the updateCell call commented out once I upgrade the minified tablesorter.js file. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-14Fix JS null error when parsing non-matching dateDan McGee
We didn't escape early with some value, causing an invalid dereference. While fixing this, also touch up the other functions and move a few more thngs to parser dictionary attributes. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-09Convert function expressions to declarationsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-09gjslint recommended javascript cleanupsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-08Add a long datetime parser to table sorting codeDan McGee
This comes into play on our new developer clocks page, where the last column was not sorting at all as expected. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-26Make package differences JS a bit more efficientDan McGee
Use an id-based selector so we can get the necessary table rows to filter a lot more quickly than a lengthy CSS selector. Also use traversal rather than selectors when grabbing the package versions. This looked like a 3x-4x increase in speed while testing locally. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-20Package differences small updatesDan McGee
* Add 'multilib-testing' to the CSS class list to hide for [multilib] * Select 'Only In Both' by default, which is probably the most useful option * Unselect 'Minor Version Mismatches' by default Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-30Move most inline JS into script filerelease_2010-09-30Dan McGee
We're getting to the point where we are starting to have a good chunk of JS scattered about. Centralize a lot of it for maintenance and performance purposes. Signed-off-by: Dan McGee <dan@archlinux.org>