summaryrefslogtreecommitdiff
path: root/public/views.py
AgeCommit message (Collapse)Author
2015-08-06Merge branch 'archweb-generic'Luke Shumaker
# Conflicts: # public/tests.py # templates/base.html
2015-04-16Merge branch 'archweb-generic'Luke Shumaker
2015-04-16Merge branch 'archweb-generic'Luke Shumaker
2015-04-15Merge branch 'archweb-generic'Luke Shumaker
2015-04-15Redirect several URLs at the router level.Luke Shumaker
2015-04-15Fix error in test where HTTP_HOST doesn't existDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2015-04-15Merge branch 'master-nomake'Luke Shumaker
2015-04-14Replace usage of parabolagnulinux.org with parabola.nu, alsoLuke Shumaker
replace repo.parabola.nu/isos/ with /iso/, in settings.py
2015-04-13Merge branch 'archweb-generic' into master-nomakeLuke Shumaker
# Conflicts: # public/views.py
2015-04-13Merge tag 'release_2014-10-20' into archweb-genericLuke Shumaker
A few Jinja2 fixes and some perf changes
2015-04-13Add JSON-LD search engine configurationDan McGee
Implemented as documented here: http://googlewebmastercentral.blogspot.com/2014/09/improved-sitelinks-search-box.html Signed-off-by: Dan McGee <dan@archlinux.org>
2014-12-17Fix thinko in leaving old code behind in keys_jsonDan McGee
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-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-10-19Use varied prime numbers for caching lengthsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-10-05Fix public tests and download URL.Michał Masłowski
2013-12-22Merge branch 'archweb-generic' into master-nomakeLuke Shumaker
Conflicts: README.md
2013-12-22Merge tag 'release_2013-12-19' into archweb-genericLuke Shumaker
Mirror URL page, other random stuff
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-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-28Merge tag 'release_2013-10-27' into archweb-genericLuke Shumaker
Dependency updates and fix for key revokes
2013-09-30Proper support for revoked signaturesDan McGee
The 'valid' column wasn't quite right. Add a new 'revoked' column that works similar to the one we have on keys and use it instead, properly parsing the output from `gpg` signature data and looking for the magic prefix string. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-07-18fix the download page redirect for new djangoLuke Shumaker
2013-07-14Merge branch 'archweb-generic2'Luke Shumaker
Conflicts: Makefile templates/public/index.html
2013-07-14Merge branch 'archweb' into archweb-generic2Luke Shumaker
2013-06-01Ensure only active mirror URLs are listedDan McGee
This fixes things up on the download page as well as the individual mirror details page. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-04-23tweakLuke Shumaker
2013-04-22Merge branch 'archweb-generic2'Luke Shumaker
Conflicts: README.BRANDING local_settings.py.example packages/templatetags/package_extras.py public/views.py releng/views.py settings.py sitestatic/archnavbar/archnavbar.css sitestatic/silhouette.png templates/base.html templates/packages/differences.html templates/packages/opensearch.xml templates/packages/search.html templates/public/donate.html templates/public/download.html templates/public/feeds.html templates/public/index.html urls.py
2013-04-21remove dead code from public/views.pyLuke Shumaker
2013-04-21Merge commit '91c451'Luke Shumaker
Conflicts: devel/views.py feeds.py local_settings.py.example packages/management/commands/signoff_report.py packages/views/flag.py public/views.py templates/404.html templates/base.html templates/devel/clock.html templates/devel/index.html templates/devel/packages.html templates/devel/profile.html templates/general_form.html templates/mirrors/mirror_details.html templates/mirrors/mirrorlist.txt templates/mirrors/mirrorlist_generate.html templates/mirrors/mirrorlist_status.txt templates/mirrors/mirrors.html templates/mirrors/status.html templates/news/add.html templates/news/delete.html templates/news/list.html templates/news/view.html templates/packages/details.html templates/packages/differences.html templates/packages/files.html templates/packages/flag.html templates/packages/flag_confirmed.html templates/packages/flagged.html templates/packages/flaghelp.html templates/packages/groups.html templates/packages/opensearch.xml templates/packages/packages_list.html templates/packages/search.html templates/packages/signoff_options.html templates/packages/signoffs.html templates/packages/stale_relations.html templates/public/about.html templates/public/art.html templates/public/blank.html templates/public/donate.html templates/public/download.html templates/public/feeds.html templates/public/index.html templates/public/keys.html templates/public/svn.html templates/public/userlist.html templates/registration/login.html templates/registration/logout.html templates/releng/add.html templates/releng/results.html templates/releng/thanks.html templates/todolists/list.html templates/todolists/public_list.html templates/todolists/todolist_confirm_delete.html templates/todolists/view.html templates/visualize/index.html todolists/views.py
2013-04-21Merge branch 'archweb' into archweb-generic2Luke Shumaker
2013-04-21Merge branch 'archweb' into archweb-generic2Luke Shumaker
Conflicts: devel/views.py feeds.py public/views.py settings.py sitestatic/archweb.js templates/base.html templates/devel/profile.html templates/mirrors/status.html templates/news/view.html templates/packages/flaghelp.html templates/packages/opensearch.xml templates/public/download.html templates/public/feeds.html templates/public/index.html templates/registration/login.html templates/releng/results.html templates/todolists/public_list.html
2013-04-16Various minor code cleanups and fixesrelease_2013-04-16Dan McGee
Most of these were suggested by PyCharm, and include everything from little syntax issues and other bad smells to dead or bad code. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-03-27Pull references to Arch Linux in code into BRANDING_ variables in settingsLuke Shumaker
This does not include templates
2013-01-19Don't redefine mirror_url function every callDan McGee
If we pull this out and define it at the top level once, we save the interpreter a fair amount of work. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-18Don't pull and sort mirror URLs unless we have toDan McGee
On the download page, the explicit sorted() call was forcing evaluation of the Django queryset, even if we never actually needed the results because the template fragment was cached. Wrap it all in a callable function which looks the same to the template, but saves us the cost of evaluation every single page view. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-14Drop country column from mirror tableDan McGee
We now always look for this information at the URL level, not the mirror level. This simplifies quite a bit of code in and around the mirror views. Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-13Use content_type and not mimetype on HttpResponse()Dan McGee
Bug #16519 in Django deprecates mimetype, so update our code accordingly. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-12-27Fix master key signing total countsDan McGee
Commit 4c69911982 had an inadvertent side effect here; we need to explicitly disable ordering for the annotate() to work correctly. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-12-12Merge tag 'release_2012-04-26'parabolaweb-2012-12-12Luke Shumaker
CSS and display related tweaks Conflicts: public/views.py requirements.txt requirements_prod.txt templates/public/download.html
2012-12-12Merge tag 'release_2012-04-02'Luke Shumaker
Signing page changes, other tweaks Conflicts: README local_settings.py.example requirements_prod.txt urls.py
2012-12-12Merge commit 'ea87160' (update)Luke Shumaker
2012-12-12Merge tag 'release_2012-03-12'Luke Shumaker
Signature stuff and template tweaks Conflicts: templates/public/index.html
2012-11-20Add Release model to relengDan McGee
This should prevent the need for monthly template updates from Pierre and Thomas; best to just let them enter the data themselves and have it show up on the website. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-16Use Python 2.7 dictionary comprehension syntaxDan McGee
Rather than the old idiom of dict((k, v) for <> in <>). Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-14Merge tag 'release_2012-01-11'Luke Shumaker
Pkgbase view in todos, other changes related to caching Conflicts: public/views.py
2012-11-13Move JSON keys view to public/ appDan McGee
This seems like a more appropriate place, and now the visualization is done here anyway so we should move the data backing it. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-09-25Only show staging feeds to logged-in usersDan McGee
This doesn't prevent unauthenticated users from accessing the feeds, but it should reduce clutter and confusion on the feeds index page for users unlikely to need these feeds. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-09-25Add structured data to developer listing pagesDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-31PGP key handling updatesDan McGee
* 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>