Commit Graph

13 Commits

Author SHA1 Message Date
Jelle van der Waa
ce266e7f8d retro: create tests for retro pages
Added tests for the known year pages and the 404 case. With theses tests
the retro pages have 100% test coverage
2017-05-28 17:28:08 +02:00
Dan McGee
3e70c8107b Remove now unnecessary empty models.py files
Signed-off-by: Dan McGee <dan@archlinux.org>
2014-09-11 18:35:36 -05:00
Dan McGee
c1346ede64 Add 2012 and 2013 retro sites
From our friends over at web.archive.org again, thanks!

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-11-11 18:39:58 -06:00
Dan McGee
b7b2474064 Various minor code cleanups and fixes
Most of these were suggested by PyCharm, and include everything from
little syntax issues and other bad smells to dead or bad code.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-04-16 22:12:01 -05:00
Dan McGee
e969da2d40 Run pngcrush and optipng over most static content
The programs have improved a bit and found some room for optimization,
especially in the static logo content. Some files were reduced in size
by 50% or more.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-02-03 13:38:39 -06:00
Dan McGee
f9252df113 Switch to using the cached STATICFILES_STORAGE backend
This should finally let us crank up the Expires: header to far-future
values in production since updates to JS and CSS files will take effect
immediately.

Some minor removals were made from retro stylesheets as they were
referencing files that don't actually exist because they were missing
from the web archive.

Signed-off-by: Dan McGee <dan@archlinux.org>
2013-01-21 15:14:44 -06:00
Dan McGee
76c37ce3ac Replace deprecated direct_to_template() with render() shortcut
Now that Django actually provides a concise way to use a RequestContext
object without instantiating it, we can use that rather than the old
function-based generic view that worked well to do the same.
Additionally, these function-based generic views will be gone in Django
1.5, so might as well make the move now.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-07-24 19:57:20 -05:00
Dan McGee
99a0e1bc76 Convert retro pages to use {% retro_static %} template tag
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-24 13:08:39 -05:00
Dan McGee
965351e85b Add retro_static template tag
Unfortunately {% static %} cannot interpret any context variables passed
into it, so we need to customize things in order to use it here since
our resources are sorted by year.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-24 13:01:17 -05:00
Dan McGee
3451b4f835 Add favicon retro resources and correctly link them
Signed-off-by: Dan McGee <dan@archlinux.org>
2012-03-24 12:11:43 -05:00
Dan McGee
255823d7e2 Remove actual link to PayPal from retro views
The logo will still be there, but no need to have anyone click through
to the actual donation box.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-23 10:23:05 -06:00
Dan McGee
f451e61725 Add retro views from 2003 through 2011
These follow the prior commit adding the framework and an initial 2002
retro view.

Signed-off-by: Dan McGee <dan@archlinux.org>
2012-02-18 20:40:15 -06: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