summaryrefslogtreecommitdiff
path: root/templates/packages
AgeCommit message (Collapse)Author
2010-07-02Add some text when no packages could be foundDan McGee
This text also includes a link to search the AUR for the same keywords. This implements FS#19904. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-20Fix template syntax errorrelease_2010-06-20Dan McGee
Whoops, forgot the closing tag when I was playing with autoescape. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-20Move scripts to bottom of package searchDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-20Fix missing calendar iconDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-16Fix autoescape in plain text emailsDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-11Remove action when submitting to same URLDan McGee
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 detailsrelease_2010-06-10Dan McGee
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-05Updates for CSRF protection in Django 1.2.XDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-02Fix some validation issuesrelease_2010-06-02Dan McGee
We had a few issues with unescaped ampersands and extra or missing tags. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-31Fix flagged styling in package search resultsDan McGee
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-26Add ability to download package from web interfaceDan McGee
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-26Highlight 'Packages' in navbar when browsing packagesrelease_2010-05-26Dan McGee
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 McGee
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-25Fix some link title issuesDan McGee
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-17Redesigned flagged pageThayer Williams
* indentation * consistent semantics Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Filelists: Touch up the HTML of file list viewsThayer Williams
Remove some unnecessary classes and touch up the direct and AJAX views. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Redesigned Package Search pageThayer Williams
* 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 Signoffs pageThayer Williams
* 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-17Redesigned flaghelp pageThayer Williams
* better semantics * consistent appearance with archweb theme * descriptive href titles Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Redesigned flag pageThayer Williams
* form accessibility * descriptive href titles * better semantics Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17Redesigned Package Details pageThayer Williams
* better semantics * removed unnecessary CSS * form accessibility * dynamic/descriptive href titles throughout Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-04Fix invalid template syntaxDan McGee
Django 1.1 doesn't support arbitrary logic in if statements, but we can use ifnotequal instead. Fixes breakage from commit 58566e. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-04-29Package details view: Show the pkgbase if it differs from pkgnameThomas Bächler
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-04-02Fix filelists AJAX replacementDan McGee
We were double nesting the filelist div. Have the AJAX call only return the contents and not the enclosing div. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-27Move package maintainer off of package modelDan McGee
This is an attempt to fix our long-standing problems dealing with maintainer information. Move the actual maintainer information off of the package model into a PackageRelation object, which has some flexibility to later represent more than just maintainership. This solves multiple problems: * If a package gets accidentally deleted, so did the maintainer info * Testing packages have always shown up as orphans * With split packages, it was easy to miss some of the sub-packages This commit does not include the deletion of the original maintainer column; that will come at a later time when I feel more confident that the data was migrated correctly. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-11Add link from files back to packageDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-06Use repo.testing flag instead of test-based checksDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-03Make files view use jquery CDN template tagDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-01Add '(testing)' suffix to dependencies listrelease_2010-03-02Dan McGee
Just like it already was in the required by list. This should address FS#10475. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-01Fix up HTML titles on a lot of pagesDan McGee
We didn't include them on many pages, or the ones we did weren't always useful. Also try to keep the boilerplate to a minimum so you can see the important bits in the title. 'Arch Linux - ' comes first in all titles, and from there it can be filled in with something useful. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-01Fix busted HTML on flag package pageDan McGee
Missing a closing div and no real need for the br tag. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Show message if no files availableDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27files: template reuseDan McGee
Get rid of the copy/paste by including the sub-template. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Make files view AJAX if supportedDan McGee
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-27Re-add link to package filesDan McGee
Put the link that has been commented back on the page, and point it at the new URL for package files. Also fix the page title to be more in line with all the other pages on the site. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-27Make the package files view look betterDan McGee
Make it look more like the dependencies and required-by panes on the main package details page. Some day you might even find it shows up below there too via an AJAX call or something. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-26Make template changes to show additional informationDan McGee
Make package size, installed size, and build date available in the UI. Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-08Move /jsi18n/ back out of /admin/ apprelease_2010-02-08Dan McGee
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 McGee
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-01-31Get the calendar widget workingDan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31More template cleanup: flag packagerelease_2010-01-31-2Dan McGee
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31Provide SVN links to trunk/ for each packageDan McGee
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 McGee
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 McGee
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-31Handle empty pkgdesc and url a bit betterDan McGee
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 McGee
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-31Fix up the packages search pagerelease_2010-01-31Dan McGee
* 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>
2009-11-09updated packages template files from code of pubIsmael Carnales
2009-11-09update packages detail template with code from pubIsmael Carnales
also added user restrictions
2009-11-09added missing packages views from archweb_pubIsmael Carnales