Commit Graph

27 Commits

Author SHA1 Message Date
Dan McGee
e12f88f1d6 Fix filtering of minor versions on differences page
This has been broken for a long time; looks like it happened when we
switched over to using our standard details tag and no longer emit a
<span/> element unconditionally.

Signed-off-by: Dan McGee <dan@archlinux.org>
2014-12-02 14:48:16 -06:00
Dan McGee
3f1ca4da2a Simplify filter reload code
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-03-09 12:02:00 -05:00
Dan McGee
268317dd33 Use localStorage to save/restore developer report filters
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-03-09 11:58:51 -05:00
Dan McGee
697a2b15c1 Use localStorage to save/restore todolist filters
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-03-09 11:49:22 -05:00
Dan McGee
2e06e74d3a Use localStorage to save/restore signoffs filters
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-03-09 11:40:58 -05:00
Dan McGee
81a2051e34 Allow filesize sorter to match &nbsp; character
This gets the sorter working correctly again on the developer reports
pages where we show file sizes. Apparently the Django filesizeformat tag
now uses non-breaking spaces.

Signed-off-by: Dan McGee <dan@archlinux.org>
2014-03-09 11:12:40 -05:00
Dan McGee
ecf57207c0 Fix sorting of file size values in jQuery tablesorter
The dumbass currency parser was matching values like '1.5 GB', causing
the actual sorting to not work right since the magnitude values of GB
values are obviously different than MB. Remove it fully from the parser
list so our actual parser matches and we sort correctly.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-04-21 20:06:14 -05:00
Dan McGee
b7b2474064 Various minor code cleanups and fixes
Most of these were suggested by PyCharm, and include everything from
little syntax issues and other bad smells to dead or bad code.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-04-16 22:12:01 -05:00
Dan McGee
26d6fba089 Fix spacing issues in signoffs 'Show More' links
When we had a simple multi-line message here, we would end up with too
much spacing wherever the link had planted itself due to the div adding
visual whitespace. Remove the div completely when the link is clicked to
remedy this.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-02-03 13:38:39 -06:00
Dan McGee
c8ece67cec Convert to using new todolist models everywhere
This is a rather widespread set of changes converting usage to the new
todo list and todo list package model recently introduced. The data
migration is not included in this commit. After this commit, the old
model should no longer be referenced anywhere.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-12-28 14:48:29 -06:00
Dan McGee
040e0ddea5 Collapse really long signoff specifications using JS
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-12-11 20:54:35 -06:00
Evangelos Foutras
ddb7f4825f archweb.js: Fix syntax error in filter_signoffs()
Commit 1decbc079f "JSLint suggested script
cleanups" mistakenly removed the closing brace and parenthesis of a
jQuery .each() call, along with a following comment.

This commit brings back the two removed lines.

Signed-off-by: Evangelos Foutras <evangelos@foutrelis.com>
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-08 09:06:01 -05:00
Dan McGee
1decbc079f JSLint suggested script cleanups
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-02 08:48:54 -05:00
Dan McGee
febf5e9223 Collapse long lists of related packages
Just like we did with the rows of depends and required by, collapse down
conflicts, provides, etc. comma-separated lists if they grow too large.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-09-30 18:18:19 -05:00
Dan McGee
dfbf7cdd4c Make todolist filtering functions more generic
This will allow us to use them elsewhere in a future commit.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-09-15 09:13:58 -05:00
Dan McGee
acf252f7f3 Add some HTML5-ization in JS of various input attributes
On the login page, give focus to the username box when the page loads as
well as turning autocorrection and auto-capitalization off on the
username box.

For the developer profile page, we can add some minor validation and
typing of certain form fields that allow things like iPhone and Android
to customize the presented keyboard to the user, as well as allowing
browsers to do some client-side validation.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-09-05 09:29:38 -05:00
Dan McGee
c130414a47 Make tablesorter filesize sorter more flexible
Accept a few more prefixes, and also handle both 'MB' and 'MiB' style
sizes.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-08-04 15:11:27 -05:00
Dan McGee
2a221fa72f Upgrade to jQuery 1.7.2 and a maintained tablesorter
This touches a wide variety of files as well as makes updates to some of
our own code to be fully compatible. We also use some of the newer
locale/accent sorting features of tablesorter to make tables with
developer names sort in a more sane fashion.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-28 17:52:52 -05:00
Dan McGee
c1a6a87e23 Add arch and repo filter to todolist packages
This matches what we do on signoffs. Also beef up the styling a bit and
add the dynamically updated package count info.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-25 00:45:36 -05:00
Dan McGee
b1206a4109 Enable filtering of todolist packages
This matches the filtering options we have on the signoffs and package
differences pages.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-23 22:22:49 -05:00
Dan McGee
211340c8bd Ensure package files JS can support corner cases
We should handle the cases dealing with no filelist available, outdated
filelist, or a package without files, just as the HTML server-side page
does. Add a bit more info to the JSON returned so we can do so.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-23 21:31:17 -05:00
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