summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-02-08Move /jsi18n/ back out of /admin/ apprelease_2010-02-08Dan McGee2-1/+4
This way we can skip the redirect to HTTPS on the real site that is not necessary by any means, and it works out for the best. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-08Add OpenSearch support to the siteDan McGee4-1/+28
Implements FS#14185. It is a bit more complex than listed there as I wanted to not hardcode the URLs in the descriptor file; to do this we need to make it a template and fill some things in. We also need to serve the file using the correct mime type. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-08Make the feeds overview page suck lessDan McGee2-11/+35
There was way too much going on there before and it wasn't laid out that well. This should be a ton better. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-08Make sure we use orm in migrationsDan McGee1-2/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-05Make the maintainer migration less stupidrelease_2010-02-07Evangelos Foutras1-8/+4
Why issue lots of UPDATE queries when you can only issue one? My fail. Signed-off-by: Evangelos Foutras <foutrelis@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-05Make recent updates group multiple architecturesDan McGee4-4/+31
It isn't the most elegant operation in the world, but attempt to only show one line per package, grouping by architecture if multiple were updated in the same go. This makes the recent packages view a bit more useful as a heads up view. Implements FS#17304. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-04feeds: add per arch, per repo feed abilityDan McGee5-10/+88
Make the feed framework a lot more flexible and give the possibility to have a feed for each architecture. You can drill down even more than also get a feed for a particular repo; some might find this helpful for something like tracking [testing]. Implements FS#12939. I also bumped up the number of items available in each of these feeds; since it is full of a bunch of small items it might be more helpful to have more available and it should also prevent fewer ones from being missed. The UI isn't exactly spectacular, but I figured some sort of page is better than none listing all the various feeds you can pull from. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-02Make sitemap generation suck a lot lessDan McGee1-0/+1
Add a select_related() clause that was really needed. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-01Remove calendar stylesDan McGee1-27/+0
We include widgets.css, so no need to do these here too. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Spruce up the developer view pagesDan McGee6-36/+26
Quite a few changes here. Unify the developer view pages into one actual django view and template, and use different dispatches from urls.py to set up the three different queries for who to display and what message and group name to show. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Arch art: add alt text to imagesDan McGee1-16/+16
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31More profile page cleanupDan McGee1-14/+14
* Use {% with %} to make getting things out of the profile easier * Remove HTML exemption as it was causing unescaped entities to get through to the page * Link URLs instead of just printing them to the page Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Dev list: use username as link anchorDan McGee1-2/+2
Guaranteed unique, and also a whole lot less likely to break validation given we have several users with special characters (and even spaces) in their first names. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Get the calendar widget workingDan McGee2-3/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Clean up media declarationsDan McGee1-3/+3
And make sure each of them have a type. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Remove checked-in admin_media directoryDan McGee70-2333/+0
This is a bad idea because it will get outdated quickly when django changes and we should just use the version it distributes anyway. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Fix reporead choking on empty valuesDan McGee1-6/+9
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31More template cleanup: flag packagerelease_2010-01-31-2Dan McGee1-23/+20
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Make marking out of date actually workDan McGee2-22/+25
And honor the packager's notify flag, as Pierre pointed out. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Provide SVN links to trunk/ for each packageDan McGee2-4/+12
This is, at least for me, more useful than the link to a specific build of a package. We provide both so no one should lose here. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31More validation fixupsDan McGee5-30/+41
Random stupids in our HTML, this should be a little better at least. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Touch up the depends and requiredby display in package detailsDan McGee1-4/+12
This started out as a validation fix for the W3 validator: we had some <ul/> elements that ended up on that page with no inner <li/> elements, so it was invalid markup. I then realized we don't need to call the methods multiple times so use the 'with' template tag. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Make looking up a package with many required by entries fasterDan McGee1-1/+1
We were doing a 2 queries for each 'Required By' entry- arch and repo as usual. Add it to the original query so we don't waste time. Noticed while looking at the glibc description page. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Fix up doctype header as recommended by w3 validatorDan McGee1-1/+2
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Handle empty pkgdesc and url a bit betterDan McGee3-4/+215
Put an actual NULL in the database and handle it for both display and import. Also add a migration to clean up any bad data we currently have in there. Fixes FS#17144. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Make bugs link more usefulDan McGee2-1/+10
Link directly to the right project in Flyspray instead of whatever the user looked at last. Fixes FS#13166. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Make the feed titles more descriptiveDan McGee1-5/+4
FS#16752. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Kill a no longer necessary hack in the adminDan McGee2-15/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Use select_related() to make a few more places more performantDan McGee5-13/+24
Especially when looking at packages, we always want the arch and repo. Another big hunk of changes deals with the very inefficient signoffs code. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Add a pkgname indexDan McGee2-2/+210
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Reintroduce optimized code for Todo listingsEvangelos Foutras1-4/+4
Now that maintainer is nullable, Django will use a LEFT OUTER JOIN with this code, so orphan packages won't be omitted. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Adjust models and views for nullable maintainerEvangelos Foutras5-17/+12
Signed-off-by: Evangelos Foutras <foutrelis@gmail.com> [Dan: made a few other small touchups] Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Add migrations for nullable Package.maintainerEvangelos Foutras2-0/+398
Signed-off-by: Evangelos Foutras <foutrelis@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Add initial South migration for 'main' appDan McGee3-0/+441
Thanks to Evangelos Foutras for the inspiration. Recreated from scratch only to make sure everything is in sync. From this point on, you will need to have the 'south' Django/Python package installed to use archweb. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Make all app name inclusions relativeDan McGee1-9/+9
No need to slap 'archweb' in all of these in the settings file. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Update cache settings in local_settings exampleDan McGee1-0/+5
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Fix up the packages search pagerelease_2010-01-31Dan McGee2-11/+17
* Don't show checkboxes for non-authenticated users * Fix up the adopt buttons to not be a table row * Fix the form which didn't have a closing tag Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Don't exclude testing packages from recently updatedDan McGee1-2/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-30Update beginners' guide namingDan McGee1-1/+1
FS#17287. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-30Fix todolist bug with select_related()Dan McGee1-1/+4
Hey, what do you know? Using a relational DB in a non-relational way can come back to bite you. Go foreign keys! Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-30Exclude repos ending with "Testing" from ToDosEvangelos Foutras1-1/+2
This should fix the issue with Community-Testing packages appearing in ToDo lists. After this change has been applied, simply edit and save a ToDo list to make its Community-Testing packages go away. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-30Package search: sort maintainer list by usernameDan McGee1-1/+1
Makes it easier to find a user since we have quite a few. FS#18055. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-30Make the copyright year always be rightDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-30Update download page to match the kernel on the current ISO imagePierre Schmitz1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-30Modify dev menu to also be top to bottomDan McGee2-8/+7
Just as commit 5faf6566 did for the main menu items, do the same for the dev menu. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-30Modify menu items order to be from top to bottomIsmael Carnales2-7/+6
The menu was rendered bottom to top in the html because the elements were floated to the right. This caused text browsers visitors (no CSS rendering) to see the menu backwards. I've modified the menu order and made the items float to the left so the menu is correctly rendered in text browsers. Signed-off-by: Ismael Carnales <icarnales@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-30Upgrade jQuery to 1.4.1Dan McGee3-20/+153
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-30Run optipng on all images/logosDan McGee5-0/+0
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-30Use select_related() for some mirror pagesDan McGee2-2/+2
We also traverse relationships here, so select the associated items. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-30Drastically reduce loading time of Todo listsEvangelos Foutras1-1/+1
Use Django's select_related() on the TodolistPkg QuerySet to avoid making 4 database queries per package. This way we're making just one query, regardless of the number of packages in the Todo list. Local testing with 1000 entries in a Todo list show that the loading time has been reduced from 2675 ms to around 560 ms, while the number of queries has been cut down from 8005, to only 5. Signed-off-by: Dan McGee <dan@archlinux.org>