Commit Graph

111 Commits

Author SHA1 Message Date
Dan McGee
00b9084303 Remove public todolists view
Replace this with a redirect to the developer todolist index page.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-03-11 18:24:56 -05:00
Dan McGee
7bf9c6e065 Remove /jsi18n/ view mapping
We removed the last non-admin usage of this in commit e65c780554, so
it can be removed.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-03-09 12:54:44 -06:00
Dan McGee
445c242dac Add a releases model sitemap
Signed-off-by: Dan McGee <dan@archlinux.org>
2013-02-08 21:12:46 -06:00
Dan McGee
a15d0850af Slight reorganization of urls.py
Move some of the not-so-frequently used resources further down in the
list of URLs, which will ever so slightly speed up the resolver.
Sitemaps don't need to be checked near as often, for instance.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-21 11:08:35 -06:00
Dan McGee
fbc153ed45 Initial cut of a Releases RSS feed
This is our first use of enclosures on the site as well.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-19 10:33:03 -06:00
Dan McGee
45d81a9578 Move JSON keys view to public/ app
This seems like a more appropriate place, and now the visualization is
done here anyway so we should move the data backing it.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-11-13 10:21:02 -06:00
Dan McGee
3e07659622 Add a few more redirects for old links
This covers more .php pages noticed in Google webmaster tools, as well
as some links to former documentation.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-10-02 06:52:59 -05:00
Dan McGee
58ecb90c3f Add caching of sitemaps
Upstream Django bug #2713 was fixed in
https://github.com/django/django/commit/123f567093, so we can now enable
caching of sitemaps.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-09-30 13:30:21 -05:00
Dan McGee
c03b9c5f10 feeds: add all arches for repo feed
If you wanted to see all updates regardless of architecture for
[testing] before, there wasn't really a way to do so. Add one.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-31 00:16:36 -05:00
Dan McGee
d68e00f195 Remove use of deprecated redirect_to function-based generic view
We can use the class-based replacement instead.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-24 19:57:20 -05:00
Dan McGee
590060d1b4 Remove no-longer needed handler imports
This was finally fixed upstream in
https://code.djangoproject.com/ticket/5350.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-24 19:57:20 -05:00
Dan McGee
d5a19db526 Add packages.php URL redirect
This was seen in Google webmaster tools.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-21 11:06:49 -05:00
Dan McGee
b59e79f387 Opensearch enhancements
* Add a 64x64 icon as indicated in the Opensearch specification.
* Add suggestions capability and a new view providing suggestions based
  on package name starting with the typed value.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-05-01 17:13:33 -05:00
Dan McGee
23cb0d0956 Remove media/ staticfiles URL location
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-26 12:34:16 -05:00
Dan McGee
b8c20439c0 Change Django urls.py import
Until Django 1.3, the functions include(), patterns() and url() plus
handler404, handler500 were located in a django.conf.urls.defaults
module.

In Django 1.4, they live in django.conf.urls.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-23 19:54:40 -05:00
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