From 20198e67ff37565932bc9b036bb678e8243d46c5 Mon Sep 17 00:00:00 2001
From: Dan McGee
Date: Sat, 24 Mar 2012 12:24:47 -0500
Subject: Begin removal of cdnprefix tag
This starts the removal of this code I wrote a while ago in favor of the
now core Django static files application and the helpful static template
tag.
Signed-off-by: Dan McGee
---
templates/base.html | 16 ++++++++--------
templates/public/donate.html | 14 +++++++-------
templates/public/download.html | 5 +++--
templates/public/index.html | 21 +++++++++++----------
4 files changed, 29 insertions(+), 27 deletions(-)
(limited to 'templates')
diff --git a/templates/base.html b/templates/base.html
index 79c7cc92..b8a5be46 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -1,15 +1,15 @@
-{% load url from future %}
+{% load url from future %}{% load static from staticfiles %}
{% block title %}Arch Linux{% endblock %}
-
-
-
-
-
-
-
+
+
+
+
+
+
+
{% block head %}{% endblock %}
diff --git a/templates/public/donate.html b/templates/public/donate.html
index 76fd0aa1..3b3ee108 100644
--- a/templates/public/donate.html
+++ b/templates/public/donate.html
@@ -1,6 +1,6 @@
{% extends "base.html" %}
{% load cache %}
-{% load cdn %}
+{% load static from staticfiles %}
{% block title %}Arch Linux - Donate{% endblock %}
@@ -31,7 +31,7 @@ Monetary donations
as how donations work.
-
+
Commercial sponsors and contributions
@@ -41,7 +41,7 @@ Commercial sponsors and contributions
in a server rack, bandwidth, and electricity for our main server.
We also wish to extend a special Thank You to Commercial sponsors and contributions
head over to their website for more details.
@@ -60,15 +60,15 @@ Commercial sponsors and contributions
title="AirVM.com">AirVM.com for contributing a VMWare-based Virtual Machine.
Past donors
- {% for donor in donors %}
- - {{ donor.name }}
{% endfor %}
+{% for donor in donors %}
+- {{ donor.name }}
{% endfor %}
diff --git a/templates/public/download.html b/templates/public/download.html
index d244ec75..a3ff2a37 100644
--- a/templates/public/download.html
+++ b/templates/public/download.html
@@ -1,6 +1,7 @@
{% extends "base.html" %}
-{% load cache cdn %}
+{% load cache %}
{% load url from future %}
+{% load static from staticfiles %}
{% block title %}Arch Linux - Downloads{% endblock %}
{% block navbarclass %}anb-download{% endblock %}
@@ -125,7 +126,7 @@ Test ISO Info
title="Release Engineering ISO download">Download snapshots
Boot latest snapshots over the network
-
+
Feedback
diff --git a/templates/public/index.html b/templates/public/index.html
index 53ccd2d2..04c4795d 100644
--- a/templates/public/index.html
+++ b/templates/public/index.html
@@ -1,6 +1,7 @@
{% extends "base.html" %}
-{% load markup cache cdn %}
+{% load markup cache %}
{% load url from future %}
+{% load static from staticfiles %}
{% block head %}
@@ -42,7 +43,7 @@
+ class="rss-icon">
{% for news in news_updates %}
{% if forloop.counter0 < 5 %}
@@ -95,7 +96,7 @@ Recent Updates (more)
+ class="rss-icon">
{% for update in pkg_updates %}
@@ -156,7 +157,7 @@ Tools
title="Check the status of all known mirrors">Mirror Status
Differences Reports
-
+
Development
@@ -176,7 +177,7 @@ Development
title="Releng Testbuild Feedback">Releng Testbuild Feedback
Visualizations
-
+
More Resources
@@ -184,7 +185,7 @@ More Resources