summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
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 objectrelease_2014-11-02Dan 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 releaserelease_2014-10-28Dan 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.1release_2014-10-23Dan 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 checkedrelease_2014-10-21Dan 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 usersrelease_2014-10-20Dan McGee
More Jinja2 conversion fallout, whoops. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-19Remove usage of templates for RSS feedsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-19Use varied prime numbers for caching lengthsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-19Simplify last modified and etags processing for feedsDan McGee
We had this elaborate system set up with caching and invalidation, which is overkill since we cache the result of the view anyway. Just hit the database when needed to find the last change to the respective model class and be done with it. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-19Use raw DB query to fetch last modified dateDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-19Convert package files view to Jinja2release_2014-10-19Dan McGee
This is another one we spend a lot of time rendering, and packges like sage-mathematics with 80,000+ files can really make the Django template engine grind. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-19Fix Jinja2 render in no-packager caseDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-19Fix function vs. property reference in Jinja templateDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Merge branch 'jinja'Dan McGee
2014-10-18Tweak search results page a bit moreDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Fix colspan valuesDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18FS#30773: put exact matches at topDan McGee
There have been a few proposed solutions to this, but there really isn't anything without a drawback. Things break pagination, require loading the entire result set from the database, etc. Just plop a new table on the page if someone did a so-called "simple" search and we have a match. Only show on the first page of the search results. This results in a relatively fast experience for someone doing something like searching for the "perl" package. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Package search HTML cleanupsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Change case of SUM() SQL functionDan McGee
2014-10-18Add possible optimization as a TODO for laterDan McGee
2014-10-18Move maintainer/packager link code back into templateDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Break out Jinja2-specific template helpersDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Convert bulk of package details page to Jinja2Dan McGee
We wrap the whole thing in a Django template so we don't have to convert our base template to Jinja2 (or have one for each templating engine). This also simplifies the static stuff so we can just keep using the Django tags. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Enable Jinja2 template bytecode cachingDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Convert details sub-tempates to Jinja2Dan McGee
This is a start at improving performance of rendering the package details page, our most-visited and slowest page on the production website. The Django template system is not very efficient due to our heavy use of broken out templates and pulling of various attributes and such on related packages. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Install and wire up django-jinjaDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Disable eggs template loaderDan McGee
2014-10-18Only show arches/repos that are necessaryDan McGee
After the refactor in commit 7947d36c4, we weren't gathering arches and repos from the correct list of packages. Fix this. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Tweak sorting settings on stale relations pageDan McGee
* Don't allow sorting of packages columns, doesn't make much sense * Default to sorting by pkgbase on all tables * Ensure all JS is executed inside doc.ready function (wow, how has this been wrong for so long?) Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-30Update AUR feed URLDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>