Commit Graph

712 Commits

Author SHA1 Message Date
Dan McGee
b3059dd3e8 Remove action when submitting to same URL
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-11 17:29:46 -05:00
Dan McGee
408288719e Enhance base package listing in package details
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-09 16:16:45 -05:00
Dan McGee
d199ac33b2 Add silhouette image
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-08 10:54:27 -05:00
Dan McGee
89cae2bcb5 Update feeds to new 1.2 framework
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-08 10:52:53 -05:00
Dan McGee
8bf0bfeac7 Use Sites framework instead of hardcoded domain name
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-08 08:35:58 -05:00
Dan McGee
bad2825fab Updates for CSRF protection in Django 1.2.X
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-05 12:58:31 -05:00
Dan McGee
7646f8ea7c Fix some validation issues
We had a few issues with unescaped ampersands and extra or missing tags.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-02 10:58:57 -05:00
Dan McGee
32f6f7a4da Rename todolist email template
More in line with our other templates that have .txt extensions.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-02 10:44:02 -05:00
Dan McGee
f4fd8ceea1 Fix flagged styling in package search results
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-31 15:24:17 -05:00
Dan McGee
48a935d8ed Make some small color changes
After feedback from the recent redesign.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-29 17:24:26 -05:00
Dan McGee
debec14b73 Add ability to download package from web interface
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-26 10:50:03 -05:00
Dan McGee
5866498603 Have reporead populate filename column
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-26 10:50:02 -05:00
Dan McGee
4740c39603 Add filename column to package model
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-26 10:11:59 -05:00
Dan McGee
c426fbebb7 Highlight 'Packages' in navbar when browsing packages
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-26 09:59:37 -05:00
Dan McGee
277117ba34 Move package flagging URLs below the package
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-26 09:30:43 -05:00
Dan McGee
8f11dd9065 Fix missing version in checksums on download page
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-26 08:52:40 -05:00
Dan McGee
eee4d67ce7 Make testing italics style work
Package names are now spans and not links

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-25 14:42:57 -05:00
Dan McGee
da67c4a736 Fix some link title issues
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-25 14:25:05 -05:00
Dan McGee
e817efad53 Merge branch 'redesign'
Conflicts:
	templates/public/download.html
2010-05-24 21:13:46 -05:00
Dan McGee
b3e8354cdf reporead: use the DB package we already have
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-24 11:29:35 -05:00
Dan McGee
5adceb6586 Fix null field issues exposed by Django 1.1.2
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-24 10:57:17 -05:00
Dan McGee
a1f7520b8c Change link to new dev site location
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-24 10:39:26 -05:00
Dan McGee
d797eac372 Fix undefined variable issue
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-21 15:48:32 -05:00
Dan McGee
a24e503a63 Fix navbar links
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-17 23:16:24 -05:00
Dan McGee
025133014a Styling touchups and temp style removal
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 16:57:37 -05:00
Dan McGee
b2af7365c0 Add universal archnavbar resources
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 16:57:12 -05:00
Dan McGee
779a2077f0 Remove old media resources
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 16:44:16 -05:00
Dan McGee
bf7f97ec03 Front page refinements
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 16:43:07 -05:00
Thayer Williams
f5ac1bf3ae Redesigned Dashboard
* descriptive semantics
* proper django cell cycling
* link titles throughout

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 15:55:39 -05:00
Thayer Williams
3a39352883 Redesigned flagged page
* indentation
* consistent semantics

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 15:55:38 -05:00
Thayer Williams
c1711f002a Redesigned todo list pages
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 15:55:38 -05:00
Thayer Williams
5813ec1819 Filelists: Touch up the HTML of file list views
Remove some unnecessary classes and touch up the direct and AJAX views.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 15:55:38 -05:00
Dan McGee
c31d474f6d Kill td_input template and tag 2010-05-17 15:55:38 -05:00
Thayer Williams
ebf292292f Redesigned Package Search page
* 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-17 15:55:38 -05:00
Thayer Williams
67f22221b2 Redesigned feeds page, added additional feeds from sub-sites
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 15:55:38 -05:00
Thayer Williams
903c457b2a Cleaned up form controls, now using platform/browser defaults
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 15:55:38 -05:00
Thomas Bächler
cabfd7487d download: Remove USB install link 2010-05-17 22:49:26 +02:00
Thayer Williams
663aa383ff Redesigned Signoffs page
* 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-17 14:49:44 -05:00
Thayer Williams
1c8e8eb5e6 Updated form semantics for accessibility
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 14:49:44 -05:00
Thayer Williams
08f886380c Redesigned dev mirrorlist page, proper django cycling, semantics
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 14:49:44 -05:00
Thayer Williams
7657c59782 Redesigned TU profiles, semantics, page title
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 14:49:44 -05:00
Dan McGee
1341dbdab8 Revamp download page
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 14:49:44 -05:00
Dan McGee
d5f065fe53 Revamp donate page
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 14:49:44 -05:00
Thayer Williams
49651ce0d5 Redesigned developer profiles
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 14:49:44 -05:00
Thayer Williams
035fff3328 Redesigned artwork page with updated image paths
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 14:49:44 -05:00
Thayer Williams
3945c52682 Redesigned News Pages
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 14:49:44 -05:00
Thayer Williams
06f5261352 Updated template page semantics
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 14:49:44 -05:00
Thayer Williams
465a74eddb Updated generic form for accessibility
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 14:49:44 -05:00
Dan McGee
7aa129155f Touch up download page a tad more
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 14:49:44 -05:00
Thayer Williams
780c19c209 Redesigned mirrorlist generator page
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 14:49:44 -05:00