summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2015-04-15Merge tag 'release_2014-11-08.2' into archweb-genericLuke Shumaker
Todolist pagination and sitemap, news sitemap
2015-04-15Merge tag 'release_2014-11-08' into archweb-genericLuke Shumaker
Mirror status and details switch to Jinja2
2015-04-15Merge tag 'release_2014-11-02' into archweb-genericLuke Shumaker
Staff groups
2015-04-15Merge tag 'release_2014-10-28' into archweb-genericLuke Shumaker
Fix django_countries issues
2015-04-15Merge tag 'release_2014-10-23' into archweb-genericLuke Shumaker
2015-04-15Merge branch 'mkjs' into archweb-genericLuke Shumaker
2015-04-15Add a Makefile to generate all of the 3rd party or minimized Javascript.Luke Shumaker
The goal here is to generate the files *exactly* as they are currently in the repository, which sometimes means using a specific version of a minifier or other weird things.
2015-04-13Merge tag 'release_2014-10-21' into archweb-genericLuke Shumaker
More tweaks and changes
2015-04-13Merge tag 'release_2014-10-20' into archweb-genericLuke Shumaker
A few Jinja2 fixes and some perf changes
2015-04-13Catch an instance of "Arch Linux" in packages/details.htmlLuke Shumaker
2015-04-13Merge tag 'release_2014-10-19' into archweb-genericLuke Shumaker
Jinja2 switch for some templates, exact matches in package search
2014-11-08Add paginator template for todolistsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08Add a todolists sitemapDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08Paginate the todolist listing pageDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08Minor news listing tweaksDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08Add a news-specific sitemapDan McGee
This follows the spec at https://support.google.com/news/publisher/answer/74288?hl=en#tagdefinitions Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08Convert sitemap.xml template to Jinja2Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08Override default sitemap.xml templateDan McGee
The Django one uses the spaceless tag, which isn't all that useful when we are gzipping the response anyway. Remove it to make generation a tad faster. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08Remove percentage filter from Django templates filtersDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08Break out available URLs into Jinja2 templateDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08Make delay a property, not a functionDan McGee
And re-indent the URL details log template now that we've broken it out. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08Convert mirror status tables to Jinja2Dan McGee
Yay for way improved performance. Local testing showed render times going from 265 ms to 135 ms. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-08Convert some of URL details to Jinja2Dan McGee
Anytime we have a loop with >100 items, the Django template engine begins to be the bottleneck. This one is relatively straightforward to convert, and sets the stage for converting the mirror status page as well. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-07Master signing keys page improvementsDan McGee
* Don't show non-packagers * Don't hardcode group names in view code * Reduce number of database queries for all of the cross-signature developer name lookups Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-05Add torrent/magnet icons to download pageDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-05Add icons, more detail to releases pagesDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-05Always link to torrent and magnet, even if not availableDan McGee
We were already doing this on the details page; no need to hide it on the listing page. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-03Update fixtures for new staff groupsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-02Add new StaffGroup objectDan McGee
This will allow us to be a bit more dynamic in showing the people listings on the website. We'll be adding a Support Staff category to recognize those that do things around here but aren't technically developers. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-02Mirror view tweaks and enhancementsDan McGee
* Add country column to main mirror list overview page. Most mirrors are strictly in one country, so do a little magic to show the right country if it makes sense. * Use new way of getting country names so we respect the overrides now present in the django_countries package. * Make the country selection box on the mirrorlist generation page a lot taller by default so it is easier to use. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-11-01Add bandwidth field to mirror URLsDan McGee
Not using this anywhere just yet, but suggested by Florian so we can do some more fancy things down the road, like determine bandwidth by country. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-28Bump to django_countries bugfix releaseDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-26Add last modified date to releasesDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-26Double batch size in BatchWritesWrapperDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-26Kill now unneeded workaround for Django issue #9800Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-26Remove Etag header from feedsDan McGee
We have Last-Modified here, and from what I can tell with some more reading and playing with caching, it isn't necessarily wise to set both of them in the same response. Set the one that we actually trust. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-24Reorganize sidebar links involving peopleDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-23Bump to Django 1.7.1Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-21Move all homepage JavaScript into single fileDan McGee
We had two small files plus a handful of inline stuff in the HTML; move as much of it as possible into a single static file. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-21Fix error when viewing mirror with no active URLsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-21Fix 500 when no URLs have been checkedDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-21Remove old suggested recommended settingsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-21Use cache_page on mirror status JSONDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-21Update django_countries to latest releaseDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-21Move caching of function data back to get_mirror_statusesDan McGee
We've moved this around a few times, including changing the parameters to ensure they are stable (commit bdfa22500f4). However, the bulk of the work takes place in the mashing up of the data, so cache the full result rather than just the result of a single query. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-21Simplify/clean-up finding of download mirrorDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-21Reduce complexity of status data URL queryDan McGee
Get rid of all the junk trying to only return URLs that have been checked in the last 24 hours; it just isn't worth it. Instead, do that screening only in the views that need it, namely the HTML status page. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-21Remove queryset specialization in JSON encoderDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-21Small performance tweaks to mirror status JSON encodingDan McGee
Do a few things to speed up the encoding of the JSON, including better usage of list comprehensions, less dynamic setattr() usage, and removal of the queryset specialization since we can easily do it outside of the encoder. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-20Fix display of flag requests for non-logged-in usersDan McGee
More Jinja2 conversion fallout, whoops. Signed-off-by: Dan McGee <dan@archlinux.org>