summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2012-03-24 02:19:34 +0100
committerDan McGee <dan@archlinux.org>2012-03-24 02:19:34 +0100
commit822898e57bc6d4e008ef58da309857e9ef8c98e6 (patch)
tree1af0836c927b87e2249628d47cdfefe77c3b18fd /templates
parentea87160c397fe1daf63851f0ed0be146bea79196 (diff)
parent8e10699d53281be53c88a3695de6aa496e084dc6 (diff)
downloadarchweb-822898e57bc6d4e008ef58da309857e9ef8c98e6.tar.gz
archweb-822898e57bc6d4e008ef58da309857e9ef8c98e6.tar.xz
Merge branch 'django14'
Conflicts: templates/releng/result_section.html
Diffstat (limited to 'templates')
-rw-r--r--templates/admin/index.html10
-rw-r--r--templates/base.html14
-rw-r--r--templates/devel/admin_log.html4
-rw-r--r--templates/devel/clock.html4
-rw-r--r--templates/packages/search.html12
-rw-r--r--templates/public/download.html5
-rw-r--r--templates/public/index.html31
-rw-r--r--templates/releng/add.html3
-rw-r--r--templates/releng/iso_overview.html3
-rw-r--r--templates/releng/result_list.html3
-rw-r--r--templates/releng/result_section.html6
-rw-r--r--templates/releng/results.html5
-rw-r--r--templates/releng/thanks.html7
-rw-r--r--templates/visualize/index.html7
14 files changed, 64 insertions, 50 deletions
diff --git a/templates/admin/index.html b/templates/admin/index.html
index 1755d86..203206d 100644
--- a/templates/admin/index.html
+++ b/templates/admin/index.html
@@ -1,7 +1,7 @@
{% extends "admin/base_site.html" %}
-{% load i18n %}
+{% load i18n admin_static %}
-{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css" />{% endblock %}
+{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />{% endblock %}
{% block coltype %}colMS{% endblock %}
@@ -36,19 +36,19 @@
<caption><a href="{{ app.app_url }}" class="section">{% blocktrans with name=app.name %}{{ name }}{% endblocktrans %}</a></caption>
{% for model in app.models %}
<tr>
- {% if model.perms.change %}
+ {% if model.admin_url %}
<th scope="row"><a href="{{ model.admin_url }}">{{ model.name }}</a></th>
{% else %}
<th scope="row">{{ model.name }}</th>
{% endif %}
- {% if model.perms.add %}
+ {% if model.add_url %}
<td><a href="{{ model.add_url }}" class="addlink">{% trans 'Add' %}</a></td>
{% else %}
<td>&nbsp;</td>
{% endif %}
- {% if model.perms.change %}
+ {% if model.admin_url %}
<td><a href="{{ model.admin_url }}" class="changelink">{% trans 'Change' %}</a></td>
{% else %}
<td>&nbsp;</td>
diff --git a/templates/base.html b/templates/base.html
index 0da77cf..fa30df1 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -1,4 +1,4 @@
-<!DOCTYPE html>
+{% load url from future %}<!DOCTYPE html>
<html lang="en">
<head>
<title>{% block title %}Arch Linux{% endblock %}</title>
@@ -10,7 +10,7 @@
<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="search" type="application/opensearchdescription+xml" href="{% url opensearch-packages as osp %}{{ osp }}" title="Arch Linux Packages" />
+ <link rel="search" type="application/opensearchdescription+xml" href="{% url 'opensearch-packages' as osp %}{{ osp }}" title="Arch Linux Packages" />
{% block head %}{% endblock %}
</head>
<body class="{% if user.is_authenticated %}devmode {% endif %}{% block bodyclass %}{% endblock %}">
@@ -25,7 +25,7 @@
<li id="anb-wiki"><a href="https://wiki.archlinux.org/" title="Community documentation">Wiki</a></li>
<li id="anb-bugs"><a href="https://bugs.archlinux.org/" title="Report and track bugs">Bugs</a></li>
<li id="anb-aur"><a href="https://aur.archlinux.org/" title="Arch Linux User Repository">AUR</a></li>
- <li id="anb-download"><a href="{% url page-download as pdl %}{{ pdl }}" title="Get Arch Linux">Download</a></li>
+ <li id="anb-download"><a href="{% url 'page-download' as pdl %}{{ pdl }}" title="Get Arch Linux">Download</a></li>
</ul>
</div>
</div><!-- #archnavbar -->
@@ -34,20 +34,20 @@
<div id="archdev-navbar">
{% if user.is_authenticated %}
<ul>
- <li><a href="{% url devel-index %}" title="Developer Dashboard">Dashboard</a></li>
+ <li><a href="{% url 'devel-index' %}" title="Developer Dashboard">Dashboard</a></li>
<li><a href="https://wiki.archlinux.org/index.php/DeveloperWiki"
title="Developer Wiki">DevWiki</a></li>
- <li><a href="{% url news-list as newsl %}{{ newsl }}" title="Manage news articles">News</a></li>
+ <li><a href="{% url 'news-list' as newsl %}{{ newsl }}" title="Manage news articles">News</a></li>
<li><a href="/packages/signoffs/" title="Package signoffs">Signoffs</a></li>
<li><a href="/todo/" title="Developer todo lists">Todos</a></li>
- <li><a href="{% url devel-clocks %}" title="Developer world clocks">Dev Clocks</a></li>
+ <li><a href="{% url 'devel-clocks' %}" title="Developer world clocks">Dev Clocks</a></li>
<li><a href="https://mailman.archlinux.org/mailman/private/arch-dev/"
title="arch-dev mailing list archives">Archives</a></li>
<li><a href="/mirrors/" title="Mirror server statistics">Mirrors</a></li>
<li><a href="https://stats.archlinux.org/munin/"
title="Arch server monitoring">Server Monitoring</a></li>
{% if user.is_staff %}
- <li><a href="{% url admin:index %}" title="Django Admin Interface">Django Admin</a></li>
+ <li><a href="{% url 'admin:index' %}" title="Django Admin Interface">Django Admin</a></li>
{% endif %}
<li><a href="/devel/profile/" title="Modify your account profile">Profile</a></li>
<li><a href="/logout/" title="Logout of the developer interface">Logout</a></li>
diff --git a/templates/devel/admin_log.html b/templates/devel/admin_log.html
index 0f22ba2..1629c10 100644
--- a/templates/devel/admin_log.html
+++ b/templates/devel/admin_log.html
@@ -1,7 +1,7 @@
{% extends "admin/base_site.html" %}
-{% load i18n %}
+{% load i18n admin_static %}
-{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% load adminmedia %}{% admin_media_prefix %}css/dashboard.css" />{% endblock %}
+{% block extrastyle %}{{ block.super }}<link rel="stylesheet" type="text/css" href="{% static "admin/css/dashboard.css" %}" />{% endblock %}
{% block breadcrumbs %}<div class="breadcrumbs"><a href="/admin/">{% trans 'Home' %}</a>{% if title %} &rsaquo; {{ title }}{% endif %}</div>{% endblock %}
diff --git a/templates/devel/clock.html b/templates/devel/clock.html
index 72a57d0..3b00075 100644
--- a/templates/devel/clock.html
+++ b/templates/devel/clock.html
@@ -1,4 +1,5 @@
{% extends "base.html" %}
+{% load tz %}
{% block title %}Arch Linux - Developer World Clocks{% endblock %}
@@ -10,7 +11,6 @@
depends on developers keeping the time zone information up to date, so if
you see 'UTC' listed, pester them to update their settings.</p>
<p>
- Arch Server Time: {{ now|date:"Y-m-d H:i T" }}<br/>
UTC Time: {{ utc_now|date:"Y-m-d H:i T" }}
</p>
@@ -33,7 +33,7 @@
<td>{{ dev.userprofile.alias }}</td>
<td>{{ dev.userprofile.location }}</td>
<td>{{ dev.userprofile.time_zone }}</td>
- <td>{{ dev.current_time|date:"Y-m-d H:i T" }}</td>
+ <td>{{ utc_now|timezone:dev.userprofile.time_zone|date:"Y-m-d H:i T" }}</td>
</tr>
{% endfor %}
</tbody>
diff --git a/templates/packages/search.html b/templates/packages/search.html
index ae67b18..030f267 100644
--- a/templates/packages/search.html
+++ b/templates/packages/search.html
@@ -1,13 +1,13 @@
{% extends "base.html" %}
{% load package_extras %}
-{% load adminmedia %}
+{% load admin_static %}
{% block title %}Arch Linux - Package Database{% endblock %}
{% block navbarclass %}anb-packages{% endblock %}
{% block head %}
{% if is_paginated and page_obj.number > 1 %}<meta name="robots" content="noindex, nofollow"/>{% endif %}
-<link rel="stylesheet" type="text/css" href="{% admin_media_prefix %}css/widgets.css" />
+<link rel="stylesheet" type="text/css" href="{% static "admin/css/widgets.css" %}" />
{% endblock %}
{% block content %}
@@ -126,8 +126,12 @@
title="AUR package database">Arch User Repository (AUR).</a></p>
</div>
+{% load cdn %}{% jquery %}
<script type="text/javascript" src="/jsi18n/"></script>
-<script type="text/javascript">window.__admin_media_prefix__ = "{% filter escapejs %}{% admin_media_prefix %}{% endfilter %}";</script>
-<script type="text/javascript" src="{% admin_media_prefix %}js/core.js"></script>
+<script type="text/javascript">
+ window.__admin_media_prefix__ = "{% filter escapejs %}{% static "admin/" %}{% endfilter %}";
+ var django = {"jQuery": jQuery};
+</script>
+<script type="text/javascript" src="{% static "admin/js/core.js" %}"></script>
{{search_form.media}}
{% endblock %}
diff --git a/templates/public/download.html b/templates/public/download.html
index 5e076e2..d244ec7 100644
--- a/templates/public/download.html
+++ b/templates/public/download.html
@@ -1,5 +1,6 @@
{% extends "base.html" %}
{% load cache cdn %}
+{% load url from future %}
{% block title %}Arch Linux - Downloads{% endblock %}
{% block navbarclass %}anb-download{% endblock %}
@@ -43,7 +44,7 @@
<p>If you are an existing Arch user, there is no need to download a new ISO
to update your existing system. You may be looking for
- <a href="{% url mirrorlist %}">an updated mirrorlist</a> instead.</p>
+ <a href="{% url 'mirrorlist' %}">an updated mirrorlist</a> instead.</p>
<h3>BitTorrent Download (recommended)</h3>
@@ -125,7 +126,7 @@
<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>
- <li><a href="{% url releng-test-overview %}"
+ <li><a href="{% url 'releng-test-overview' %}"
title="Release Engineering ISO feedback">Feedback</a></li>
</ul>
diff --git a/templates/public/index.html b/templates/public/index.html
index 00edf8c..53ccd2d 100644
--- a/templates/public/index.html
+++ b/templates/public/index.html
@@ -1,5 +1,6 @@
{% extends "base.html" %}
{% load markup cache cdn %}
+{% load url from future %}
{% block head %}
<link rel="alternate" type="application/rss+xml" title="Arch Linux News Updates" href="/feeds/news/" />
@@ -30,13 +31,13 @@
title="Arch Wiki">wiki</a>
if you want to learn more about Arch.</p>
- <p class="readmore"><a href="{% url page-about %}"
+ <p class="readmore"><a href="{% url 'page-about' %}"
title="Learn more about Arch Linux">Learn more...</a></p>
</div>
<div id="news">
<h3>
- <a href="{% url news-list %}" title="Browse the news archives">Latest News</a>
+ <a href="{% url 'news-list' %}" title="Browse the news archives">Latest News</a>
<span class="arrow"></span>
</h3>
@@ -57,7 +58,7 @@
{% else %}
{% if forloop.counter0 == 5 %}
<h3>
- <a href="{% url news-list %}"
+ <a href="{% url 'news-list' %}"
title="Browse the news archives">Older News</a>
<span class="arrow"></span>
</h3>
@@ -137,7 +138,7 @@
<h4>Support</h4>
<ul>
- <li><a href="{% url page-donate %}" title="Help support Arch Linux">Donate</a></li>
+ <li><a href="{% url 'page-donate' %}" title="Help support Arch Linux">Donate</a></li>
<li><a href="http://schwag.archlinux.ca/"
title="USB keys, jewellery, case badges">Arch Schwag</a></li>
<li><a href="http://www.zazzle.com/archlinux*"
@@ -149,9 +150,9 @@
<h4>Tools</h4>
<ul>
- <li><a href="{% url mirrorlist %}"
+ <li><a href="{% url 'mirrorlist' %}"
title="Get a custom mirrorlist from our database">Mirrorlist Updater</a></li>
- <li><a href="{% url mirror-status %}"
+ <li><a href="{% url 'mirror-status' %}"
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>
@@ -163,7 +164,7 @@
<ul>
<li><a href="http://projects.archlinux.org/"
title="Official Arch projects (git)">Projects in Git</a></li>
- <li><a href="{% url page-svn %}"
+ <li><a href="{% url 'page-svn' %}"
title="View SVN entries for packages">SVN Repositories</a></li>
<li><a href="https://wiki.archlinux.org/index.php/DeveloperWiki"
title="Developer Wiki articles">Developer Wiki</a></li>
@@ -171,9 +172,9 @@
title="View the available package groups">Package Groups</a></li>
<li><a href="/todolists/"
title="Developer Todo Lists">Todo Lists</a></li>
- <li><a href="{% url releng-test-overview %}"
+ <li><a href="{% url 'releng-test-overview' %}"
title="Releng Testbuild Feedback">Releng Testbuild Feedback</a></li>
- <li><a href="{% url visualize-index %}"
+ <li><a href="{% url 'visualize-index' %}"
title="View visualizations">Visualizations</a>
<img width="16" height="16" src="{% cdnprefix %}/media/new.png" alt="New"/></li>
</ul>
@@ -181,17 +182,17 @@
<h4>More Resources</h4>
<ul>
- <li><a href="{% url page-keys %}"
+ <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>
<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>
- <li><a href="{% url news-list %}" title="News Archives">News Archives</a></li>
+ <li><a href="{% url 'page-art' %}" title="Arch logos and other artwork for promotional use">Logos &amp; Artwork</a></li>
+ <li><a href="{% url 'news-list' %}" title="News Archives">News Archives</a></li>
<li><a href="/feeds/" title="Various RSS Feeds">RSS Feeds</a></li>
- <li><a href="{% url page-devs %}" title="Active developers">Developer Profiles</a></li>
- <li><a href="{% url page-tus %}" title="Active Trusted Users (TUs)">Trusted User Profiles</a></li>
- <li><a href="{% url page-fellows %}" title="Retired Developers">Fellows Profiles</a></li>
+ <li><a href="{% url 'page-devs' %}" title="Active developers">Developer Profiles</a></li>
+ <li><a href="{% url 'page-tus' %}" title="Active Trusted Users (TUs)">Trusted User Profiles</a></li>
+ <li><a href="{% url 'page-fellows' %}" title="Retired Developers">Fellows Profiles</a></li>
</ul>
</div>
diff --git a/templates/releng/add.html b/templates/releng/add.html
index 8488b40..ed02984 100644
--- a/templates/releng/add.html
+++ b/templates/releng/add.html
@@ -1,4 +1,5 @@
{% extends "base.html" %}
+{% load url from future %}
{% block title %}Arch Linux - Test Result Entry{% endblock %}
@@ -13,7 +14,7 @@
installation properly. Some options require you to check several things (such as
config files), this will be mentioned alongside the option.</p>
<p>There is also an overview of all feedback on the
- <a href="{% url releng-test-overview %}">results page</a>. Once we have
+ <a href="{% url 'releng-test-overview' %}">results page</a>. Once we have
builds that are properly tested (enough successful feedback for all
important features of the ISO or a slightly earlier ISO), we can release new
official media.</p>
diff --git a/templates/releng/iso_overview.html b/templates/releng/iso_overview.html
index 5a4445b..76479c5 100644
--- a/templates/releng/iso_overview.html
+++ b/templates/releng/iso_overview.html
@@ -1,10 +1,11 @@
{% extends "base.html" %}
+{% load url from future %}
{% block content %}
<div class="box">
<h2>Failures and Successes for Testing ISOs</h2>
- <p><a href="{% url releng-test-overview %}">Go back to testing results</a></p>
+ <p><a href="{% url 'releng-test-overview' %}">Go back to testing results</a></p>
<table id="releng-result" class="results">
<thead>
diff --git a/templates/releng/result_list.html b/templates/releng/result_list.html
index 512e1bf..6226421 100644
--- a/templates/releng/result_list.html
+++ b/templates/releng/result_list.html
@@ -1,4 +1,5 @@
{% extends "base.html" %}
+{% load url from future %}
{% block content %}
<div class="box">
@@ -7,7 +8,7 @@
{{ iso_name|default:"" }}
</h2>
- <p><a href="{% url releng-test-overview %}">Go back to testing results</a></p>
+ <p><a href="{% url 'releng-test-overview' %}">Go back to testing results</a></p>
<table id="releng-result" class="results">
<thead>
diff --git a/templates/releng/result_section.html b/templates/releng/result_section.html
index e9375cd..45838b8 100644
--- a/templates/releng/result_section.html
+++ b/templates/releng/result_section.html
@@ -1,3 +1,4 @@
+{% load url from future %}
<tr>
<th>{% if option.is_rollback %}Rollback: {% endif %}{{ option.name|title }}</td>
<th>Last Success</th>
@@ -7,19 +8,20 @@
<tr>
<td>
<a href="{% url releng-results-for option.field_name item.value.pk %}">
+ <a href="{% url 'releng-results-for' option.field_name item.value.pk %}">
{{ item.value.name|lower }}
</a>
</td>
<td>
{% if item.success %}
- <a href="{% url releng-results-iso item.success.pk %}">
+ <a href="{% url 'releng-results-iso' item.success.pk %}">
{{ item.success.name }}
</a>
{% else %}Never succeeded{% endif %}
</td>
<td>
{% if item.failure %}
- <a href="{% url releng-results-iso item.failure.pk %}">
+ <a href="{% url 'releng-results-iso' item.failure.pk %}">
{{ item.failure.name }}
</a>
{% else %}Never failed{% endif %}
diff --git a/templates/releng/results.html b/templates/releng/results.html
index 4ff3c86..71af708 100644
--- a/templates/releng/results.html
+++ b/templates/releng/results.html
@@ -1,4 +1,5 @@
{% extends "base.html" %}
+{% load url from future %}
{% block title %}Arch Linux - Release Engineering Testbuild Results{% endblock %}
@@ -9,12 +10,12 @@
<p>This is an overview screen showing a test results matrix of release
engineering produced ISOs. Various options and configurations are shown
with last success and last failure results, if known. To help improve ISO
- quality, you are encouraged to <a href="{% url releng-test-submit %}">give feedback</a>
+ quality, you are encouraged to <a href="{% url 'releng-test-submit' %}">give feedback</a>
if you have tested and used any ISOs. Both successful and failed results
are encouraged and welcome.</p>
<p>For a overview of which ISOs tested best, have a look at
- the <a href="{% url releng-iso-overview %}">overview</a>.</p>
+ the <a href="{% url 'releng-iso-overview' %}">overview</a>.</p>
<p>For more information, see the <a
href="https://wiki.archlinux.org/index.php/DeveloperWiki:releng_testimages_feedback">documentation
diff --git a/templates/releng/thanks.html b/templates/releng/thanks.html
index 80018b0..66d65a5 100644
--- a/templates/releng/thanks.html
+++ b/templates/releng/thanks.html
@@ -1,4 +1,5 @@
{% extends "base.html" %}
+{% load url from future %}
{% block title %}Arch Linux - Feedback - Thanks!{% endblock %}
@@ -7,9 +8,9 @@
<h2>Thanks!</h2>
<p>Thank you for taking the time to give us this information!
Your results have been succesfully added to our database.</p>
- <p>You can now <a href="{% url releng-test-overview %}">go back to the results</a>,
- <a href="{% url releng-test-submit %}">give more feedback</a>, or
- have a look at the <a href="{% url releng-iso-overview %}">look at
+ <p>You can now <a href="{% url 'releng-test-overview' %}">go back to the results</a>,
+ <a href="{% url 'releng-test-submit' %}">give more feedback</a>, or
+ have a look at the <a href="{% url 'releng-iso-overview' %}">look at
the ISO test overview</a>.</p>
</div>
{% endblock %}
diff --git a/templates/visualize/index.html b/templates/visualize/index.html
index a7727b1..a7855eb 100644
--- a/templates/visualize/index.html
+++ b/templates/visualize/index.html
@@ -1,4 +1,5 @@
{% extends "base.html" %}
+{% load url from future %}
{% block title %}Arch Linux - Visualizations{% endblock %}
@@ -34,11 +35,11 @@
<script type="text/javascript">
$(document).ready(function() {
var orderings = {
- "repo": { url: "{% url visualize-byrepo %}", color_attr: "repo" },
- "arch": { url: "{% url visualize-byarch %}", color_attr: "arch" },
+ "repo": { url: "{% url 'visualize-byrepo' %}", color_attr: "repo" },
+ "arch": { url: "{% url 'visualize-byarch' %}", color_attr: "arch" },
};
packages_treemap("#visualize-archrepo", orderings, "repo");
- developer_keys("#visualize-keys", "{% url visualize-pgp_keys %}");
+ developer_keys("#visualize-keys", "{% url 'visualize-pgp_keys' %}");
});
</script>
{% endblock %}