diff options
author | Dan McGee <dan@archlinux.org> | 2012-03-24 19:08:39 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2012-03-24 19:08:39 +0100 |
commit | 99a0e1bc76295243026ffbd41af10d62787b9ec0 (patch) | |
tree | d4abc16370130c14a2a5c1423da8080a82c87fbe | |
parent | 965351e85b25d83c193fcf68e42947b3b22a6b8f (diff) | |
download | archweb-99a0e1bc76295243026ffbd41af10d62787b9ec0.tar.gz archweb-99a0e1bc76295243026ffbd41af10d62787b9ec0.tar.xz |
Convert retro pages to use {% retro_static %} template tag
Signed-off-by: Dan McGee <dan@archlinux.org>
-rw-r--r-- | retro/templates/retro/index-20020328.html | 8 | ||||
-rw-r--r-- | retro/templates/retro/index-20030330.html | 12 | ||||
-rw-r--r-- | retro/templates/retro/index-20040327.html | 24 | ||||
-rw-r--r-- | retro/templates/retro/index-20050328.html | 26 | ||||
-rw-r--r-- | retro/templates/retro/index-20060328.html | 24 | ||||
-rw-r--r-- | retro/templates/retro/index-20070324.html | 18 | ||||
-rw-r--r-- | retro/templates/retro/index-20080311.html | 16 | ||||
-rw-r--r-- | retro/templates/retro/index-20090327.html | 14 | ||||
-rw-r--r-- | retro/templates/retro/index-20100208.html | 16 | ||||
-rw-r--r-- | retro/templates/retro/index-20110212.html | 20 | ||||
-rw-r--r-- | 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 ca74cb4..8c8f9d6 100644 --- a/retro/templates/retro/index-20020328.html +++ b/retro/templates/retro/index-20020328.html @@ -1,8 +1,8 @@ -<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" +{% load retro_static from retro %}<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Arch Linux</title> -<link rel="stylesheet" type="text/css" href="{{ RETRO_STATIC_URL }}main.css"> +<link rel="stylesheet" type="text/css" href="{% retro_static year "main.css" %}"> </head> <body bgcolor="#000000" link="cccc00" text="#cccccc"> @@ -27,7 +27,7 @@ Devel: 0.2 </tr> </tbody></table> </td><td align="right"> -<img src="{{ RETRO_STATIC_URL }}archlogo_black.gif" alt="Arch Logo"><br> +<img src="{% retro_static year "archlogo_black.gif" %}" alt="Arch Logo"><br> <span class="quote"> </span> </td></tr></tbody></table> @@ -131,7 +131,7 @@ here</a> to use the web interface. <<a href="mailto:jvinet@zeroflux.org">jvinet@zeroflux.org</a>> </span> <a href="http://web.archive.org/web/20020328043401/http://sourceforge.net/"> - <img src="{{ RETRO_STATIC_URL }}sflogo.png" alt="SourceForge Logo" align="right" border="0" height="31" width="105"></a> + <img src="{% retro_static year "sflogo.png" %}" alt="SourceForge Logo" align="right" border="0" height="31" width="105"></a> </p></center> </body></html> diff --git a/retro/templates/retro/index-20030330.html b/retro/templates/retro/index-20030330.html index 59bb918..449731a 100644 --- a/retro/templates/retro/index-20030330.html +++ b/retro/templates/retro/index-20030330.html @@ -1,11 +1,11 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> +{% load retro_static from retro %}<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"><title>Arch Linux</title> -<link rel="stylesheet" type="text/css" href="{{ RETRO_STATIC_URL }}main.css"> -<link rel="SHORTCUT ICON" href="{{ RETRO_STATIC_URL }}favicon.ico"> +<link rel="stylesheet" type="text/css" href="{% retro_static year "main.css" %}"> +<link rel="SHORTCUT ICON" href="{% retro_static year "favicon.ico" %}"> </head> -<body background="{{ RETRO_STATIC_URL }}dblue071.jpg" bgcolor="#222222" link="cccc00" text="#cccccc"> +<body background="{% retro_static year "dblue071.jpg" %}" bgcolor="#222222" link="cccc00" text="#cccccc"> <!--BANNER--> <table class="container" align="center" cellpadding="5" height="100%"> @@ -20,7 +20,7 @@ </span> </td></tr></tbody></table><br> </td><td rowspan="2" align="right"> - <img src="{{ RETRO_STATIC_URL }}logo.png"> + <img src="{% retro_static year "logo.png" %}"> </td></tr><tr><td valign="bottom"> <span class="quote">An i686-optimized Linux distribution.</span> </td></tr></tbody></table> @@ -245,6 +245,6 @@ Copyright ©2002, Judd Vinet <<a href="mailto:jvinet@zeroflux.org">jvinet@zeroflux.org</a>> </p> <a href="http://web.archive.org/web/20030330090147/http://sourceforge.net/"> - <img src="{{ RETRO_STATIC_URL }}sflogo.png" alt="SourceForge Logo" align="right" border="0" height="31" width="105"></a> + <img src="{% retro_static year "sflogo.png" %}" alt="SourceForge Logo" align="right" border="0" height="31" width="105"></a> </body></html> diff --git a/retro/templates/retro/index-20040327.html b/retro/templates/retro/index-20040327.html index 08588fe..9c8ea0d 100644 --- a/retro/templates/retro/index-20040327.html +++ b/retro/templates/retro/index-20040327.html @@ -1,10 +1,10 @@ -<html><head> +{% load retro_static from retro %}<html><head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Arch Linux</title> <meta name="keywords" content="linux, linux distribution, arch, pacman, i686-optimized, distribution, open source, free, packages, server, daemon, network, systems"> -<link rel="stylesheet" type="text/css" href="{{ RETRO_STATIC_URL }}fonts.css"> -<link rel="stylesheet" type="text/css" href="{{ RETRO_STATIC_URL }}containers.css"> -<link rel="shortcut icon" href="{{ RETRO_STATIC_URL }}favicon.ico"> +<link rel="stylesheet" type="text/css" href="{% retro_static year "fonts.css" %}"> +<link rel="stylesheet" type="text/css" href="{% retro_static year "containers.css" %}"> +<link rel="shortcut icon" href="{% retro_static year "favicon.ico" %}"> </head> <body> <table style="background-color: rgb(0, 0, 0); width: 100%;" cellspacing="0"> @@ -15,7 +15,7 @@ <td class="headerFill" colspan="2"> <table width="100%"> <tbody><tr> - <td class="headerDisplay"><img src="{{ RETRO_STATIC_URL }}logoTop.gif"></td> + <td class="headerDisplay"><img src="{% retro_static year "logoTop.gif" %}"></td> <td class="headerDisplay" align="right"> </td> </tr> @@ -212,13 +212,13 @@ </tr> <tr> <td style="background-color: rgb(238, 238, 238);" align="center"><br> -<a href="http://web.archive.org/web/20040327023505/http://sourceforge.net/"><img src="{{ RETRO_STATIC_URL }}sflogo.png" alt="SourceForge Logo" border="0" height="31" width="105"></a> +<a href="http://web.archive.org/web/20040327023505/http://sourceforge.net/"><img src="{% retro_static year "sflogo.png" %}" alt="SourceForge Logo" border="0" height="31" width="105"></a> </td> </tr> <tr> <td style="background-color: rgb(238, 238, 238);" align="center"><br> <!-- paypal code --> -<img src="{{ RETRO_STATIC_URL }}x-click-butcc-donate.gif" alt="Make payments with PayPal - it's fast, free and secure!" style="background: none repeat scroll 0% 0% transparent; border: medium none;" border="0"> +<img src="{% retro_static year "x-click-butcc-donate.gif" %}" alt="Make payments with PayPal - it's fast, free and secure!" style="background: none repeat scroll 0% 0% transparent; border: medium none;" border="0"> <br> <span class="f4">All money goes directly to server costs</span> </td> @@ -243,7 +243,7 @@ <td class="boxSoft"> <table style="width: 100%;" cellspacing="4"> <tbody><tr> - <td colspan="2" style="text-align: center; width: 50%;"><img src="{{ RETRO_STATIC_URL }}frontComponents.gif" height="30" width="179"><br><img src="{{ RETRO_STATIC_URL }}pad.gif" height="50"></td> + <td colspan="2" style="text-align: center; width: 50%;"><img src="{% retro_static year "frontComponents.gif" %}" height="30" width="179"><br><img src="{% retro_static year "pad.gif" %}" height="50"></td> <td colspan="2" style="text-align: center; width: 100%;" align="right" valign="top"> <table class="boxSoftSmall" style="width: 250px;" align="right" cellspacing="3"> <tbody><tr> @@ -330,7 +330,7 @@ March 26 20:54 </span></td> </tr> </tbody></table> </td></tr><tr><td> - <img src="{{ RETRO_STATIC_URL }}pad.gif" height="30"><br> + <img src="{% retro_static year "pad.gif" %}" height="30"><br> <span class="f3">Release Package Lists</span> <table style="width: 90%;" align="right"> <tbody><tr> @@ -360,7 +360,7 @@ March 26 20:54 </span></td> </td> </tr> <tr> - <td colspan="4"><img src="{{ RETRO_STATIC_URL }}pad.gif" height="10" width="1"></td> + <td colspan="4"><img src="{% retro_static year "pad.gif" %}" height="10" width="1"></td> </tr> </tbody></table> </td> @@ -378,7 +378,7 @@ March 26 20:54 </span></td> <td class="boxSoft"> <table style="width: 100%;" cellspacing="4"> <tbody><tr> - <td colspan="2" style="text-align: center; width: 50%;"><img src="{{ RETRO_STATIC_URL }}frontNews.gif" height="30" width="179"><br><img src="{{ RETRO_STATIC_URL }}pad.gif" height="50"></td> + <td colspan="2" style="text-align: center; width: 50%;"><img src="{% retro_static year "frontNews.gif" %}" height="30" width="179"><br><img src="{% retro_static year "pad.gif" %}" height="50"></td> <td colspan="2" style="text-align: center; width: 50%;" align="right" valign="top"> <table class="boxSoftSmall" style="width: 250px;" align="right" cellspacing="3"> <tbody><tr> @@ -455,7 +455,7 @@ March 26 20:54 </span></td> </td> </tr> <tr> - <td colspan="4"><img src="{{ RETRO_STATIC_URL }}pad.gif" height="10" width="1"></td> + <td colspan="4"><img src="{% retro_static year "pad.gif" %}" height="10" width="1"></td> </tr> </tbody></table> </td> diff --git a/retro/templates/retro/index-20050328.html b/retro/templates/retro/index-20050328.html index 2ac8c58..8b4f9e7 100644 --- a/retro/templates/retro/index-20050328.html +++ b/retro/templates/retro/index-20050328.html @@ -1,10 +1,10 @@ -<html><head> +{% load retro_static from retro %}<html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Arch Linux</title> <meta name="keywords" content="linux, linux distribution, arch, pacman, i686-optimized, distribution, open source, free, packages, server, daemon, network, systems"> -<link rel="stylesheet" type="text/css" href="{{ RETRO_STATIC_URL }}fonts.css"> -<link rel="stylesheet" type="text/css" href="{{ RETRO_STATIC_URL }}containers.css"> -<link rel="shortcut icon" href="{{ RETRO_STATIC_URL }}favicon.ico"> +<link rel="stylesheet" type="text/css" href="{% retro_static year "fonts.css" %}"> +<link rel="stylesheet" type="text/css" href="{% retro_static year "containers.css" %}"> +<link rel="shortcut icon" href="{% retro_static year "favicon.ico" %}"> </head> <body> <table style="background-color: rgb(0, 0, 0); width: 100%;" cellspacing="0"> @@ -15,7 +15,7 @@ <td class="headerFill" colspan="2"> <table width="100%"> <tbody><tr> - <td class="headerDisplay"><img src="{{ RETRO_STATIC_URL }}logoTop.png"></td> + <td class="headerDisplay"><img src="{% retro_static year "logoTop.png" %}"></td> <td class="headerDisplay" align="right"> </td> </tr> @@ -284,18 +284,18 @@ </tr> <tr> <td style="background-color: rgb(238, 238, 238);" align="center"><br> -<a href="http://web.archive.org/web/20050328032247/http://www.archlinux.org/"><img src="{{ RETRO_STATIC_URL }}button.png" alt="Arch Linux" border="0"></a> +<a href="http://web.archive.org/web/20050328032247/http://www.archlinux.org/"><img src="{% retro_static year "button.png" %}" alt="Arch Linux" border="0"></a> </td> </tr> <tr> <td style="background-color: rgb(238, 238, 238);" align="center"><br> -<a href="http://web.archive.org/web/20050328032247/http://sourceforge.net/"><img src="{{ RETRO_STATIC_URL }}sflogo.png" alt="SourceForge Logo" border="0" height="31" width="105"></a> +<a href="http://web.archive.org/web/20050328032247/http://sourceforge.net/"><img src="{% retro_static year "sflogo.png" %}" alt="SourceForge Logo" border="0" height="31" width="105"></a> </td> </tr> <tr> <td style="background-color: rgb(238, 238, 238);" align="center"><br> <!-- paypal code --> -<img src="{{ RETRO_STATIC_URL }}x-click-butcc-donate.gif" alt="Make payments with PayPal - it's fast, free and secure!" style="background: none repeat scroll 0% 0% transparent; border: medium none;" border="0"> +<img src="{% retro_static year "x-click-butcc-donate.gif" %}" alt="Make payments with PayPal - it's fast, free and secure!" style="background: none repeat scroll 0% 0% transparent; border: medium none;" border="0"> <br> <span class="f4">All money goes directly to server costs</span> </td> @@ -320,7 +320,7 @@ <td class="boxSoft"> <table style="width: 100%;" cellspacing="4"> <tbody><tr> - <td colspan="2" style="text-align: center; width: 50%;"><img src="{{ RETRO_STATIC_URL }}frontComponents.gif" height="30" width="179"><br><img src="{{ RETRO_STATIC_URL }}pad.gif" height="50"></td> + <td colspan="2" style="text-align: center; width: 50%;"><img src="{% retro_static year "frontComponents.gif" %}" height="30" width="179"><br><img src="{% retro_static year "pad.gif" %}" height="50"></td> <td colspan="2" style="text-align: center; width: 100%;" align="right" valign="top"> <table class="boxSoftSmall" style="width: 250px;" align="right" cellspacing="3"> <tbody><tr> @@ -401,7 +401,7 @@ March 24 05:13 </span></td> </tr> </tbody></table> </td></tr><tr><td> - <img src="{{ RETRO_STATIC_URL }}pad.gif" height="30"><br> + <img src="{% retro_static year "pad.gif" %}" height="30"><br> <span class="f3">Release Package Lists</span> <table style="width: 90%;" align="right"> <tbody><tr> @@ -434,7 +434,7 @@ March 24 05:13 </span></td> </td> </tr> <tr> - <td colspan="4"><img src="{{ RETRO_STATIC_URL }}pad.gif" height="10" width="1"></td> + <td colspan="4"><img src="{% retro_static year "pad.gif" %}" height="10" width="1"></td> </tr> </tbody></table> </td> @@ -452,7 +452,7 @@ March 24 05:13 </span></td> <td class="boxSoft"> <table style="width: 100%;" cellspacing="4"> <tbody><tr> - <td colspan="2" style="text-align: center; width: 50%;"><img src="{{ RETRO_STATIC_URL }}frontNews.gif" height="30" width="179"><br><img src="{{ RETRO_STATIC_URL }}pad.gif" height="50"></td> + <td colspan="2" style="text-align: center; width: 50%;"><img src="{% retro_static year "frontNews.gif" %}" height="30" width="179"><br><img src="{% retro_static year "pad.gif" %}" height="50"></td> <td colspan="2" style="text-align: center; width: 50%;" align="right" valign="top"> <table class="boxSoftSmall" style="width: 250px;" align="right" cellspacing="3"> <tbody><tr> @@ -578,7 +578,7 @@ You can enab...</span></div> </span> </td> </tr> <tr> - <td colspan="4"><img src="{{ RETRO_STATIC_URL }}pad.gif" height="10" width="1"></td> + <td colspan="4"><img src="{% retro_static year "pad.gif" %}" height="10" width="1"></td> </tr> </tbody></table> </td> diff --git a/retro/templates/retro/index-20060328.html b/retro/templates/retro/index-20060328.html index 6f39c0e..f45024d 100644 --- a/retro/templates/retro/index-20060328.html +++ b/retro/templates/retro/index-20060328.html @@ -1,12 +1,12 @@ -<html><head> +{% load retro_static from retro %}<html><head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>Arch Linux</title> <meta name="keywords" content="linux, linux distribution, arch, pacman, i686-optimized, distribution, open source, free, packages, server, daemon, network, systems"> -<link rel="stylesheet" type="text/css" href="{{ RETRO_STATIC_URL }}fonts.css"> -<link rel="stylesheet" type="text/css" href="{{ RETRO_STATIC_URL }}containers.css"> +<link rel="stylesheet" type="text/css" href="{% retro_static year "fonts.css" %}"> +<link rel="stylesheet" type="text/css" href="{% retro_static year "containers.css" %}"> <link rel="alternate" type="application/rss+xml" title="Arch Linux News Feed" href="http://web.archive.org/web/20060328003102/http://www.archlinux.org/rdf_news.php"> <link rel="alternate" type="application/rss+xml" title="Arch Linux Package Updates" href="http://web.archive.org/web/20060328003102/http://www.archlinux.org/rdf_feed.php"> -<link rel="shortcut icon" href="{{ RETRO_STATIC_URL }}favicon.ico"> +<link rel="shortcut icon" href="{% retro_static year "favicon.ico" %}"> </head> <body> <table style="background-color: rgb(0, 0, 0); width: 100%;" cellspacing="0"> @@ -17,7 +17,7 @@ <td class="headerFill" colspan="2"> <table width="100%"> <tbody><tr> - <td class="headerDisplay"><img src="{{ RETRO_STATIC_URL }}logoTop.png"></td> + <td class="headerDisplay"><img src="{% retro_static year "logoTop.png" %}"></td> <td class="headerDisplay" align="right"> </td> </tr> @@ -317,13 +317,13 @@ </tr> <tr> <td style="background-color: rgb(238, 238, 238);" align="center"><br> - <a href="http://web.archive.org/web/20060328003102/http://www.archlinux.org/"><img src="{{ RETRO_STATIC_URL }}button.png" alt="Arch Linux" border="0"></a> + <a href="http://web.archive.org/web/20060328003102/http://www.archlinux.org/"><img src="{% retro_static year "button.png" %}" alt="Arch Linux" border="0"></a> </td> </tr> <tr> <td style="background-color: rgb(238, 238, 238);" align="center"><br> <!-- paypal code --> -<img src="{{ RETRO_STATIC_URL }}x-click-butcc-donate.gif" alt="Make payments with PayPal - it's fast, free and secure!" style="background: none repeat scroll 0% 0% transparent; border: medium none;" border="0"> +<img src="{% retro_static year "x-click-butcc-donate.gif" %}" alt="Make payments with PayPal - it's fast, free and secure!" style="background: none repeat scroll 0% 0% transparent; border: medium none;" border="0"> </td> </tr> <tr> @@ -346,7 +346,7 @@ <td class="boxSoft"> <table style="width: 100%;" cellspacing="4"> <tbody><tr> - <td colspan="2" style="text-align: center; width: 50%;"><img src="{{ RETRO_STATIC_URL }}frontComponents.gif" height="30" width="179"><br><img src="{{ RETRO_STATIC_URL }}pad.gif" height="50"></td> + <td colspan="2" style="text-align: center; width: 50%;"><img src="{% retro_static year "frontComponents.gif" %}" height="30" width="179"><br><img src="{% retro_static year "pad.gif" %}" height="50"></td> <td colspan="2" style="text-align: center; width: 100%;" align="right" valign="top"> <table class="boxSoftSmall" style="width: 250px;" align="right" cellspacing="3"> <tbody><tr> @@ -427,7 +427,7 @@ March 27 13:34 </span></td> </tr> </tbody></table> </td></tr><tr><td> - <img src="{{ RETRO_STATIC_URL }}pad.gif" height="30"><br> + <img src="{% retro_static year "pad.gif" %}" height="30"><br> <span class="f3">Release Package Lists</span> <table style="width: 90%;" align="right"> <tbody><tr> @@ -472,7 +472,7 @@ March 27 13:34 </span></td> </td> </tr> <tr> - <td colspan="4"><img src="{{ RETRO_STATIC_URL }}pad.gif" height="10" width="1"></td> + <td colspan="4"><img src="{% retro_static year "pad.gif" %}" height="10" width="1"></td> </tr> </tbody></table> </td> @@ -490,7 +490,7 @@ March 27 13:34 </span></td> <td class="boxSoft"> <table style="width: 100%;" cellspacing="4"> <tbody><tr> - <td colspan="2" style="text-align: center; width: 50%;"><img src="{{ RETRO_STATIC_URL }}frontNews.gif" height="30" width="179"><br><img src="{{ RETRO_STATIC_URL }}pad.gif" height="50"></td> + <td colspan="2" style="text-align: center; width: 50%;"><img src="{% retro_static year "frontNews.gif" %}" height="30" width="179"><br><img src="{% retro_static year "pad.gif" %}" height="50"></td> <td colspan="2" style="text-align: center; width: 50%;" align="right" valign="top"> <table class="boxSoftSmall" style="width: 250px;" align="right" cellspacing="3"> <tbody><tr> @@ -622,7 +622,7 @@ Xorg7 has finally moved into Current. The upgrade is pretty sm...</span></div> </td> </tr> <tr> - <td colspan="4"><img src="{{ RETRO_STATIC_URL }}pad.gif" height="10" width="1"></td> + <td colspan="4"><img src="{% retro_static year "pad.gif" %}" height="10" width="1"></td> </tr> </tbody></table> </td> diff --git a/retro/templates/retro/index-20070324.html b/retro/templates/retro/index-20070324.html index c473992..1445372 100644 --- a/retro/templates/retro/index-20070324.html +++ b/retro/templates/retro/index-20070324.html @@ -1,10 +1,10 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1-strict.dtd "> +{% load retro_static from retro %}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1-strict.dtd "> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <title>Arch Linux</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> - <link rel="stylesheet" href="{{ RETRO_STATIC_URL }}arch.css"> - <link rel="icon" href="{{ RETRO_STATIC_URL }}favicon.ico" type="image/x-icon"> - <link rel="shortcut icon" href="{{ RETRO_STATIC_URL }}favicon.ico" type="image/x-icon"> + <link rel="stylesheet" href="{% retro_static year "arch.css" %}"> + <link rel="icon" href="{% retro_static year "favicon.ico" %}" type="image/x-icon"> + <link rel="shortcut icon" href="{% retro_static year "favicon.ico" %}" type="image/x-icon"> <link rel="alternate" type="application/rss+xml" title="Arch Linux News Updates" href="http://web.archive.org/web/20070324064759/http://archlinux.org/feeds/news/"> <link rel="alternate" type="application/rss+xml" title="Arch Linux Package Updates" href="http://web.archive.org/web/20070324064759/http://archlinux.org/feeds/packages/"> @@ -14,8 +14,8 @@ <div id="head_container"> <div id="title"> - <div id="logo"><a href="http://web.archive.org/web/20070324064759/http://archlinux.org/"><img src="{{ RETRO_STATIC_URL }}logo.png" alt="Arch Logo"></a></div> - <a href="http://web.archive.org/web/20070324064759/http://archlinux.org/"><img src="{{ RETRO_STATIC_URL }}title.png" alt="Arch Linux"></a> + <div id="logo"><a href="http://web.archive.org/web/20070324064759/http://archlinux.org/"><img src="{% retro_static year "logo.png" %}" alt="Arch Logo"></a></div> + <a href="http://web.archive.org/web/20070324064759/http://archlinux.org/"><img src="{% retro_static year "title.png" %}" alt="Arch Linux"></a> </div> <div style="float: right; color: #eeeeee; font-size: small"> @@ -51,7 +51,7 @@ <table width="100%"> <tbody><tr> <td><h3>Recent Updates</h3></td> - <td style="vertical-align: top; text-align: right;"><a href="http://web.archive.org/web/20070324064759/http://archlinux.org/feeds/packages/"><img src="{{ RETRO_STATIC_URL }}rss.png" alt="RSS Feed"></a></td> + <td style="vertical-align: top; text-align: right;"><a href="http://web.archive.org/web/20070324064759/http://archlinux.org/feeds/packages/"><img src="{% retro_static year "rss.png" %}" alt="RSS Feed"></a></td> </tr> <tr> @@ -264,7 +264,7 @@ </div> <br><br> <div style="float:right;position:relative;bottom:-25px"> - <a href="http://web.archive.org/web/20070324064759/http://archlinux.org/feeds/news/"><img src="{{ RETRO_STATIC_URL }}rss.png" alt="RSS Feed"></a> + <a href="http://web.archive.org/web/20070324064759/http://archlinux.org/feeds/news/"><img src="{% retro_static year "rss.png" %}" alt="RSS Feed"></a> </div> <h2 class="title">Latest News</h2> <div> @@ -376,7 +376,7 @@ MODULES= in rc.conf - Recent ...</p> </div> <div class="foot"> Copyright © 2002-2006, Judd Vinet <<a href="mailto:jvinet@zeroflux.org">jvinet@zeroflux.org</a>><br><br> - <img src="{{ RETRO_STATIC_URL }}button.png" alt="Arch Linux"> + <img src="{% retro_static year "button.png" %}" alt="Arch Linux"> </div> </body></html> diff --git a/retro/templates/retro/index-20080311.html b/retro/templates/retro/index-20080311.html index d48a632..89a7de9 100644 --- a/retro/templates/retro/index-20080311.html +++ b/retro/templates/retro/index-20080311.html @@ -1,10 +1,10 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1-strict.dtd "> +{% load retro_static from retro %}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1-strict.dtd "> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <title>Arch Linux</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> - <link rel="stylesheet" href="{{ RETRO_STATIC_URL }}arch.css"> - <link rel="icon" href="{{ RETRO_STATIC_URL }}favicon.ico" type="image/x-icon"> - <link rel="shortcut icon" href="{{ RETRO_STATIC_URL }}favicon.ico" type="image/x-icon"> + <link rel="stylesheet" href="{% retro_static year "arch.css" %}"> + <link rel="icon" href="{% retro_static year "favicon.ico" %}" type="image/x-icon"> + <link rel="shortcut icon" href="{% retro_static year "favicon.ico" %}" type="image/x-icon"> <link rel="alternate" type="application/rss+xml" title="Arch Linux News Updates" href="http://web.archive.org/web/20080311110003/http://www.archlinux.org/feeds/news/"> <link rel="alternate" type="application/rss+xml" title="Arch Linux Package Updates" href="http://web.archive.org/web/20080311110003/http://www.archlinux.org/feeds/packages/"> @@ -14,8 +14,8 @@ <div id="head_container"> <div id="title"> - <div id="logo"><a href="http://web.archive.org/web/20070324064759/http://archlinux.org/"><img src="{{ RETRO_STATIC_URL }}logo.png" alt="Arch Logo"></a></div> - <a href="http://web.archive.org/web/20070324064759/http://archlinux.org/"><img src="{{ RETRO_STATIC_URL }}title.png" alt="Arch Linux"></a> + <div id="logo"><a href="http://web.archive.org/web/20070324064759/http://archlinux.org/"><img src="{% retro_static year "logo.png" %}" alt="Arch Logo"></a></div> + <a href="http://web.archive.org/web/20070324064759/http://archlinux.org/"><img src="{% retro_static year "title.png" %}" alt="Arch Linux"></a> </div> <div id="main_nav"> <ul> @@ -43,7 +43,7 @@ <table width="100%"> <tbody><tr> <td><h3>Recent Updates</h3></td> - <td style="vertical-align: top; text-align: right;"><a href="http://web.archive.org/web/20080311110003/http://www.archlinux.org/feeds/packages/"><img src="{{ RETRO_STATIC_URL }}rss.png" alt="RSS Feed"></a></td> + <td style="vertical-align: top; text-align: right;"><a href="http://web.archive.org/web/20080311110003/http://www.archlinux.org/feeds/packages/"><img src="{% retro_static year "rss.png" %}" alt="RSS Feed"></a></td> </tr> <tr> @@ -272,7 +272,7 @@ </div> <br><br> <div style="float:right;position:relative;bottom:-25px"> - <a href="http://web.archive.org/web/20080311110003/http://www.archlinux.org/feeds/news/"><img src="{{ RETRO_STATIC_URL }}rss.png" alt="RSS Feed"></a> + <a href="http://web.archive.org/web/20080311110003/http://www.archlinux.org/feeds/news/"><img src="{% retro_static year "rss.png" %}" alt="RSS Feed"></a> </div> <h2 class="title">Latest News</h2> <div> diff --git a/retro/templates/retro/index-20090327.html b/retro/templates/retro/index-20090327.html index 70c6473..e780d78 100644 --- a/retro/templates/retro/index-20090327.html +++ b/retro/templates/retro/index-20090327.html @@ -1,10 +1,10 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +{% load retro_static from retro %}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <title>Arch Linux</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> - <link rel="stylesheet" href="{{ RETRO_STATIC_URL }}arch.css"> - <link rel="icon" href="{{ RETRO_STATIC_URL }}favicon.ico" type="image/x-icon"> - <link rel="shortcut icon" href="{{ RETRO_STATIC_URL }}favicon.ico" type="image/x-icon"> + <link rel="stylesheet" href="{% retro_static year "arch.css" %}"> + <link rel="icon" href="{% retro_static year "favicon.ico" %}" type="image/x-icon"> + <link rel="shortcut icon" href="{% retro_static year "favicon.ico" %}" type="image/x-icon"> <link rel="alternate" type="application/rss+xml" title="Arch Linux News Updates" href="http://web.archive.org/web/20090327235558/http://www.archlinux.org/feeds/news/"> <link rel="alternate" type="application/rss+xml" title="Arch Linux Package Updates" href="http://web.archive.org/web/20090327235558/http://www.archlinux.org/feeds/packages/"> @@ -42,7 +42,7 @@ <table width="100%"> <tbody><tr> <td><h3>Recent Updates</h3></td> - <td style="vertical-align: top; text-align: right;"><a href="http://web.archive.org/web/20090327235558/http://www.archlinux.org/feeds/packages/"><img src="{{ RETRO_STATIC_URL }}rss.png" alt="RSS Feed"></a></td> + <td style="vertical-align: top; text-align: right;"><a href="http://web.archive.org/web/20090327235558/http://www.archlinux.org/feeds/packages/"><img src="{% retro_static year "rss.png" %}" alt="RSS Feed"></a></td> </tr> <tr> @@ -156,7 +156,7 @@ <li><a href="http://web.archive.org/web/20090327235558/http://www.archlinux.org/svn/">SVN</a></li> <li><a href="http://web.archive.org/web/20090327235558/http://projects.archlinux.org/">Projects</a></li> </ul> - <a href="http://web.archive.org/web/20090327235558/http://www.sevenl.net/" title="SevenL Networks - Dedicated Arch Linux servers"><img src="{{ RETRO_STATIC_URL }}sevenl_button.png" class="" title="A big Thank You to SevenL Networks for their generous contribution" alt="We would like to express our thanks to SevenL Networks for their generous contribution"></a> + <a href="http://web.archive.org/web/20090327235558/http://www.sevenl.net/" title="SevenL Networks - Dedicated Arch Linux servers"><img src="{% retro_static year "sevenl_button.png" %}" class="" title="A big Thank You to SevenL Networks for their generous contribution" alt="We would like to express our thanks to SevenL Networks for their generous contribution"></a> </div> <div class="left"> @@ -184,7 +184,7 @@ </div> <br><br> <div style="float:right;position:relative;bottom:-25px"> - <a href="http://web.archive.org/web/20090327235558/http://www.archlinux.org/feeds/news/"><img src="{{ RETRO_STATIC_URL }}rss.png" alt="RSS Feed"></a> + <a href="http://web.archive.org/web/20090327235558/http://www.archlinux.org/feeds/news/"><img src="{% retro_static year "rss.png" %}" alt="RSS Feed"></a> </div> <h2 class="title">Latest News</h2> <div> diff --git a/retro/templates/retro/index-20100208.html b/retro/templates/retro/index-20100208.html index 1d48824..b30d4cb 100644 --- a/retro/templates/retro/index-20100208.html +++ b/retro/templates/retro/index-20100208.html @@ -1,10 +1,10 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +{% load retro_static from retro %}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <title>Arch Linux</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> - <link rel="stylesheet" type="text/css" href="{{ RETRO_STATIC_URL }}arch.css"> - <link rel="icon" type="image/x-icon" href="{{ RETRO_STATIC_URL }}favicon.ico"> - <link rel="shortcut icon" type="image/x-icon" href="{{ RETRO_STATIC_URL }}favicon.ico"> + <link rel="stylesheet" type="text/css" href="{% retro_static year "arch.css" %}"> + <link rel="icon" type="image/x-icon" href="{% retro_static year "favicon.ico" %}"> + <link rel="shortcut icon" type="image/x-icon" href="{% retro_static year "favicon.ico" %}"> <link rel="alternate" type="application/rss+xml" title="Arch Linux News Updates" href="http://web.archive.org/web/20100208061823/http://www.archlinux.org/feeds/news/"> <link rel="alternate" type="application/rss+xml" title="Arch Linux Package Updates" href="http://web.archive.org/web/20100208061823/http://www.archlinux.org/feeds/packages/"> @@ -46,7 +46,7 @@ <table width="100%"> <tbody><tr> <td><h3>Recent Updates</h3></td> - <td style="vertical-align: top; text-align: right;"><a href="http://web.archive.org/web/20100208061823/http://www.archlinux.org/feeds/packages/"><img src="{{ RETRO_STATIC_URL }}rss.png" alt="RSS Feed"></a></td> + <td style="vertical-align: top; text-align: right;"><a href="http://web.archive.org/web/20100208061823/http://www.archlinux.org/feeds/packages/"><img src="{% retro_static year "rss.png" %}" alt="RSS Feed"></a></td> </tr> <tr> @@ -165,8 +165,8 @@ <li><a href="http://web.archive.org/web/20100208061823/http://www.archlinux.org/svn/">SVN</a></li> <li><a href="http://web.archive.org/web/20100208061823/http://projects.archlinux.org/">Projects</a></li> </ul> - <a href="http://web.archive.org/web/20100208061823/http://www.velocitynetwork.net/?hosting_by=ArchLinux" title="velocity network"><img src="{{ RETRO_STATIC_URL }}vnet_button.png" class="" title="" alt="velocity network - it's about time"></a> - <a href="http://web.archive.org/web/20100208061823/https://www.sevenl.net/?utm_source=archlinux-org&utm_medium=sponsored-banner&utm_campaign=thanks-to-sevenl" title="SevenL Networks - Dedicated Arch Linux servers"><img src="{{ RETRO_STATIC_URL }}sevenl_button.png" class="" title="A big Thank You to SevenL Networks for their generous contribution" alt="We would like to express our thanks to SevenL Networks for their generous contribution"></a> + <a href="http://web.archive.org/web/20100208061823/http://www.velocitynetwork.net/?hosting_by=ArchLinux" title="velocity network"><img src="{% retro_static year "vnet_button.png" %}" class="" title="" alt="velocity network - it's about time"></a> + <a href="http://web.archive.org/web/20100208061823/https://www.sevenl.net/?utm_source=archlinux-org&utm_medium=sponsored-banner&utm_campaign=thanks-to-sevenl" title="SevenL Networks - Dedicated Arch Linux servers"><img src="{% retro_static year "sevenl_button.png" %}" class="" title="A big Thank You to SevenL Networks for their generous contribution" alt="We would like to express our thanks to SevenL Networks for their generous contribution"></a> </div> <div class="left"> @@ -194,7 +194,7 @@ </div> <br><br> <div style="float:right;position:relative;bottom:-25px"> - <a href="http://web.archive.org/web/20100208061823/http://www.archlinux.org/feeds/news/"><img src="{{ RETRO_STATIC_URL }}rss.png" alt="RSS Feed"></a> + <a href="http://web.archive.org/web/20100208061823/http://www.archlinux.org/feeds/news/"><img src="{% retro_static year "rss.png" %}" alt="RSS Feed"></a> </div> <h2 class="title">Latest News</h2> <div> diff --git a/retro/templates/retro/index-20110212.html b/retro/templates/retro/index-20110212.html index e304a72..db4dfa4 100644 --- a/retro/templates/retro/index-20110212.html +++ b/retro/templates/retro/index-20110212.html @@ -1,11 +1,11 @@ -<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> +{% load retro_static from retro %}<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"><head> <title>Arch Linux</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> - <link rel="stylesheet" type="text/css" href="{{ RETRO_STATIC_URL }}archweb.css" media="screen, projection"> - <link rel="stylesheet" type="text/css" href="{{ RETRO_STATIC_URL }}archweb-print.css" media="print"> - <link rel="icon" type="image/x-icon" href="{{ RETRO_STATIC_URL }}favicon.ico"> - <link rel="shortcut icon" type="image/x-icon" href="{{ RETRO_STATIC_URL }}favicon.ico"> + <link rel="stylesheet" type="text/css" href="{% retro_static year "archweb.css" %}" media="screen, projection"> + <link rel="stylesheet" type="text/css" href="{% retro_static year "archweb-print.css" %}" media="print"> + <link rel="icon" type="image/x-icon" href="{% retro_static year "favicon.ico" %}"> + <link rel="shortcut icon" type="image/x-icon" href="{% retro_static year "favicon.ico" %}"> <link rel="search" type="application/opensearchdescription+xml" href="http://web.archive.org/web/20110212035546/http://www.archlinux.org/opensearch/packages/" title="Arch Linux Packages"> <link rel="alternate" type="application/rss+xml" title="Arch Linux News Updates" href="http://web.archive.org/web/20110212035546/http://www.archlinux.org/feeds/news/"> @@ -71,7 +71,7 @@ <h3>Latest News <span class="more">(<a href="http://web.archive.org/web/20110212035546/http://www.archlinux.org/news/" title="Browse the news archives">more</a>)</span></h3> - <a href="http://web.archive.org/web/20110212035546/http://www.archlinux.org/feeds/news/" title="Arch News RSS Feed" class="rss-icon"><img src="{{ RETRO_STATIC_URL }}rss.png" alt="RSS Feed"></a> + <a href="http://web.archive.org/web/20110212035546/http://www.archlinux.org/feeds/news/" title="Arch News RSS Feed" class="rss-icon"><img src="{% retro_static year "rss.png" %}" alt="RSS Feed"></a> <h4><a href="http://web.archive.org/web/20110212035546/http://www.archlinux.org/news/mysql-55-is-now-in-extra/" title="View full article: MySQL 5.5 is now in [extra]">MySQL 5.5 is now in [extra]</a></h4> @@ -199,7 +199,7 @@ use the proper directories.</p></div> <h3>Recent Updates <span class="more">(<a href="http://web.archive.org/web/20110212035546/http://www.archlinux.org/packages/?sort=-last_update" title="Browse all of the latest packages">more</a>)</span></h3> - <a href="http://web.archive.org/web/20110212035546/http://www.archlinux.org/feeds/packages/" title="Arch Package Updates RSS Feed" class="rss-icon"><img src="{{ RETRO_STATIC_URL }}rss.png" alt="RSS Feed"></a> + <a href="http://web.archive.org/web/20110212035546/http://www.archlinux.org/feeds/packages/" title="Arch Package Updates RSS Feed" class="rss-icon"><img src="{% retro_static year "rss.png" %}" alt="RSS Feed"></a> <table> @@ -413,13 +413,13 @@ use the proper directories.</p></div> <div id="arch-sponsors" class="widget"> <a href="http://web.archive.org/web/20110212035546/http://www.velocitynetwork.net/?hosting_by=ArchLinux" title="Velocity Network"> - <img src="{{ RETRO_STATIC_URL }}vnet_button.png" alt="Velocity Network - It's about time"> + <img src="{% retro_static year "vnet_button.png" %}" alt="Velocity Network - It's about time"> </a> <a href="http://web.archive.org/web/20110212035546/https://www.sevenl.net/?utm_source=archlinux-org&utm_medium=sponsored-banner&utm_campaign=thanks-to-sevenl" title="SevenL Networks - Dedicated Arch Linux servers"> - <img src="{{ RETRO_STATIC_URL }}sevenl_button.png" title="A big Thank You to SevenL Networks for their generous contribution" alt="We would like to express our thanks to SevenL Networks for their generous contribution"> + <img src="{% retro_static year "sevenl_button.png" %}" title="A big Thank You to SevenL Networks for their generous contribution" alt="We would like to express our thanks to SevenL Networks for their generous contribution"> </a> <a href="http://web.archive.org/web/20110212035546/http://www.airvm.com/ArchLinux" title="AirVM.com - Your Green Technology Partner"> - <img src="{{ RETRO_STATIC_URL }}airvm_button.png" title="AirVM.com - Your Green Technology Partner" alt="AirVM.com - Your Green Technology Partner"> + <img src="{% retro_static year "airvm_button.png" %}" title="AirVM.com - Your Green Technology Partner" alt="AirVM.com - Your Green Technology Partner"> </a> </div> diff --git a/retro/views.py b/retro/views.py index 5ce6d19..3bc59e9 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) |