summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2012-12-12 18:01:59 -0500
committerLuke Shumaker <LukeShu@sbcglobal.net>2012-12-12 18:01:59 -0500
commit764182c0ca66b538cef994409f04f876681598cd (patch)
tree2f399c618484c00f84875b437f3fcfcc9c509424 /templates
parent8844fd0c6361d3a6ccd88647276e9af0e6cd64d2 (diff)
parent822898e57bc6d4e008ef58da309857e9ef8c98e6 (diff)
Merge commit '822898e' (Merge branch 'django14')
Conflicts: requirements.txt requirements_prod.txt templates/base.html templates/devel/clock.html templates/public/download.html templates/public/index.html templates/releng/results.html
Diffstat (limited to 'templates')
-rw-r--r--templates/admin/index.html10
-rw-r--r--templates/base.html22
-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/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.html10
-rw-r--r--templates/releng/thanks.html7
-rw-r--r--templates/visualize/index.html7
13 files changed, 72 insertions, 50 deletions
diff --git a/templates/admin/index.html b/templates/admin/index.html
index 1755d86f..203206d5 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 f5e8609a..6a874b78 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 %}Parabola GNU/Linux-libre{% endblock %}</title>
@@ -7,7 +7,7 @@
<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="search" type="application/opensearchdescription+xml" href="{% url opensearch-packages as osp %}{{ osp }}" title="Parabola Packages" />
+ <link rel="search" type="application/opensearchdescription+xml" href="{% url 'opensearch-packages' as osp %}{{ osp }}" title="Parabola Packages" />
{% block head %}{% endblock %}
</head>
<body class="{% if user.is_authenticated %}devmode {% endif %}{% block bodyclass %}{% endblock %}">
@@ -21,7 +21,7 @@
<li id="anb-wiki"><a href="https://wiki.parabolagnulinux.org" title="Community documentation">Wiki</a></li>
<li id="anb-bugs"><a href="https://labs.parabola.nu" title="Issue Tracker">Bugs</a></li>
<li id="anb-projects"><a href="https://projects.parabolagnulinux.org" title="Our Code">Projects</a></li>
- <li id="anb-download"><a href="https://wiki.parabolagnulinux.org/Download" title="Get Parabola">Download</a></li>
+ <li id="anb-download"><a href="{% url 'page-download' as pdl %}{{ pdl }}" title="Get Parabola">Download</a></li>
</ul>
</div>
</div><!-- #archnavbar -->
@@ -30,16 +30,18 @@
<div id="archdev-navbar">
{% if user.is_authenticated %}
<ul>
- <li><a href="/devel/" title="Developer Dashboard">Dashboard</a></li>
- <li><a href="https://projects.parabolagnulinux.org/" title="Git Projects">Projects</a></li>
- <li><a href="{% url news-list as newsl %}{{ newsl }}" title="Manage news articles">News</a></li>
+ <li><a href="{% url 'devel-index' %}" title="Developer Dashboard">Dashboard</a></li>
+ <li><a href="https://wiki.parabolagnulinux.org/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="/packages/signoffs/" title="Package signoffs">Signoffs</a></li>
<li><a href="/todo/" title="Developer todo lists">Todos</a></li>
- <li><a href="/packages/differences/" title="Package architecture differences">Architecture Differences</a></li>
- <li><a href="https://lists.parabolagnulinux.org/pipermail/dev/" title="dev mailing list archives">Archives</a></li>
- <li><a href="/devel/clock/" 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://lists.parabolagnulinux.org/pipermail/dev/"
+ title="dev mailing list archives">Archives</a></li>
+ <li><a href="/mirrors/" title="Mirror server statistics">Mirrors</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 0f22ba2b..1629c104 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 06324d84..e8a7bf11 100644
--- a/templates/devel/clock.html
+++ b/templates/devel/clock.html
@@ -1,4 +1,5 @@
{% extends "base.html" %}
+{% load tz %}
{% block title %}Parabola GNU/Linux-libre - Hackers World Clocks{% endblock %}
@@ -10,7 +11,6 @@
depends on hackers keeping the time zone information up to date, so if
you see 'UTC' listed, pester them to update their settings.</p>
<p>
- Parabola 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 e4de5bb6..b344af1f 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 %}Parabola - 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 %}
@@ -123,8 +123,12 @@
href="https://repo.parabolagnulinux.org/sources/packages"
title="Sourceballed packages">sources repo</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/index.html b/templates/public/index.html
index fa8bb8fb..73f48012 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="Parabola News Updates" href="/feeds/news/" />
@@ -25,13 +26,13 @@
<p>You can find us on IRC at <a
href="irc://irc.freenode.net/#parabola">irc.freenode.net/#parabola</a>.</p>
- <p class="readmore"><a href="{% url page-about %}"
+ <p class="readmore"><a href="{% url 'page-about' %}"
title="Learn more about Parabola">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>
@@ -52,7 +53,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>
@@ -131,15 +132,15 @@
<h4>Support</h4>
<ul>
- <li><a href="{% url page-donate %}" title="Help support Parabola">Donate</a></li>
+ <li><a href="{% url 'page-donate' %}" title="Help support Parabola">Donate</a></li>
</ul>
<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>
@@ -152,7 +153,7 @@
<li><a href="https://projects.parabolagnulinux.org"
title="Official Parabola projects (git)">Projects in Git</a></li>
{% comment %}
- <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>
@@ -161,9 +162,9 @@
title="View the available package groups">Package Groups</a></li>
<li><a href="/todolists/"
title="Hacker 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>
@@ -171,16 +172,16 @@
<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.parabolagnulinux.org/Media"
- title="Parabola in the media">Media Appearances</a></li>
- <li><a href="{% url page-art %}" title="Parabola 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>
+ title="Parabola in the media">Press Coverage</a></li>
+ <li><a href="{% url 'page-art' %}" title="Parabola 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 hackers">Hackers Profiles</a></li>
- <li><a href="{% url page-fellows %}" title="Retired hackers">Fellows Profiles</a></li>
+ <li><a href="{% url 'page-devs' %}" title="Active hackers">Hackers Profiles</a></li>
+ <li><a href="{% url 'page-fellows' %}" title="Retired hackers">Fellows Profiles</a></li>
</ul>
</div>
diff --git a/templates/releng/add.html b/templates/releng/add.html
index 402ceac6..9ceea66e 100644
--- a/templates/releng/add.html
+++ b/templates/releng/add.html
@@ -1,4 +1,5 @@
{% extends "base.html" %}
+{% load url from future %}
{% block title %}Parabola - 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 5a4445b7..76479c52 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 512e1bf3..62264217 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 e9375cdd..45838b86 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 6f7d29f0..fa694cc6 100644
--- a/templates/releng/results.html
+++ b/templates/releng/results.html
@@ -1,4 +1,5 @@
{% extends "base.html" %}
+{% load url from future %}
{% block title %}Parabola - Release Engineering Testbuild Results{% endblock %}
@@ -9,10 +10,17 @@
<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>
+
+ <p>For more information, see the <a
+ href="https://wiki.parabolagnulinux.org/DeveloperWiki:releng_testimages_feedback">documentation
+ on the wiki</a>.</p>
+
<p>All ISOs referenced on this page are available from
<a href="{{ iso_url }}">{{ iso_url }}</a>.</p>
diff --git a/templates/releng/thanks.html b/templates/releng/thanks.html
index fdfc4c4a..8b204eaa 100644
--- a/templates/releng/thanks.html
+++ b/templates/releng/thanks.html
@@ -1,4 +1,5 @@
{% extends "base.html" %}
+{% load url from future %}
{% block title %}Parabola - 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 75194291..8855a713 100644
--- a/templates/visualize/index.html
+++ b/templates/visualize/index.html
@@ -1,4 +1,5 @@
{% extends "base.html" %}
+{% load url from future %}
{% block title %}Parabola - 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 %}