Commit Graph

54 Commits

Author SHA1 Message Date
Thomas Bächler
c9d51d08c9 download: add a link to the new netboot environment
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-12-05 17:46:18 -06:00
Dan McGee
025042ef0d Master keys: reduce query count, add default ordering
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-30 14:45:05 -06:00
Dan McGee
6b8ef446bc Add master key overview page
And a bunch of text that may suck, but is better than nothing.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-30 13:55:36 -06:00
Dan McGee
85657db05d Better support for non-latin full names
Add a 'latin_name' field to the user profile so we can better support
those developers with names in non-Latin scripts, and yet still show a
Latin name as necessary on the developer profile page. This field only
shows up if populated.

Also, use consistent sorting everywhere- rather than using username,
always use first_name and last_name fields.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-21 10:08:23 -06:00
Dan McGee
71e57570c2 Pylint suggested and other cleanups
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-11 19:29:15 -05:00
Thomas Bächler
6b15298483 download: add link to the ISO snapshots
Dan: use relative links if possible, use releng link from settings, fix
HTML closing tags.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-19 12:55:50 -05:00
Olivier Keun
a4895f0668 News frontpage layout changes
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-08-16 15:58:40 -05:00
Dan McGee
c5308b7583 Recent updates refactor
Pull out a few helpful objects and functions for use later elsewhere.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-07-05 09:48:10 -05:00
Dan McGee
4a9b6867a3 Refactor common select_related into manager method
For a Package object query, we almost always did .select_related('arch',
'repo). Refactor this into the manager as a 'normal()' method so we can
avoid sprinkling the same logic everywhere.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-15 15:50:14 -05:00
Dan McGee
0504fbeb92 Collapse all split and similar packages in recent updates list
I was getting sick of seeing the *-i18n packages completely blow away
anything else useful out of the recent updates sidebar. Revamp the logic
here again to do something about it. As we did before, grab packages
from the database and attempt to group them, but this time do it by only
repo and pkgbase.

From there, if we have packages in the group with a pkgname matching
pkgbase, we will link just those. If not, we will create some stub
objects that link to our relatively new virtual package overview screen.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-05 01:12:23 -05:00
Dan McGee
9d17938782 Move magic numbers into a function argument
Instead of having the '15 most recent' bit hardcoded, specify it as the
default but allow value to be overridden by any caller. We don't make
use of this yet, but it is not hard to do.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-13 12:03:37 -05:00
Dan McGee
5cd223680e Slight refactor of user list views
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-27 11:52:27 -06:00
Dan McGee
1fe833e18d Screen Fellows based on group membership as well
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-27 11:42:27 -06:00
Dan McGee
9acae339ff Simplify sorting attrgetter calls
Don't use dotted notation now that we have less-than implemented methods
on the respective objects (which also allows this code to work under
PyPy). Switch a lambda call to use attrgetter as well.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-11-27 14:56:15 -06:00
Dan McGee
82eb9de993 Make user profile a OneToOneField
We had this set up as a unique ForeignKey before, which adds some
indirection due to the RelatedManager object being there. By making it a
OneToOneField, we can get the profile object directly, enforce uniqueness,
and also use it in select_related() calls to make our profiles page a bit
more efficient.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-04 17:44:40 -05:00
Dan McGee
e847030d83 Switch another query to use is_download
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-04 17:40:38 -05:00
Dan McGee
11f0db759b Add some select_related() magic
Made obvious when poking around with the Django debug toolbar.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-04 17:37:39 -05:00
Dan McGee
77f65bdc0c Allow donors to be invisible
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-10-01 13:05:22 -05:00
Dan McGee
f637a1eb67 Move news model to an appropriate place
Never would have guessed it should actually be in news/models.py.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-08 00:23:55 -05:00
Dan McGee
7dba848eaf Move mirror models out of main app
South actually makes this relatively painless if you get everything right,
so might as well start getting these out of the legacy main application to
eventually eliminate models being separate from their views.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-06 12:01:46 -05:00
Dan McGee
7c7f57f6ac Use direct_to_template in public views
Saves the hassle of needing to wrap everything in RequestContext()
manually.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-03 13:16:18 -05:00
Dan McGee
d57696c801 PyLint suggested cleanups
We had a bunch of extra imports, non-conventional variable names, spacing
issues, etc. that were relatively low-hanging fruit to clean up. Fix them
and make the code a bit cleaner in the process.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-28 11:41:19 -05:00
Dan McGee
661b5e6b63 Add missing RequestContext in feeds view
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 09:41:28 -05:00
Dan McGee
da9a1ecbf8 Cache the recent updates list
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-06-21 00:51:39 -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
8116500afc Make group membership use Django groups
Rather than our home-baked roles field, which is free text so we really
shouldn't be checking against anyway. It also prevents people from being
both a developer and a TU.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 10:38:44 -05:00
Dan McGee
e7a58b9d57 Donor page rework for list formatting
Instead of doing slicing and ugly table-based layout, move to a CSS-based
organization of the donor list. Shoot for 4 columns but should degrade
gracefully to fewer, and will look just fine with no CSS at all (one big
tall list).

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-17 10:19:24 -05:00
Dan McGee
a3dc482016 Ensure protocol order is stable on download page
Sometimes http was first, other times ftp was first. Add an order by clause
to ensure it is the same for all mirrors.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-05-16 14:02:09 -05:00
Dan McGee
ec59440262 Remove Arch-Based Projects
Add a link to the wiki instead. Also remove ExternalProject model and
associated dealings.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-04-18 23:27:27 -05:00
Dan McGee
1709def7f1 Remove International Communities
Add link to wiki instead. Also remove AltForum model and associated
dealings.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-04-18 23:14:53 -05:00
Dan McGee
c4ddff2f48 Remove IRC Channels
And link to wiki instead.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-04-18 22:40:01 -05:00
Dan McGee
ad33813bc1 Improve front page recent updates list
Instead of linking the package name, link the architecture. This will
prevent the lost links we had when we collapsed the list to show multiple
architectures at the same time.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-04-17 11:10:26 -05:00
Dan McGee
0a6c760b35 Only group packages if they are in the same repo
Fixes FS#18436.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-26 19:37:15 -06:00
Dan McGee
d709604102 Remove archweb prefix from all imports
Unnecessary, and lets us standardize on not using it everywhere.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-02-10 00:29:27 -06:00
Dan McGee
b2f33457f6 Make recent updates group multiple architectures
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-05 17:03:35 -06:00
Dan McGee
6fe8aec0ab feeds: add per arch, per repo feed ability
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-04 19:03:32 -06:00
Dan McGee
31b38b49c3 Spruce up the developer view pages
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-31 22:55:49 -06:00
Dan McGee
f58b354a03 Use select_related() to make a few more places more performant
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-31 15:19:12 -06:00
Dan McGee
e86ebd0ad2 Don't exclude testing packages from recently updated
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31 11:35:13 -06:00
Ismael Carnales
e0506afaf1 Add basic tests to public app
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-12-01 23:26:04 -02:00
Dan McGee
c126492aba Fix highlighting on main site tabs
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-10 17:52:29 -02:00
Ismael Carnales
a008b0de80 corrected context variable names in index view 2009-11-09 22:24:50 -02:00
Ismael Carnales
046b4543a4 made every public view return a RequestContext
RequestContexts are needed to check if the user is logged in

NOTE: Generic views as direct_to_template and object_list always return
a request context, so is good to use them :)

Later will add a render_template shortcut that adds the RequestContext
automatically
2009-11-09 22:24:43 -02:00
Ismael Carnales
680d9d30df use direct_to_template to replace static views 2009-11-09 22:24:42 -02:00
Ismael Carnales
b4999b495e changed landing view
- moved devel.views.siteindex to public.views.index
 - using template from public view with added devel menu
 - added extra styles and images
2009-11-09 22:24:41 -02:00
Ismael Carnales
79f00ef686 "imported" public app files from archweb_pub 2009-11-09 22:24:37 -02:00
eliott
cdf2c11aeb Removed public app 2007-12-29 18:25:03 -08:00
eliott
706152de89 Moved some things around. 2007-12-29 18:21:10 -08:00
eliott
3e297efad8 Massive retab fest.
Also added vim command comment to the end of files.
2007-12-29 16:42:55 -08:00
eliott
15ceff77fe Modified render_template and renamed it to render_response (consistent with
archweb_pub conventions).
Moved pkgmaint_guide to a template.
2007-12-29 15:34:02 -08:00