From 99a0e1bc76295243026ffbd41af10d62787b9ec0 Mon Sep 17 00:00:00 2001 From: Dan McGee Date: Sat, 24 Mar 2012 13:08:39 -0500 Subject: Convert retro pages to use {% retro_static %} template tag Signed-off-by: Dan McGee --- retro/templates/retro/index-20020328.html | 8 ++++---- retro/templates/retro/index-20030330.html | 12 ++++++------ retro/templates/retro/index-20040327.html | 24 ++++++++++++------------ retro/templates/retro/index-20050328.html | 26 +++++++++++++------------- retro/templates/retro/index-20060328.html | 24 ++++++++++++------------ retro/templates/retro/index-20070324.html | 18 +++++++++--------- retro/templates/retro/index-20080311.html | 16 ++++++++-------- retro/templates/retro/index-20090327.html | 14 +++++++------- retro/templates/retro/index-20100208.html | 16 ++++++++-------- retro/templates/retro/index-20110212.html | 20 ++++++++++---------- retro/views.py | 4 +--- 11 files changed, 90 insertions(+), 92 deletions(-) diff --git a/retro/templates/retro/index-20020328.html b/retro/templates/retro/index-20020328.html index ca74cb4f..8c8f9d62 100644 --- a/retro/templates/retro/index-20020328.html +++ b/retro/templates/retro/index-20020328.html @@ -1,8 +1,8 @@ - Arch Linux - + @@ -27,7 +27,7 @@ Devel:   0.2 -Arch Logo
+Arch Logo
@@ -131,7 +131,7 @@ here to use the web interface. <jvinet@zeroflux.org> - SourceForge Logo + SourceForge Logo

diff --git a/retro/templates/retro/index-20030330.html b/retro/templates/retro/index-20030330.html index 59bb9189..449731af 100644 --- a/retro/templates/retro/index-20030330.html +++ b/retro/templates/retro/index-20030330.html @@ -1,11 +1,11 @@ - +{% load retro_static from retro %} Arch Linux - - + + - + @@ -20,7 +20,7 @@

- + An i686-optimized Linux distribution. @@ -245,6 +245,6 @@ Copyright ©2002, Judd Vinet <jvinet@zeroflux.org>

- SourceForge Logo + SourceForge Logo diff --git a/retro/templates/retro/index-20040327.html b/retro/templates/retro/index-20040327.html index 08588fe5..9c8ea0dd 100644 --- a/retro/templates/retro/index-20040327.html +++ b/retro/templates/retro/index-20040327.html @@ -1,10 +1,10 @@ - +{% load retro_static from retro %} Arch Linux - - - + + + @@ -15,7 +15,7 @@
- + @@ -212,13 +212,13 @@ @@ -243,7 +243,7 @@

-SourceForge Logo +SourceForge Logo

-Make payments with PayPal - it's fast, free and secure! +Make payments with PayPal - it's fast, free and secure!
All money goes directly to server costs
- + @@ -378,7 +378,7 @@ March 26 20:54


@@ -330,7 +330,7 @@ March 26 20:54
-
+
Release Package Lists @@ -360,7 +360,7 @@ March 26 20:54 - +
- + diff --git a/retro/templates/retro/index-20050328.html b/retro/templates/retro/index-20050328.html index 2ac8c580..8b4f9e75 100644 --- a/retro/templates/retro/index-20050328.html +++ b/retro/templates/retro/index-20050328.html @@ -1,10 +1,10 @@ - +{% load retro_static from retro %}Arch Linux - - - + + +


@@ -455,7 +455,7 @@ March 26 20:54 - +
@@ -15,7 +15,7 @@
- + @@ -284,18 +284,18 @@ @@ -320,7 +320,7 @@

-Arch Linux +Arch Linux

-SourceForge Logo +SourceForge Logo

-Make payments with PayPal - it's fast, free and secure! +Make payments with PayPal - it's fast, free and secure!
All money goes directly to server costs
- + @@ -452,7 +452,7 @@ March 24 05:13


@@ -401,7 +401,7 @@ March 24 05:13
-
+
Release Package Lists @@ -434,7 +434,7 @@ March 24 05:13 - +
- + diff --git a/retro/templates/retro/index-20060328.html b/retro/templates/retro/index-20060328.html index 6f39c0ed..f45024df 100644 --- a/retro/templates/retro/index-20060328.html +++ b/retro/templates/retro/index-20060328.html @@ -1,12 +1,12 @@ - +{% load retro_static from retro %}Arch Linux - - + + - +


@@ -578,7 +578,7 @@ You can enab... - +
@@ -17,7 +17,7 @@
- + @@ -317,13 +317,13 @@ @@ -346,7 +346,7 @@

- Arch Linux + Arch Linux

-Make payments with PayPal - it's fast, free and secure! +Make payments with PayPal - it's fast, free and secure!
- + @@ -490,7 +490,7 @@ March 27 13:34


@@ -427,7 +427,7 @@ March 27 13:34
-
+
Release Package Lists @@ -472,7 +472,7 @@ March 27 13:34 - +
- + diff --git a/retro/templates/retro/index-20070324.html b/retro/templates/retro/index-20070324.html index c4739927..14453726 100644 --- a/retro/templates/retro/index-20070324.html +++ b/retro/templates/retro/index-20070324.html @@ -1,10 +1,10 @@ - +{% load retro_static from retro %}Arch Linux - - - + + + @@ -14,8 +14,8 @@
- - Arch Linux + + Arch Linux
@@ -51,7 +51,7 @@


@@ -622,7 +622,7 @@ Xorg7 has finally moved into Current. The upgrade is pretty sm... - +
- + @@ -264,7 +264,7 @@

- RSS Feed + RSS Feed

Latest News

@@ -376,7 +376,7 @@ MODULES= in rc.conf - Recent ...

Copyright © 2002-2006, Judd Vinet <jvinet@zeroflux.org>

- Arch Linux + Arch Linux
diff --git a/retro/templates/retro/index-20080311.html b/retro/templates/retro/index-20080311.html index d48a632e..89a7de95 100644 --- a/retro/templates/retro/index-20080311.html +++ b/retro/templates/retro/index-20080311.html @@ -1,10 +1,10 @@ - +{% load retro_static from retro %}Arch Linux - - - + + + @@ -14,8 +14,8 @@
- - Arch Linux + + Arch Linux

Recent Updates

RSS FeedRSS Feed
- + @@ -272,7 +272,7 @@

- RSS Feed + RSS Feed

Latest News

diff --git a/retro/templates/retro/index-20090327.html b/retro/templates/retro/index-20090327.html index 70c64736..e780d78d 100644 --- a/retro/templates/retro/index-20090327.html +++ b/retro/templates/retro/index-20090327.html @@ -1,10 +1,10 @@ - +{% load retro_static from retro %} Arch Linux - - - + + + @@ -42,7 +42,7 @@

Recent Updates

RSS FeedRSS Feed
- + @@ -156,7 +156,7 @@
  • SVN
  • Projects
  • - We would like to express our thanks to SevenL Networks for their generous contribution + We would like to express our thanks to SevenL Networks for their generous contribution
    @@ -184,7 +184,7 @@


    - RSS Feed + RSS Feed

    Latest News

    diff --git a/retro/templates/retro/index-20100208.html b/retro/templates/retro/index-20100208.html index 1d488248..b30d4cb4 100644 --- a/retro/templates/retro/index-20100208.html +++ b/retro/templates/retro/index-20100208.html @@ -1,10 +1,10 @@ - +{% load retro_static from retro %} Arch Linux - - - + + + @@ -46,7 +46,7 @@

    Recent Updates

    RSS FeedRSS Feed
    - + @@ -165,8 +165,8 @@
  • SVN
  • Projects
  • - velocity network - it's about time - We would like to express our thanks to SevenL Networks for their generous contribution + velocity network - it's about time + We would like to express our thanks to SevenL Networks for their generous contribution
    @@ -194,7 +194,7 @@


    - RSS Feed + RSS Feed

    Latest News

    diff --git a/retro/templates/retro/index-20110212.html b/retro/templates/retro/index-20110212.html index e304a727..db4dfa41 100644 --- a/retro/templates/retro/index-20110212.html +++ b/retro/templates/retro/index-20110212.html @@ -1,11 +1,11 @@ - +{% load retro_static from retro %} Arch Linux - - - - + + + + @@ -71,7 +71,7 @@

    Latest News (more)

    - RSS Feed + RSS Feed

    MySQL 5.5 is now in [extra]

    @@ -199,7 +199,7 @@ use the proper directories.

    Recent Updates (more)

    - RSS Feed + RSS Feed

    Recent Updates

    RSS FeedRSS Feed
    @@ -413,13 +413,13 @@ use the proper directories.

    diff --git a/retro/views.py b/retro/views.py index 5ce6d19d..3bc59e9f 100644 --- a/retro/views.py +++ b/retro/views.py @@ -1,4 +1,3 @@ -from django.conf import settings from django.http import Http404 from django.views.decorators.cache import cache_page from django.views.generic.simple import direct_to_template @@ -24,9 +23,8 @@ def retro_homepage(request, year): template = RETRO_YEAR_MAP.get(year, None) if template is None: raise Http404 - static_url = '%s%d/' % (settings.STATIC_URL, year) context = { - 'RETRO_STATIC_URL': static_url, + 'year': year, } return direct_to_template(request, 'retro/%s' % template, context) -- cgit v1.2.3-55-g3dc8