Commit 20198e67 authored by Dan McGee's avatar Dan McGee
Browse files

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: default avatarDan McGee <dan@archlinux.org>
parent 60c8c00c
{% load url from future %}<!DOCTYPE html>
{% load url from future %}{% load static from staticfiles %}<!DOCTYPE html>
<html lang="en">
<head>
<title>{% block title %}Arch Linux{% endblock %}</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}archweb.css" media="screen, projection" />
<link rel="stylesheet" type="text/css" href="{{ STATIC_URL }}archweb-print.css" media="print" />
<link rel="icon" type="image/x-icon" href="{{ STATIC_URL }}favicon.ico" />
<link rel="shortcut icon" type="image/x-icon" href="{{ STATIC_URL }}favicon.ico" />
<link rel="apple-touch-icon" href="{{ STATIC_URL }}logos/apple-touch-icon-57x57.png" />
<link rel="apple-touch-icon" sizes="72x72" href="{{ STATIC_URL }}logos/apple-touch-icon-72x72.png" />
<link rel="apple-touch-icon" sizes="114x114" href="{{ STATIC_URL }}logos/apple-touch-icon-114x114.png" />
<link rel="stylesheet" type="text/css" href="{% static "archweb.css" %}" media="screen, projection" />
<link rel="stylesheet" type="text/css" href="{% static "archweb-print.css" %}" media="print" />
<link rel="icon" type="image/x-icon" href="{% static "favicon.ico" %}" />
<link rel="shortcut icon" type="image/x-icon" href="{% static "favicon.ico" %}" />
<link rel="apple-touch-icon" href="{% static "logos/apple-touch-icon-57x57.png" %}" />
<link rel="apple-touch-icon" sizes="72x72" href="{% static "logos/apple-touch-icon-72x72.png" %}" />
<link rel="apple-touch-icon" sizes="114x114" href="{% static "logos/apple-touch-icon-114x114.png" %}" />
<link rel="search" type="application/opensearchdescription+xml" href="{% url 'opensearch-packages' as osp %}{{ osp }}" title="Arch Linux Packages" />
{% block head %}{% endblock %}
</head>
......
{% extends "base.html" %}
{% load cache %}
{% load cdn %}
{% load static from staticfiles %}
{% block title %}Arch Linux - Donate{% endblock %}
......@@ -31,7 +31,7 @@ <h3>Monetary donations</h3>
as <a href="http://www.spi-inc.org/donations/">how donations work</a>.</p>
<a href="https://co.clickandpledge.com/Default.aspx?WID=47294">
<img width="210" height="34" src="{% cdnprefix %}/media/CP_EN_BK_S_001.gif" alt="Donate via Click&amp;Pledge to Arch Linux" title="Donate via Click&amp;Pledge to Arch Linux"/>
<img width="210" height="34" src="{% static "CP_EN_BK_S_001.gif" %}" alt="Donate via Click&amp;Pledge to Arch Linux" title="Donate via Click&amp;Pledge to Arch Linux"/>
</a>
<h3>Commercial sponsors and contributions</h3>
......@@ -41,7 +41,7 @@ <h3>Commercial sponsors and contributions</h3>
in a server rack, bandwidth, and electricity for our main server.</p>
<a href="http://www.velocitynetwork.net/?hosting_by=ArchLinux"
title="velocity network"><img width="252" height="58" src="{% cdnprefix %}/media/vnet_button.png" class="sponsor-btn-vnet"
title="velocity network"><img width="252" height="58" src="{% static "vnet_button.png" %}" class="sponsor-btn-vnet"
title="" alt="velocity network - it's about time" /></a>
<p>We also wish to extend a special Thank You to <a
......@@ -52,7 +52,7 @@ <h3>Commercial sponsors and contributions</h3>
head over to their website for more details.</p>
<a href="https://www.sevenl.net/?utm_source=archlinux-org&amp;utm_medium=sponsored-banner&amp;utm_campaign=thanks-to-sevenl"
title="SevenL Networks - Dedicated Arch Linux servers"><img width="252" height="58" src="{% cdnprefix %}/media/sevenl_button.png"
title="SevenL Networks - Dedicated Arch Linux servers"><img width="252" height="58" src="{% static "sevenl_button.png" %}"
class="sponsor-btn-sevenl" 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>
......@@ -60,15 +60,15 @@ <h3>Commercial sponsors and contributions</h3>
title="AirVM.com">AirVM.com</a> for contributing a VMWare-based Virtual Machine.</p>
<a href="http://www.airvm.com/ArchLinux"
title="AirVM.com - Your Green Technology Partner"><img width="252" height="58" src="{% cdnprefix %}/media/airvm_button.png"
title="AirVM.com - Your Green Technology Partner"><img width="252" height="58" src="{% static "airvm_button.png" %}"
class="sponsor-btn-airvm" title="AirVM.com - Your Green Technology Partner" alt="AirVM.com - Your Green Technology Partner" /></a>
<h3>Past donors</h3>
<div id="donor-list">
<ul>
{% for donor in donors %}
<li>{{ donor.name }}</li>{% endfor %}
{% for donor in donors %}
<li>{{ donor.name }}</li>{% endfor %}
</ul>
</div>
<div class="clear"></div>
......
{% 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 @@ <h3>Test ISO Info</h3>
title="Release Engineering ISO download">Download snapshots</a></li>
<li><a href="{{ releng_pxeboot_url }}"
title="Arch Linux Netboot Live System">Boot latest snapshots over the network</a>
<img width="16" height="16" src="{% cdnprefix %}/media/new.png" alt="New"/></li>
<img width="16" height="16" src="{% static "new.png" %}" alt="New"/></li>
<li><a href="{% url 'releng-test-overview' %}"
title="Release Engineering ISO feedback">Feedback</a></li>
</ul>
......
{% extends "base.html" %}
{% load markup cache cdn %}
{% load markup cache %}
{% load url from future %}
{% load static from staticfiles %}
{% block head %}
<link rel="alternate" type="application/rss+xml" title="Arch Linux News Updates" href="/feeds/news/" />
......@@ -42,7 +43,7 @@ <h3>
</h3>
<a href="/feeds/news/" title="Arch News RSS Feed"
class="rss-icon"><img width="16" height="16" src="{% cdnprefix %}/media/rss.png" alt="RSS Feed" /></a>
class="rss-icon"><img width="16" height="16" src="{% static "rss.png" %}" alt="RSS Feed" /></a>
{% for news in news_updates %}
{% if forloop.counter0 < 5 %}
......@@ -95,7 +96,7 @@ <h3>Recent Updates <span class="more">(<a href="/packages/?sort=-last_update"
title="Browse all of the latest packages">more</a>)</span></h3>
<a href="/feeds/packages/" title="Arch Package Updates RSS Feed"
class="rss-icon"><img width="16" height="16" src="{% cdnprefix %}/media/rss.png" alt="RSS Feed" /></a>
class="rss-icon"><img width="16" height="16" src="{% static "rss.png" %}" alt="RSS Feed" /></a>
<table>
{% for update in pkg_updates %}
......@@ -156,7 +157,7 @@ <h4>Tools</h4>
title="Check the status of all known mirrors">Mirror Status</a></li>
<li><a href="/packages/differences/"
title="See differences in packages between available architectures">Differences Reports</a>
<img width="16" height="16" src="{% cdnprefix %}/media/new.png" alt="New"/></li>
<img width="16" height="16" src="{% static "new.png" %}" alt="New"/></li>
</ul>
<h4>Development</h4>
......@@ -176,7 +177,7 @@ <h4>Development</h4>
title="Releng Testbuild Feedback">Releng Testbuild Feedback</a></li>
<li><a href="{% url 'visualize-index' %}"
title="View visualizations">Visualizations</a>
<img width="16" height="16" src="{% cdnprefix %}/media/new.png" alt="New"/></li>
<img width="16" height="16" src="{% static "new.png" %}" alt="New"/></li>
</ul>
<h4>More Resources</h4>
......@@ -184,7 +185,7 @@ <h4>More Resources</h4>
<ul>
<li><a href="{% url 'page-keys' %}"
title="Package/Database signing master keys">Signing Master Keys</a>
<img width="16" height="16" src="{% cdnprefix %}/media/new.png" alt="New"/></li>
<img width="16" height="16" src="{% static "new.png" %}" alt="New"/></li>
<li><a href="https://wiki.archlinux.org/index.php/Arch_Linux_Press_Review"
title="Arch Linux in the media">Press Coverage</a></li>
<li><a href="{% url 'page-art' %}" title="Arch logos and other artwork for promotional use">Logos &amp; Artwork</a></li>
......@@ -199,20 +200,20 @@ <h4>More Resources</h4>
<div id="home-donate-button" class="widget">
<a href="https://co.clickandpledge.com/Default.aspx?WID=47294">
<img width="210" height="34" src="{% cdnprefix %}/media/CP_EN_BK_S_001.gif" alt="Donate via Click&amp;Pledge to Arch Linux" title="Donate via Click&amp;Pledge to Arch Linux"/>
<img width="210" height="34" src="{% static "CP_EN_BK_S_001.gif" %}" alt="Donate via Click&amp;Pledge to Arch Linux" title="Donate via Click&amp;Pledge to Arch Linux"/>
</a>
</div>
<div id="arch-sponsors" class="widget">
<a href="http://www.velocitynetwork.net/?hosting_by=ArchLinux" title="Velocity Network">
<img width="252" height="58" src="{% cdnprefix %}/media/vnet_button.png" alt="Velocity Network - It's about time" />
<img width="252" height="58" src="{% static "vnet_button.png" %}" alt="Velocity Network - It's about time" />
</a>
<a href="https://www.sevenl.net/?utm_source=archlinux-org&amp;utm_medium=sponsored-banner&amp;utm_campaign=thanks-to-sevenl" title="SevenL Networks - Dedicated Arch Linux servers">
<img width="252" height="58" src="{% cdnprefix %}/media/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 width="252" height="58" src="{% static "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://www.airvm.com/ArchLinux" title="AirVM.com - Your Green Technology Partner">
<img width="252" height="58" src="{% cdnprefix %}/media/airvm_button.png" title="AirVM.com - Your Green Technology Partner" alt="AirVM.com - Your Green Technology Partner" />
<img width="252" height="58" src="{% static "airvm_button.png" %}" title="AirVM.com - Your Green Technology Partner" alt="AirVM.com - Your Green Technology Partner" />
</a>
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment