summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2014-10-20Fix display of flag requests for non-logged-in usersrelease_2014-10-20Dan McGee1-1/+1
More Jinja2 conversion fallout, whoops. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-19Remove usage of templates for RSS feedsDan McGee3-5/+6
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-19Use varied prime numbers for caching lengthsDan McGee5-20/+19
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-19Simplify last modified and etags processing for feedsDan McGee4-57/+12
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 McGee1-1/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-19Convert package files view to Jinja2release_2014-10-19Dan McGee2-2/+2
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 McGee1-3/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-19Fix function vs. property reference in Jinja templateDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Merge branch 'jinja'Dan McGee13-327/+326
2014-10-18Tweak search results page a bit moreDan McGee2-14/+18
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Fix colspan valuesDan McGee1-3/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18FS#30773: put exact matches at topDan McGee3-2/+44
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 McGee2-12/+5
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Change case of SUM() SQL functionDan McGee1-1/+1
2014-10-18Add possible optimization as a TODO for laterDan McGee1-0/+7
2014-10-18Move maintainer/packager link code back into templateDan McGee2-32/+8
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Break out Jinja2-specific template helpersDan McGee2-94/+99
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Convert bulk of package details page to Jinja2Dan McGee3-233/+239
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 McGee1-0/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Convert details sub-tempates to Jinja2Dan McGee7-18/+15
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 McGee3-2/+10
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-18Disable eggs template loaderDan McGee1-1/+0
2014-10-18Only show arches/repos that are necessaryDan McGee1-1/+2
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 McGee1-3/+3
* 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 McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-22Update to OrderedDict usage for Django 1.7Dan McGee1-7/+11
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-11Properly start the Django application in WSGI contextrelease_2014-09-11Dan McGee1-2/+2
Apparently things changed a while back, but no notice was given anywhere. https://code.djangoproject.com/ticket/23437 Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-11Remove now unnecessary empty models.py filesDan McGee3-1/+0
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-11Whoops, this shouldn't be commented outDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-11Merge branch 'django-1.7'Dan McGee176-22510/+821
2014-09-02Bump Django requirement to 1.7Dan McGee2-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01Fix up some IP address field issuesDan McGee3-8/+4
Ensure we always coerce values to unicode in our __unicode__ method, and remove some now unneeded verbosity and comments since the upstream bug has been fixed. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01More changes for move to Django 1.7Dan McGee3-5/+1
The removal of the root `__init__.py` file is so the testing framework does consistent imports of our models now that the loading strategy has changed. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01Update for admin changes for Django 1.7Dan McGee2-4/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01Add auto-generated migrations from new Django migrations frameworkDan McGee7-0/+831
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01Remove dependency on SouthDan McGee7-12/+0
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01Remove old south migrationsDan McGee161-22503/+0
Django 1.7 has built-in migrations support, so we no longer want these around. All existing installs should be fully migrated at this point to the latest schema. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01Update to a version of django-countries compatible with 1.7Dan McGee2-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01Silence warning with 1.7 by using new test runnerDan McGee1-0/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01Add details link to mirror status pagerelease_2014-09-01Dan McGee4-6/+17
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01Save some space, (secs) -> (s)Dan McGee3-5/+5
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01Add default value for boolean fieldDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01De-emphasize package files pagesDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01Requirements bumpingDan McGee2-7/+7
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01update URLs to Arch wikiJakub Klinkovský3-7/+7
Signed-off-by: Jakub Klinkovský <j.l.k@gmx.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2014-06-28Bump some requirementsrelease_2014-08-07Dan McGee2-4/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-06-10Use last element in args tuple as error messageDan McGee1-1/+1
When things blow up in low-level C code, the tuple is sometimes of length one, such as when it contains this error message: _ssl.c:495: The handshake operation timed out Just use the last element of the tuple, which works for all of the cases. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-05-31Convert ~~~ to date/username text when editing mirror notesDan McGee1-0/+8
Requested by Florian to make leaving notes on mirrors a bit easier. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-05-31Bump markdown requirement versionDan McGee2-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-05-18Bump some requirementsDan McGee2-5/+5
Signed-off-by: Dan McGee <dan@archlinux.org>