summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-06-21Update to the new messages frameworkDan McGee2-11/+18
This is also another step in making sure we don't unnecessarily access the Django session object and thus add a Vary cache control header we don't want. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-21Remove AutoUserMiddlewareDan McGee4-23/+14
This was having some serious effects on caching as we would always have to access the user in the session, marking every page with a "Vary: Cookie" header. This is the start of stamping that out. The way we get the user for news item creation is now more similar to that from the todo lists, but not quite. That should be adjusted to be more like the news item creation. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-21Fix template syntax errorDan McGee2-2/+2
Whoops, forgot the closing tag when I was playing with autoescape. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-21Move scripts to bottom of package searchDan McGee1-5/+6
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-21Fix missing calendar iconDan McGee1-1/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-17Update fixturesDan McGee2-12/+24
We have added some repos and some fields to these guys, so update them with what we have in production at the moment. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-17Super quick updates to READMEDan McGee1-2/+2
2010-06-17Fix autoescape in plain text emailsDan McGee2-7/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-12Remove action when submitting to same URLDan McGee8-8/+8
It looks like the `action="."` business was screwing up some browsers, notably lynx and links. We don't need it as the default is to submit to the same page anyway, so kill this gunk and see if it fixes a login CSRF issue. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-09Enhance base package listing in package detailsDan McGee2-3/+52
Add two methods to the package class, base_package() and split_packages(), that allow us to grab other related packages to one we are interested in. This allows us to list the Base Package on the package details page as a link. With the split_packages() method, we can also now list and link all sub-packages on the package details page; e.g. for 'kernel26' we can now link through to 'kernel26-firmware' and 'kernel26-headers'. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-08Add silhouette imageDan McGee1-0/+0
We don't serve this directly from here but we can at least put it in version control. It is the default image for devs if one isn't available elsewhere. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-08Update feeds to new 1.2 frameworkDan McGee2-19/+17
Feeds are now views-based and don't need the dictionary anymore. get_object() now takes named arguments as well making it a bit more understandable when reading the code. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-08Use Sites framework instead of hardcoded domain nameDan McGee4-4/+13
Instead of putting 'www.archlinux.org' all over the place, use the Django sites framework to pull the site name out of the database. Now these amazing things will work if you are running locally and decide to change the site! Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-05Updates for CSRF protection in Django 1.2.XDan McGee13-12/+13
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-02Fix some validation issuesDan McGee3-2/+2
We had a few issues with unescaped ampersands and extra or missing tags. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-02Rename todolist email templateDan McGee2-1/+1
More in line with our other templates that have .txt extensions. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-31Fix flagged styling in package search resultsDan McGee1-1/+1
We had 'style=' instead of 'class=' here, making the highlight disappear. Fix it and things will work again. Fixes FS#19652. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-30Make some small color changesDan McGee1-2/+2
After feedback from the recent redesign. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-26Add ability to download package from web interfaceDan McGee3-1/+20
After adding filename to the database, this is a rather simple request (see FS#19546). Right now the "randomly" chosen mirror happens to always be mirrors.kernel.org as it is the only one filed under the 'Any' country which is what we screen on. Perhaps this logic could be improved in the future but I don't see these links being all that high traffic anyway. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-26Have reporead populate filename columnDan McGee1-0/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-26Add filename column to package modelDan McGee2-0/+193
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-26Highlight 'Packages' in navbar when browsing packagesDan McGee10-11/+16
Get this working by doing some class business with CSS in order to highlight the correct tab. I had to add some stuff to a variety of pages but it should be working correctly now. Addresses FS#19591. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-26Move package flagging URLs below the packageDan McGee3-10/+14
We were still using the user-facing package IDs here which we have eliminated everywhere else Change it to use the same user-friendly URL pattern we are using elsewhere. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-26Fix missing version in checksums on download pageDan McGee1-1/+1
Forgot to move the 'endwith' tag a bit further down the page below the last version reference. Fixes FS#19584. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-25Make testing italics style workDan McGee1-1/+1
Package names are now spans and not links Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-25Fix some link title issuesDan McGee3-16/+9
We can't wrap inside the title attribute on links, so fix all the places where this was happening. The following command helped: $ grep -R --color 'title="[^"]*$' templates/ Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-25Merge branch 'redesign'Dan McGee87-1498/+4848
Conflicts: templates/public/download.html
2010-05-24reporead: use the DB package we already haveDan McGee1-5/+3
Rather than go to the database for every single package on something like a files update, use the one we already have. Duh. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-24Fix null field issues exposed by Django 1.1.2Dan McGee3-8/+206
Apparently Django 1.1.1 let null fields pass right through but this now causes reporead to blow up in 1.1.2. Fix the issue and get things working again by allowing nulls where it probably makes sense and including a migration to fix the issue, which for the real database will be a no-op. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-24Change link to new dev site locationDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-21Fix undefined variable issueDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-18Fix navbar linksDan McGee1-4/+4
They were still set up for the redesign development environment. Obviously we need a better way to do these, that will be coming down the road. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Styling touchups and temp style removalDan McGee1-41/+4
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Add universal archnavbar resourcesDan McGee4-1/+34
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Remove old media resourcesDan McGee4-335/+0
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Front page refinementsDan McGee1-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Redesigned DashboardThayer Williams1-99/+153
* descriptive semantics * proper django cell cycling * link titles throughout Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Redesigned flagged pageThayer Williams1-3/+10
* indentation * consistent semantics Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Redesigned todo list pagesThayer Williams4-103/+112
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Filelists: Touch up the HTML of file list viewsThayer Williams2-13/+14
Remove some unnecessary classes and touch up the direct and AJAX views. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Kill td_input template and tagDan McGee2-9/+0
2010-05-17Redesigned Package Search pageThayer Williams1-109/+126
* moved non-tabular data out of tables * added tbody for pretty printing * form accessibility * descriptive href titles throughout * code cleanup (removing unnecessary line breaks, styling, etc.) * renamed page to Package Database * add descriptive text to bottom of database pages Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Redesigned feeds page, added additional feeds from sub-sitesThayer Williams1-26/+98
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Cleaned up form controls, now using platform/browser defaultsThayer Williams1-4/+3
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17download: Remove USB install linkThomas Bächler1-4/+0
2010-05-17Redesigned Signoffs pageThayer Williams1-17/+26
* descriptive href titles * better semantics (page titles, etc) * added tbody for prettier printing * proper django cycling Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Updated form semantics for accessibilityThayer Williams1-17/+14
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Redesigned dev mirrorlist page, proper django cycling, semanticsThayer Williams1-29/+37
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Redesigned TU profiles, semantics, page titleThayer Williams1-5/+8
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Revamp download pageDan McGee1-104/+148
Signed-off-by: Dan McGee <dan@archlinux.org>