summaryrefslogtreecommitdiffstats
path: root/packages
AgeCommit message (Collapse)AuthorFilesLines
2010-02-27Ensure our cache is correct with AJAX requestsDan McGee1-0/+2
Since the same URLs serve two different responses based on the request being AJAX or not, we want to ensure we don't cache the wrong one and serve it up incorrectly. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Make files view AJAX if supportedDan McGee1-1/+4
This will put the filelist inline on the package details page if using a capable browser. It should still fallback to a separate page if necessary (e.g. all those users using links on the site). Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Order the package files when viewingDan McGee1-1/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Bring package files view up to speedDan McGee1-4/+5
Move it away from the numeric pkgid-based view of old to the new pretty URL format. This does nothing to actually make the view show files (or even provide a link to it), but that will come in future commits. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-18Clean up urlencode usage even moreDan McGee1-3/+1
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-17More save() -> update() cleanupDan McGee1-3/+1
Use update() instead of for x in y: save(). Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-17Clean up adopt/disown logicDan McGee1-9/+4
We can pull the common queryset out into a local variable, as well as using the mass-update function provided on a queryset instead of resorting to iteration. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-17Use unicode-safe urlencode in package searchDan McGee1-9/+4
Django already provides an implementation of urlencode that is Unicode-safe. Use it instead of our own version. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-17Make packages view much more efficientDan McGee1-2/+3
The len() call was killing performance, especially in the default click-thru case where we show the packages list without any filtering (only sorting). Also use a well-placed select_related() to further drop the query count. As noted by the TODO, there is still more that can be done here to improve performance. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-10Remove archweb prefix from all importsDan McGee1-3/+3
Unnecessary, and lets us standardize on not using it everywhere. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-09Add OpenSearch support to the siteDan McGee1-1/+13
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-01Make marking out of date actually workDan McGee1-17/+22
And honor the packager's notify flag, as Pierre pointed out. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Use select_related() to make a few more places more performantDan McGee1-5/+10
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-31Adjust models and views for nullable maintainerEvangelos Foutras1-8/+8
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-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>
2009-11-10added permission required to protected packages viewsIsmael Carnales1-0/+6
2009-11-10added missing packages views code from archweb_pubIsmael Carnales1-2/+14
2009-11-10added missing packages views from archweb_pubIsmael Carnales1-0/+65
2009-11-10modified import paths from archweb_dev to archwebIsmael Carnales1-3/+3
2009-10-17Port archweb_pub commit 1f96c7a1182ef75279c18986b708e683f89dd690 to ↵Thomas Bächler1-2/+1
archweb_dev. This is the original commit message by Dan: "Make package SVN links always work This should clean up the links for all varieties of things- different arches (including any), different repos (community and community-testing), and split packages. All of the logic is in one place now and any further changes should be made to the method on the package object."
2009-09-12Fix community links.Dusty Phillips1-1/+2
2009-07-24Repo-based permissions when adopting packages.Dusty Phillips1-3/+14
2009-05-05Fix a bug when someone accesses the update page without POSTINg adopt or ↵Dusty Phillips1-6/+10
disown. Probably occurred by a press of the back button.
2009-04-14FS#11325. Add a 'Target Repo' column to the signoffs page.Dusty Phillips1-1/+10
2008-10-12drop a couple completed to-dos and blank linesDusty Phillips1-2/+0
2008-10-12refactor duplicate signoff codeDusty Phillips1-8/+4
2008-10-12drop some unused templatetagsDusty Phillips1-18/+5
2008-10-11use RequestContext because its standardDusty Phillips1-4/+3
2008-10-10simplify package details viewDusty Phillips1-21/+16
2008-10-08drop id based searchingDusty Phillips1-1/+1
2008-10-07use user messages to communicate statusDusty Phillips1-8/+8
2008-10-07sort returns to first pageDusty Phillips1-1/+2
2008-10-07reorder ifsDusty Phillips1-92/+4
2008-10-07fix sorting issueDusty Phillips1-3/+6
2008-10-07trying to flesh out the pageDusty Phillips2-5/+25
2008-10-07fix the last update scriptDusty Phillips1-4/+4
2008-10-07make sort form workDusty Phillips1-4/+10
2008-10-07make form submit some but not all valuesDusty Phillips1-14/+47
2008-10-07need better than ids for optionsDusty Phillips1-37/+20
2008-10-07replace package search with a nonfunctional newformDusty Phillips2-2/+68
2008-10-07move validation template tage temporarily; it will be removed eventuallyDusty Phillips1-0/+9
2008-10-06drop a bunch of unusued importsDusty Phillips1-5/+2
2008-10-06drop some unused importsDusty Phillips1-2/+1
2008-08-16#10340 Integrated Signoffs completed but untestedDusty Phillips1-3/+25
2008-08-06improve the templateDusty Phillips1-1/+1
2008-08-06boilerplate for new signoffs codeDusty Phillips1-0/+6
2008-07-30allow anyone to adopt or disown a packageDusty Phillips1-9/+3
2008-07-06 #10213 make package urls be pretty cool, if not awesomeDusty Phillips1-6/+12
2008-06-30drop an unnecessary db hitDusty Phillips1-3/+4
2008-06-30add maintainer column to search resultsDusty Phillips1-0/+3