Commit Graph

96 Commits

Author SHA1 Message Date
Dan McGee
48f51dea41 Add a retro site view and link it to a URL
This is from our friends at web.archive.org, who's earliest capture of
the Arch Linux website was on March 28, 2002. Seems like something nice
to do around the 10th anniversary of the website being up and the distro
being around, and not hotlinking their servers also seems like a good
idea.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-18 19:24:33 -06:00
Dan McGee
9ddbe26e4c Add a few cache headers and minor feed caching back in
Now that we aren't using the middleware, add cache headers on our
primary pages so we can prevent some repeat traffic, and cache all feeds
for five minutes.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-01-03 15:00:49 -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
a883b0af23 Add a split packages sitemap
With very low priority, but this should at least give a few more
cross-linking pages to any crawlers using sitemaps.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-11-11 11:57:04 -06:00
Dan McGee
2c8b7ad07b Add some legacy URL redirects
Amazing that we still see hits on these URLs...

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-27 00:26:03 -05: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
Dan McGee
a01a11cfad Cache static /jsi18n/ resource for one week
Rather than the default middleware page cache length of only minutes.
This will save clients a lot of requests when browsing packages.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-07 11:31:55 -05:00
Dan McGee
d5063bd1d2 Add package visualizations page
Why the hell not? Have fun clicking all the pretty buttons.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-10-05 15:45:44 -05:00
Dan McGee
cda9c5bb34 Add a base pages sitemap
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-06-15 16:55:03 -05:00
Dan McGee
bfe6afcd7a Rename isotests to releng
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28 17:58:13 -05:00
Tom Willemsen
c5a28f8893 isotests: modelines, imports, url and pass
* Added vim modelines to files.
* Rearranged import statements.
* Moved the arch releng isos url to settings.py.
* Fixed some issues that arose from forgetting to import the isotests urls
  package.
* removed redundant str() calls.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-28 14:00:54 -05:00
Dan McGee
b2f7cd61e8 Convert generic views in urls.py to class-based
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-04-07 17:03:33 -05:00
Dan McGee
c722d8bf9e Remove multiple account login/logout URLs
And slightly spruce up the logout template with a header.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-03-04 09:36:18 -06: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
b9fdcd0622 Modularize URLs
Make some additional URL config files that can be included so we aren't
trying to do so much in the top level config. This also allows us to
branch a bit more rather than go linear down the rather lengthy list.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-22 15:29:10 -06:00
Dan McGee
db911e291f Use os.path.join for path manipulation
Signed-off-by: Dan McGee <dan@archlinux.org>
2011-02-01 00:18:24 -06:00
Dan McGee
9cdc536fff Add arch-specific group overview pages
This is easy enough to refactor and support with our current infrastructure
and group-fetching functions.

Signed-off-by: Dan McGee <dan@archlinux.org>
2011-01-18 14:26:38 -06:00
Dan McGee
6528f52cff Fix urls precedence in mirror views
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-12-14 10:09:01 -06:00
Dan McGee
6e3dc1be01 Move more URLs out of root urlconf
Things are a bit cleaner now.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-12-13 14:56:43 -06:00
Dan McGee
080278adea Move news urls into own file
Signed-off-by: Dan McGee <dan@archlinux.org>
2010-12-13 14:44:07 -06:00
Dan McGee
d22c970f09 Split urls.py up by view prefix
This makes things a lot cleaner and easier to read; we were getting quite
clunky. It also sets the stage for url inclusion rather than one base
urls.py file.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-12-13 14:35:30 -06:00
Dan McGee
7b969772cc Add a mirror status JSON view
Requested in FS#21144. This should provide most if not all of the data that
was provided on the archlinux.de website, although there are some
differences in what is returned to the user. It is nearly the same data as
that provided in the HTML view, the difference being things are a bit more
machine-friendly and the list is not split into good and bad portions.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-12-13 13:58:40 -06:00
Dan McGee
bc5a5781bf Add a basic mirror details page
Still some work to do here, but this covers the basics of the public view we
can show for mirrors and their associated data. The upstream and downstream
links should be working OK to aid navigation, but right now we have some
potential dead links for non-authenticated users if they click a link to a
"private" mirror.

Signed-off-by: Dan McGee <dan@archlinux.org>
2010-09-24 19:39:37 -05:00
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