summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-03-23Use 'url from future' everywhereDan McGee
The old-style url template tag disappears in Django 1.5, so we can and should convert to the new-style tag now. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23Make all datetime objects fully timezone awareDan McGee
This is most of the transition to Django 1.4 `USE_TZ = True`. We need to ensure we don't mix aware and non-aware datetime objects when dealing with datetimes in the code. Add a utc_now() helper method that we can use most places, and ensure there is always a timezone attached when necessary. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23PEP8 cleanup with blank linesDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23Change Django urls.py importDan McGee
Until Django 1.3, the functions include(), patterns() and url() plus handler404, handler500 were located in a django.conf.urls.defaults module. In Django 1.4, they live in django.conf.urls. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23Django 1.4 admin and admin media changesDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23reporead: use Django 1.4 bulk_create() for package filesDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23reporead: use Django 1.4 select_for_update()Dan McGee
As per TODO comments in the existing code. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23Use python hashlib directlyDan McGee
Django hashcompat is now deprecated. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23Bump requirements to Django 1.4 and add new manage.pyDan McGee
The default manage.py script has been updated in Django 1.4, and the old version and functions it calls is deprecated. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23Add date_hierarchy for releng ISOs in adminDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23reporead: blow up when package found with wrong architectureDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-21Ensure clocks Expires header works in 59th minute of hourDan McGee
This was a rather careless oversight on my part. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-21Add number of keys signed to master keys pageDan McGee
This really just makes me look bad, but an interesting fact none the less for people to look at. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-16Use varying changefreq in news sitemapDan McGee
For those items less than one day old, mark change frequency as 'daily'; for those less than one week old, mark as 'weekly'. Finally, bump everything else up from 'never' to 'yearly' to ensure it gets crawled at least once in a while. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-16reporead: rename Pkg to RepoPackageDan McGee
The bytes saved on the shorter name aren't worth it. Also ensure 'desc' is always initialized to None in case packages do not provide one. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-12Show first 300 words of most recent news item on home pagerelease_2012-03-12Dan McGee
And 100 words of every other news item. We might as well make the most recent item more prominent. I'm not displaying it in full only so the front page doesn't look like a blog; 95% of our news items are under 300 words. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-09Ensure users only show up once on the Fellows pageDan McGee
If a user was in both Developer and TU groups, they would show up twice. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-08Break out search paginator into templateDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-08Encourage robots to not dive into search results pagesDan McGee
Add a meta tag for all search results pages past the first. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-08Show signature data on package details pageDan McGee
Now that we have a way to decode and process the signature data, we can match the key_id to a known developer if possible and show this data on the package page. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-08Allow more flexibility in pgp_key_linkDan McGee
Allow key_id to be a large integer value that gets converted to hex, and allow overriding of the default link text. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-08Only show package groups if they existDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-07Tabs to spaces conversionDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-07Exclude all compressed manpagesDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-03Add dimensions to most inline imagesDan McGee
This prevents resizing jumps when fetching resources. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-02Reduce template caching time on main pageDan McGee
We can afford to update this more often. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-02Update d3 to 2.8.1Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-28Remove the SOPA banner.Luke Shumaker
2012-02-28Change the requirements for markdown and python-memcached to be minimum versionsLuke Shumaker
2012-02-28Merge commit '1c23308' from archwebLuke Shumaker
Conflicts: public/views.py settings.py templates/public/download.html
2012-02-28Merge commit 'ffdaac4' from archweb: Add D3 geometry packageLuke Shumaker
2012-02-28Merge commit 'f3a3ce' from archwebLuke Shumaker
2012-02-28Merge commit '9c6fd0' from archweb: upgrade to d3-2.6.1Luke Shumaker
Conflicts: media/d3.layout.min.js media/d3.min.js This brought out a few bugs in the Makefile, fix them.
2012-02-28Merge commit '20e9a83' from ArchwebLuke Shumaker
Conflicts: main/fixtures/groups.json packages/templatetags/package_extras.py
2012-02-28Merge branch 'master' into phonyjsLuke Shumaker
Conflicts: media/Makefile
2012-02-28Merge commit 'cc202e923': Add copyright/authorship headers to ↵Luke Shumaker
Archweb-original .js files
2012-02-28(1) Use phony %.min.js files (2) copyright headers in d3.*.js (3) Makefile!Luke Shumaker
---- Due to our support of free software, we have two (uncommon) requirements for .min.js files: 1. They preserve the header comments; for license-identification 2. They can be created with free software; a free minifier, SaaS does not count. The only viable way to do this is to use django's compress.py, which requires the Google Closure Compiler, (or use the closure-compiler directly), which is not (yet) packaged for Parabola. So, for now just copy the *.js to *.min.js in order to avoid having to change URLs to temporarily point to the non-minified versions until we can properly minify them. ---- Add copyright headers to d3.js files, which by default ship without the copyright included in the file, despite being free software. ---- Create a Makefile that automatically does this. It fetches the d3 and jquery .js files, adds the copyright headers to the d3.*.js files, and then copies .js files to .min.js files.
2012-02-25Ensure long flag request text wraps on package details pageDan McGee
Fixes FS#28643; simply add the 'wrap' class to that table cell. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-23Remove actual link to PayPal from retro viewsDan McGee
The logo will still be there, but no need to have anyone click through to the actual donation box. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-23Remove template caching from package detailsrelease_2012-02-23Dan McGee
Now that we do user-specific stuff, this is more hassle than it is worth to ensure we keep the right bits around. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-22Merge branch 'retro'Dan McGee
2012-02-22import_signatures: code cleanup and ensure we update validity statusDan McGee
This adds a namedtuple so we aren't using magic numbers when processing our 'edges' (signatures). We also ensure we update any existing signature objects with their validity if they were later revoked. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-20Fix todolist sort by maintainerDan McGee
FS#28546. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-18Add retro views from 2003 through 2011Dan McGee
These follow the prior commit adding the framework and an initial 2002 retro view. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-18Add a retro site view and link it to a URLDan McGee
This is from our friends at web.archive.org, who's earliest capture of the Arch Linux website was on March 28, 2002. Seems like something nice to do around the 10th anniversary of the website being up and the distro being around, and not hotlinking their servers also seems like a good idea. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-18Factor out requiredby details into a templateDan McGee
This is similar to the previous commit doing the same for depends. We also add a '(staging)' text for use down the road. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-16Update sidebar linksrelease_2012-02-18Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-15Don't fail on missing descNicolás Reynolds
2012-02-14Require message when flagging package out of dateDan McGee
This is not a very high bar to meet, and should cut down on at least a few bogus or spam requests. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-13Don't select FTP by default in mirrorlistsDan McGee
More generally, add a new 'default' column to the mirror protocol model so we can determine what is selected and shown by default. Signed-off-by: Dan McGee <dan@archlinux.org>