Commit Graph

73 Commits

Author SHA1 Message Date
Dan McGee
1c6099f4b2 Make general mirror list view public
Hide some columns when not logged in because they aren't relevant for the
general public, but this will work nicely as a base page for all of our
known mirrors.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-24 19:39:37 -05:00
Dan McGee
8ff8190c5c Add link to mirror status tool
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21 17:39:39 -05:00
Dan McGee
40ac4818aa Add mirror status view
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21 09:10:33 -05:00
Dan McGee
7c88e3e1a2 Rename generate mirrorlist view
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21 09:10:33 -05:00
Dan McGee
1b6cf5261c Auto-populate slug on news item creation
And make sure it is unique through a few queries and some magic.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21 09:10:02 -05:00
Dan McGee
41dc37c812 Update news views to use slug instead of ID
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-21 09:10:02 -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
e595665abd Add a package groups sitemap
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 17:25:46 -05:00
Dan McGee
ddc4b974fe Add a package group overview page
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 17:06:07 -05:00
Dan McGee
e0674de776 Add a group details view
This makes the support asked for in FS#19801 a lot more useful since we
actually have an overview page for the entire group.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-27 17:05:07 -05:00
Dan McGee
ae5483c230 Package Differences by Architecture view
Implements FS#20416. Port over the architecture differences view from
archlinux.de and reimplement in Django with our DB schema. Also use a far
simpler SQL query to do the dirty work rather than the triple UNION
operation. This is accomplished by doing a bit more of the fetching work in
code once we know what packages are actually involved.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-08-25 13:45:04 -05:00
Dusty Phillips
d316f4b197 Add a basic view for todo lists
Dan: rename template and view to something a bit more concise.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-25 15:57:10 -05:00
Dan McGee
ad162d74db Format all news items using markdown
Implements FS#13741. A preview function is also added so working with news
items is easier to make sure you get the formatting right.

This will result in some older news items looking a bit weird if they didn't
put linebreaks in all the right places, we can fix a few of these as we
notice them.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-06 20:16:10 -05:00
Dan McGee
2d407d9c1b mirrorlist: allow filtering by protocol
And add some more "static" URLs to access the non-country filtered lists.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-02 20:02:26 -05:00
Dan McGee
d29d23ecf3 Get mirrorlist view ready for general use
Make the page much more flexible- allow multiple countries to be selected
rather than just one in the form. Also add a lot more text to the page, and
move the 'all' option out into its own subheading rather than being in the
same form.

Both GET and POST requests are now allowed for ease of use from non-browser
scenarios or those that wish to update their mirrorlist automatically and
submit parameters to the URL.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-02 19:24:54 -05:00
Dan McGee
e5bd769432 Remove arch from mirrorlist generation
With pacman 3.4.0, we can now use the $arch variable so we don't need
architecture-specific mirrorlists.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-07-02 18:34:09 -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
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
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
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
cb6df87f94 Switch some hardcoded urls to url tag usage
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-20 12:09:21 -05:00
Dan McGee
6c0d7e73c4 urls: add several named URL patterns
This will allow us to kill some hardcoded paths elsewhere as well as play
some games with the sitemap.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-11 21:03:05 -06:00
Dan McGee
5f9d98d407 Sitemaps: split and index, add package files
Split it up as it is growing rather large, and add all the package files
views to the mix so Google or anyone can pick those up. They get a slightly
lower priority (if that even matters).

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-03-10 00:17:51 -06:00
Dan McGee
a0cd93c1d5 Bring package files view up to speed
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-27 13:36:58 -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
964d89e116 Move /jsi18n/ back out of /admin/ app
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-08 21:06:47 -06:00
Dan McGee
8c077a4caa Add OpenSearch support to the site
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-08 21:01:15 -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
ab3b63b509 Get the calendar widget working
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-01-31 20:45:14 -06:00
Ismael Carnales
1c22bbc3f7 added missing packages views from archweb_pub 2009-11-09 22:24:52 -02:00
Ismael Carnales
6243f7ba66 added mirrors app from archweb_pub 2009-11-09 22:24:46 -02:00
Ismael Carnales
c1a197d29a added sitemaps from archweb_pub 2009-11-09 22:24:45 -02:00
Ismael Carnales
19f0a3fb57 added feeds from archweb_pub 2009-11-09 22:24:44 -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
7cd5c1f5a6 added public app 2009-11-09 22:24:40 -02:00
Ismael Carnales
48904e4857 modified import paths from archweb_dev to archweb 2009-11-09 22:24:34 -02:00
Dan McGee
d47f4da6f8 Make community-testing accessable
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-09-26 11:07:34 -05:00
Dan McGee
9dc89e8287 Add a basic mirror view for the dev site
Signed-off-by: Dan McGee <dan@archlinux.org>
2009-09-15 20:14:06 -05:00
Dusty Phillips
0d2560fa55 Add a page to aid Aaron in user creation. 2009-08-10 15:47:02 -04:00
Dusty Phillips
17c18fa284 Change deprecated admin site urls for 1.1. 2009-08-04 11:29:54 -04:00
Dusty Phillips
0e0265a624 drop useless view 2008-10-10 18:51:06 -04:00
Dusty Phillips
d5cb786f44 change of style, I decided I like to have a wrapper for all generic views 2008-10-10 18:00:16 -04:00
Dusty Phillips
d97d3a447c drop search/ url and just go to packages 2008-10-10 17:28:05 -04:00
Dusty Phillips
edc9dfb7a4 drop id based searching 2008-10-07 18:01:06 -04:00
Dusty Phillips
fcc2a8a480 make form submit some but not all values 2008-10-07 15:59:40 -04:00
Dusty Phillips
0b96068803 replace package search with a nonfunctional newform 2008-10-07 13:15:59 -04:00