summaryrefslogtreecommitdiff
path: root/templates
AgeCommit message (Collapse)Author
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-18Move maintainer/packager link code back into templateDan 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-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-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-10-02Merge branch 'archweb' into archweb-genericLuke Shumaker
Conflicts: templates/public/download.html templates/public/index.html
2014-09-30Update AUR feed URLDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01Update for admin changes for Django 1.7Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01Add details link to mirror status pageDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01Save some space, (secs) -> (s)Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-01update URLs to Arch wikiJakub Klinkovský
Signed-off-by: Jakub Klinkovský <j.l.k@gmx.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2014-05-25Merge tag 'release_2014-03-22' into archweb-genericLuke Shumaker
Fix long filenames; local storage for filter prefs Conflicts: templates/public/download.html
2014-03-29Add last_modified column to mirrorsDan McGee
This will make it easier in the future to clear out inactive mirrors that haven't been touched in a while. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-03-09Use localStorage to save/restore developer report filtersDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-03-09Use localStorage to save/restore todolist filtersDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-03-09Use localStorage to save/restore signoffs filtersDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-02-22Generate list of reports dynamicallyDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-02-22Change long out-of-date report to 30 daysDan McGee
At the request of barthalion. This bumps the report from currently showing 36 packages to 109 packages. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-02-16Ensure correct value gets submitted on package search typeaheadDan McGee
Populate the form field with the chosen item before submitting the form. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-01-27Cleanups and enhancments to JS package search typeaheadDan McGee
Remove the need to press enter twice when using this typeahead box. Submit the form on enter, regardless of whether an item is selected or not. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-01-26Revert "Change old packages report from two years to one year"Dan McGee
This reverts commit 8d3a1a1c504a70dd23d36c3ed5be0ebcd2f7a86d. Turns out we aren't updating packages quite as often anymore. There are currently 1900+ packages in the repos built more than one year ago. Signed-off-by: Dan McGee <dan@archlinux.org> Conflicts: devel/views.py
2014-01-25Add 'Latest Update' column to stale package relationsDan McGee
This helps when doing the irregular cleanup of these things and making sure a relation has been stale for some time and not just a couple minutes or hours. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-01-21Flag out-of-date message is no longer optionalDan McGee
Changed way back in commit ef9d1c1e, but I didn't update the actual text at the same time. FS#38126. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-01-09Remove release fields we can pull from the torrentDan McGee
This makes entering new releases a bit less cumbersome as we don't really need to enter either the file size or the torrent infohash. Signed-off-by: Dan McGee <dan@archlinux.org>
2014-01-09Remove remaining references to release file_size fieldDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-01-02fix the bug_link template tagLuke Shumaker
2013-12-23A few more tweaks to the URL details templateDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2013-12-22Merge tag 'release_2013-12-19' into archweb-genericLuke Shumaker
Mirror URL page, other random stuff
2013-12-22Merge tag 'release_2013-12-14' into archweb-genericLuke Shumaker
Mostly changes related to mirror handling
2013-12-22Pull the bug link generation into a templatetagLuke Shumaker
2013-12-22Merge commit '97ca3f7' into archweb-generic (bugtracker/mirror integration)Luke Shumaker
2013-12-22Merge commit 'ecece25' into archweb-genericLuke Shumaker
2013-12-22Merge tag 'release_2013-11-30' into archweb-genericLuke Shumaker
End of month release, perf fixes
2013-12-18Allow mirror notes to wraprelease_2013-12-19Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2013-12-15Add mirror URL details pageDan McGee
This will allow those that care about mirrors to zoom into URL-level details for each mirror and examine the individual check results. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-12-15Admin template updates for Django 1.6Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2013-12-14Fix some caching issues on the front pageDan McGee
The return value from get_recent_updates() was too big for memcached due to all the attached objects, so the cache never actually worked. This sucks, because we ended up doing all the work in this function and most of the time we didn't use it because template fragment caching kicked in. Remove the cache_function decorator from this method, and instead implement delayed calling of the function so we don't compute values we aren't going to use. Template fragment caching will help us in most cases. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-12-14Don't list downstream mirrors one per linerelease_2013-12-14Dan McGee
This looks really crazy on our current Tier 1 mirrors, as some of them have tons of downstream mirrors. Instead, do what we did on the package details page and allow wrapping of the comma-separated list. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-12-14Add Flyspray Issue to mirror details templateDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2013-12-14Speed up master key listing pageDan McGee
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-12-14Fix double space in templateDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2013-11-28Merge tag 'release_2013-11-25' into archweb-genericLuke Shumaker
Django 1.6 upgrade and other changes Conflicts: templates/news/list.html templates/public/index.html
2013-11-27Stop using Django-provided floatformat template tagrelease_2013-11-30Dan McGee
It turns out this is a HUGE part of our slow mirror status template rendering, due to the internal workings. Everything is converted to a Python decimal object which is way slower than just staying in native floating point. Given we are always dealing with floats when we need to do our formatting, a home-rolled template tag can accomplish this much faster. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-11-27Allow pkg_details_link to honor package flag stateDan McGee
This allows the tag to be used in a few more places we weren't already able to use it, and hopefully speeds up rendering a tad on the package differences page. Signed-off-by: Dan McGee <dan@archlinux.org>