summaryrefslogtreecommitdiffstats
path: root/main/templatetags
AgeCommit message (Collapse)AuthorFilesLines
2013-12-14Speed up master key listing pageDan McGee1-5/+13
We were spending a lot of time getting the developer name for a given key on this page, which involved sending one query per key ID. Use the cache to our advantage here and save ourselves the "expensive" lookups. This eliminates ~100 queries per page load. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-07-13Use the unicode char representation of &nbsp;Dan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2013-02-03Update user_pgp_key_link template tag to use DeveloperKey modelDan McGee1-6/+11
The first of several small updates to use the new data we have available. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-16Convert all usages of flag icons to new spriteDan McGee1-0/+13
This uses a new template tag to avoid repeating construction of the necessary HTML element all over the place. The site should look exactly as it did before, except now you don't have to download 20+ images to see some pages. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-12-30Move needs_autoescape attribute to @register.filterDan McGee1-2/+2
This is the preferred and non-deprecated way of doing this in Django 1.4+. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-12-27Tablesorter JS upgradeDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-12-12Update jQuery to 1.8.3Dan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-21Update tablesorter JSDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-09-25Update jQuery to 1.8.2Dan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-09-05Upgrade jQuery to 1.8.1Dan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-08-01PGP key handling updatesDan McGee1-0/+8
* Import signatures for all known keys, not just active developers * Ensure we are only showing and accounting for active developers on the master keys page * Add a new table showing signatures between developers Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-29Upgrade to jQuery 1.7.2 and a maintained tablesorterDan McGee1-2/+3
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-09Add a new jquery_tablesorter CDN template tagDan McGee1-0/+7
And use it everywhere we were including the file before. This should make updating the version a heck of a lot easier. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-29Add developer status table to master keys pageDan McGee1-0/+8
This shows the cross-product of each master key with each developer key so you can see who has been signed, where signatures are missing, etc. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-24Use staticfiles_storage in jQuery tagDan McGee1-2/+4
To get the local URL to the jQuery JS file. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-24Remove cdnprefix template tagDan McGee1-12/+0
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-08Allow more flexibility in pgp_key_linkDan McGee1-3/+14
Allow key_id to be a large integer value that gets converted to hex, and allow overriding of the default link text. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-06Convert to and enable staticfiles contrib applicationDan McGee1-1/+2
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 master key overview pageDan McGee1-0/+13
And a bunch of text that may suck, but is better than nothing. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-15Show full names on developer user list pagesDan McGee1-1/+1
The old display format doesn't really make sense. Also fix the invalid HTML generated by the PGP tag link- we need to escape using &amp; inside the generated URLs. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-08Always use same URL for both secure and non-secure CDN requestsDan McGee1-6/+1
Use a scheme-relative URL rather than serving different content to users based on HTTP or HTTPS. Should prevent mismatched certificate errors. Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-22Accept 40 hex char PGP key signatures onlyDan McGee1-3/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-21Nicer formatting of PGP key display valueDan McGee1-3/+14
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-15Update to jQuery 1.4.4Dan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-15Simplify jQuery CDN tagDan McGee1-15/+10
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-02Add a PGP key field on the dev profileDan McGee1-0/+19
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-26Developer reportsDan McGee1-0/+21
This commit adds four initial developer reports that are hopefully useful to developers and packages in checking up on the state of things. They include: * big : the 100 biggest packages in the repos * old : packages built > 2 years ago * uncompressed-man : self-explanatory * uncompressed-info : self-explanatory There should obviously be some sort of index page to access all of these, so that will be coming soon. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-29Always use HTTPS for jQueryDan McGee1-4/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-27Add tag for inserting CDN prefix on media URLsDan McGee1-2/+18
This tag will just be placed before any media reference that is available on the CDN; if the CDN is enabled and CDN_PATH/CDN_PATH_SECURE are defined the correct URL will be generated. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-26Upgrade to jQuery 1.4.3Dan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-23Get secure/unsecure checking actually workingDan McGee1-5/+5
We need a bit more, like actually having something relevant in the RequestContext object, in order for this to all work. Instead of putting the full request in just populate a 'secure' key with a boolean value indicating whether the request is secure. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21Allow serving jQuery via HTTPS if secure request detectedDan McGee1-1/+6
Handles the concerns in FS#19045. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-15Make CDN not dependent on DEBUG settingDan McGee1-3/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Upgrade jQuery to 1.4.2Dan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Add CDN templatetag packageDan McGee2-0/+19
For now, this contains one new template tag- 'jquery'. This will allow us to use the Google AJAX CDN in non-debug environments, since there is really no need for us to be the source of this common file. In the future this package may gain other static media resource tags as well. Signed-off-by: Dan McGee <dan@archlinux.org>