summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2010-02-01Remove 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-02-01Fix reporead choking on empty valuesDan McGee1-6/+9
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-01More template cleanup: flag packageDan McGee1-23/+20
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-01Make 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-02-01Provide 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-02-01More 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 pageDan 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>
2010-01-30Add Costa Rica IRC channelAaron Griffin1-0/+3
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
2009-12-02Add credential requirements tests to devel appIsmael Carnales3-4/+41
* Add models.py required file to app * Use user_passes_test instead of custom superuser checking in new_user_form as it implements the same "next" redirection as login_required Signed-off-by: Ismael Carnales <icarnales@gmail.com>
2009-12-02Add basic tests to public appIsmael Carnales2-0/+49
The addition of a models.py file in public app is needed for django to recognize it as an application for testing. Signed-off-by: Ismael Carnales <icarnales@gmail.com>
2009-11-17added #archlinux-gaelic channel, sorted listAndrea Scarpino1-19/+22
2009-11-15Remove default debug setting in main settingsIsmael Carnales1-3/+0
Signed-off-by: Ismael Carnales <icarnales@gmail.com>
2009-11-13added dummy cache setting to local_settingsIsmael Carnales1-0/+4
2009-11-10added login_required to protect todolists viewsIsmael Carnales1-1/+4
2009-11-10added permission required to protected packages viewsIsmael Carnales1-0/+6
2009-11-10Fix highlighting on main site tabsDan McGee2-8/+7
We should always highlight 'Home' when on the Django site. The sole exception is the download page which has its own special place. Signed-off-by: Dan McGee <dan@archlinux.org>
2009-11-10added USE_ETAGS setting from archweb_pubIsmael Carnales1-0/+2
2009-11-10added chache middlewares and anonymous only cache settingIsmael Carnales1-0/+4
2009-11-10updated packages template files from code of pubIsmael Carnales2-14/+17
2009-11-10update packages detail template with code from pubIsmael Carnales1-13/+20
also added user restrictions
2009-11-10added missing packages views code from archweb_pubIsmael Carnales1-2/+14
2009-11-10added missing packages views from archweb_pubIsmael Carnales6-0/+144