summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-04-02Make hidden 'name' search field match exactlyDan McGee
This is much more useful than the old contains match if you are trying to narrow down your search to a specific package. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-02Skip default ordering in sitemaps outputDan McGee
The output is not required to be ordered by the specification, so save some effort by skipping any sorting. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-04-02Fix missing = sign in requirements_prodrelease_2012-04-02Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-29Use spaceless tag on package search resultsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-29Use spaceless tag on signoffs pageDan McGee
More whitespace collapsing to shrink the HTML size quite a bit. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-29Add developer status table to master keys pageDan McGee
This shows the cross-product of each master key with each developer key so you can see who has been signed, where signatures are missing, etc. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-29Use spaceless tag in mirror status outputDan McGee
This removes a lot of needless whitespace in the generated output, shrinking the uncompressed page size by 30KB to 54KB total on my current set of mirror test data. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-29Return files in default orderDan McGee
When we read the repository databases, we get a filelist in sorted order. Save time by returning the file list in that order rather than resorting it based on filename and directory. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-29Fix bad merge in releng section templateDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-28Switch to recommending PostgreSQL by defaultDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-26Remove media/ staticfiles URL locationDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-26Rename 'packagedepend_set' attribute to 'depends'Dan McGee
We do this for every other related package attribute, so do it here too. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-26Add more info to package JSON dumpDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-26Bump signoffs and mirror status JSON API versionsDan McGee
Due to datetime formatting changes in Django 1.4, we know follow the ECMA specification more closely and use 'yyyy-mm-ddThh:mm_ssZ' format. As this could break existing users of the JSON data, bump the version. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-24Use bulk_create() when inserting mirror log entriesrelease_2012-03-25Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-24Revert "Add some dev dashboard info regarding signed package count"Dan McGee
This reverts commit 797185faed0555efb88a1e6a18e447548a9935fd. Now that all packages in the Arch repos are signed, this column isn't very useful as it just reflects the total package count. Conflicts: packages/views.py -> packages/views/search.py Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-24Use staticfiles_storage in jQuery tagDan McGee
To get the local URL to the jQuery JS file. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-24Convert retro pages to use {% retro_static %} template tagDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-24Add retro_static template tagDan McGee
Unfortunately {% static %} cannot interpret any context variables passed into it, so we need to customize things in order to use it here since our resources are sorted by year. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-24Convert STATIC_URL usage to {% static %} template tagDan McGee
This is a lot more flexible and will allow more than just simple prefixing of the static file resources. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-24Remove cdnprefix template tagDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-24Convert art template to use Django static filesDan McGee
Done with: sed -i \ -e 's@{% cdnprefix %}/media/\([^"]*\)"@{% static "\1" %}"@g' \ templates/public/art.html Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-24Begin removal of cdnprefix tagDan McGee
This starts the removal of this code I wrote a while ago in favor of the now core Django static files application and the helpful static template tag. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-24Remove some unneeded whitespace and comments from base tempateDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-24Add favicon retro resources and correctly link themDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23Change default SVN URLDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23Fix svg rendering window heightDan McGee
For reference, FF changed behavior: https://bugzilla.mozilla.org/show_bug.cgi?id=738862 Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23Differentiate between Unsigned and unknown signerDan McGee
This can happen when we add a new developer but the key isn't in the system yet. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23reporead: use bulk_create() for more propertiesDan McGee
Depends, conflicts, provides, etc. can all be done via bulk_create. Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23Merge branch 'django14'Dan McGee
Conflicts: templates/releng/result_section.html
2012-03-23releng: ensure links are valid for option names with spacesDan McGee
Can't believe this went unnoticed for so long. Signed-off-by: Dan McGee <dan@archlinux.org>
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>