[damned-lies] Replaced all {{ MEDIA_URL }} for /media/ in templates to standarize it
- From: Gil Forcada Codinachs <gforcada src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [damned-lies] Replaced all {{ MEDIA_URL }} for /media/ in templates to standarize it
- Date: Sun, 30 Sep 2012 17:38:54 +0000 (UTC)
commit fe929ca2c528cb30962ab12ec0d9e9027eb22e16
Author: Gil Forcada <gforcada gnome org>
Date: Sun Sep 30 19:35:21 2012 +0200
Replaced all {{ MEDIA_URL }} for /media/ in templates to standarize it
templates/base.html | 8 ++++----
templates/help/vertimus_workflow.html | 2 +-
templates/languages/language_all_modules.html | 2 +-
templates/languages/language_list.html | 2 +-
templates/languages/language_release.html | 2 +-
templates/languages/language_release_stats.html | 2 +-
templates/languages/language_release_summary.html | 2 +-
templates/module_detail.html | 14 +++++++-------
templates/module_images.html | 2 +-
templates/people/person_detail.html | 2 +-
templates/people/person_list.html | 2 +-
templates/people/person_overview.html | 2 +-
templates/release_compare.html | 2 +-
templates/release_detail.html | 2 +-
templates/stats_show.html | 10 +++++-----
templates/teams/team_base.html | 2 +-
templates/teams/team_detail.html | 6 +++---
templates/teams/team_edit.html | 2 +-
templates/vertimus/activity_summary.html | 2 +-
templates/vertimus/vertimus_detail.html | 18 +++++++++---------
templates/vertimus/vertimus_diff.html | 2 +-
21 files changed, 44 insertions(+), 44 deletions(-)
---
diff --git a/templates/base.html b/templates/base.html
index 7129122..a12972c 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -11,8 +11,8 @@
{% if LANGUAGE_BIDI %}
<link rel="stylesheet" href="/media/css/rtl.css">
{% endif %}
- <script type="text/javascript" src="{{ MEDIA_URL }}js/main.js"></script>
- <script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.min.js"></script>
+ <script type="text/javascript" src="/media/js/main.js"></script>
+ <script type="text/javascript" src="/media/js/jquery.min.js"></script>
{% block extrahead %}
{% endblock %}
</head>
@@ -25,7 +25,7 @@
<a class="root" href="/">GNOME.org</a>
{% if user.is_authenticated %}
<form action="{% url 'login' %}" method="post">
- <a href="{{ user.get_absolute_url }}"><img src="{{ MEDIA_URL }}img/nobody-16.png" alt="Person"> {{ user.person }}</a> •
+ <a href="{{ user.get_absolute_url }}"><img src="/media/img/nobody-16.png" alt="Person"> {{ user.person }}</a> •
<input type="hidden" name="logout" value="1">
<input type="submit" value="{% trans 'Log out' %}">
</form>
@@ -40,7 +40,7 @@
<div class="maxwidth">
- <h1><a href="{% url 'home' %}" title="{% trans "Back to Damned Lies home page" %}"><img src="{{ MEDIA_URL }}img/foot.png" alt="GNOME" /> {% trans "Damned Lies" %}</a></h1>
+ <h1><a href="{% url 'home' %}" title="{% trans "Back to Damned Lies home page" %}"><img src="/media/img/foot.png" alt="GNOME" /> {% trans "Damned Lies" %}</a></h1>
<ul id="globalnav">
<li{% if pageSection == "home" %} class="active"{% endif %}><a href="{% url 'home' %}" title="{% trans "Back to Damned Lies home page" %}"><span>{% trans "Home" %}</span></a></li>
diff --git a/templates/help/vertimus_workflow.html b/templates/help/vertimus_workflow.html
index 311639b..69eb930 100644
--- a/templates/help/vertimus_workflow.html
+++ b/templates/help/vertimus_workflow.html
@@ -9,6 +9,6 @@
{% trans "The figure below describes the various states and actions available during the translation process of a module." %}
</p>
-<img src="{{ MEDIA_URL }}img/workflow-translation.png">
+<img src="/media/img/workflow-translation.png">
</div>
{% endblock %}
diff --git a/templates/languages/language_all_modules.html b/templates/languages/language_all_modules.html
index ec076de..30f882f 100644
--- a/templates/languages/language_all_modules.html
+++ b/templates/languages/language_all_modules.html
@@ -4,7 +4,7 @@
{% block title %} {% trans "All modules" %} - {{ language.get_name }}{% endblock %}
{% block extrahead %}
-<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.tablesorter.min.js"></script>
+<script type="text/javascript" src="/media/js/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
diff --git a/templates/languages/language_list.html b/templates/languages/language_list.html
index 27d11d4..b6d6206 100644
--- a/templates/languages/language_list.html
+++ b/templates/languages/language_list.html
@@ -18,7 +18,7 @@
<li>
<a href="{{ lang.get_team_url }}">{{ lang.get_name }}</a>
<a href="/rss/languages/{{ lang.locale }}">
- <img width="10" height="10" border="0" src="{{ MEDIA_URL }}img/feed-icon-10x10.png" alt="{% blocktrans %}RSS feed for {{ lang.get_name }}{% endblocktrans %}"/>
+ <img width="10" height="10" border="0" src="/media/img/feed-icon-10x10.png" alt="{% blocktrans %}RSS feed for {{ lang.get_name }}{% endblocktrans %}"/>
</a>
</li>
{% endfor %}
diff --git a/templates/languages/language_release.html b/templates/languages/language_release.html
index 5cd937e..4dbf478 100644
--- a/templates/languages/language_release.html
+++ b/templates/languages/language_release.html
@@ -4,7 +4,7 @@
{% block title %} {% trans release.description %} - {{ language_name }}{% endblock %}
{% block extrahead %}
-<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.tablesorter.min.js"></script>
+<script type="text/javascript" src="/media/js/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
diff --git a/templates/languages/language_release_stats.html b/templates/languages/language_release_stats.html
index 782657a..f7dc876 100644
--- a/templates/languages/language_release_stats.html
+++ b/templates/languages/language_release_stats.html
@@ -63,7 +63,7 @@
<img src="{{ err.get_icon }}" title="{{ err.get_description|striptags }}" alt="{{ err.type }}" />
{% endfor %}
{% if stat|domain_type == "mallard" %}
- <img style="margin-left: 1px;" src="{{ MEDIA_URL }}img/mallard.png" width="18" title="{% trans "This document is written in Mallard documentation format" %}" alt="mallard icon"/>
+ <img style="margin-left: 1px;" src="/media/img/mallard.png" width="18" title="{% trans "This document is written in Mallard documentation format" %}" alt="mallard icon"/>
{% endif %}
</td>
<td><span class="branch">{{ branch }}</span></td>
diff --git a/templates/languages/language_release_summary.html b/templates/languages/language_release_summary.html
index 61d569d..27e7a8b 100644
--- a/templates/languages/language_release_summary.html
+++ b/templates/languages/language_release_summary.html
@@ -12,7 +12,7 @@ Following variables should be set:
<th>{% trans "User Interface" %}</th>
<th>{% trans "Graph" %}</th>
<th>{% trans "User Interface (red.)" %}
- <a href="{% url 'help' 'reduced_po' %}"><img src="{{ MEDIA_URL }}img/help.png" alt="help icon"></a>
+ <a href="{% url 'help' 'reduced_po' %}"><img src="/media/img/help.png" alt="help icon"></a>
</th>
<th>{% trans "Documentation" %}</th>
<th>{% trans "Graph" %}</th>
diff --git a/templates/module_detail.html b/templates/module_detail.html
index 1dde2d5..a69876f 100644
--- a/templates/module_detail.html
+++ b/templates/module_detail.html
@@ -15,7 +15,7 @@ $(document).ready(function() {
is_visible = branch_div.is(':visible');
if (is_visible) {
branch_div.slideUp();
- $(this).children('img').attr("src", "{{ MEDIA_URL }}img/closed.png");
+ $(this).children('img').attr("src", "/media/img/closed.png");
} else {
if (branch_div.attr("class") == "empty") {
// Load the branch stats dynamically
@@ -23,7 +23,7 @@ $(document).ready(function() {
branch_div.attr("class", "loaded");
}
branch_div.slideDown();
- $(this).children('img').attr("src", "{{ MEDIA_URL }}img/open.png");
+ $(this).children('img').attr("src", "/media/img/open.png");
}
});
}
@@ -78,11 +78,11 @@ $(document).ready(function() {
{% if forloop.counter != 1 %} - {% endif %}
<a href="#{{ branch.name }}">{{ branch.name }}</a>
{% if branch.warnings %}
- <img src="{{ MEDIA_URL }}img/warn.png" title="{{ branch.warnings }}" />
+ <img src="/media/img/warn.png" title="{{ branch.warnings }}" />
{% endif %}
{% endfor %}
{% if can_edit_branches %}
- <a href="{% url 'stats.views.module_edit_branches' module.name %}"><img src="{{ MEDIA_URL }}img/edit.png" alt="Edit" /></a>
+ <a href="{% url 'stats.views.module_edit_branches' module.name %}"><img src="/media/img/edit.png" alt="Edit" /></a>
{% endif %}
</p>
@@ -91,13 +91,13 @@ $(document).ready(function() {
<hr />
<h2><a href="." class="branch" id="{{ branch.name }}">
{% if forloop.counter < 3 %}
- <img src="{{ MEDIA_URL }}img/open.png" /></a>
+ <img src="/media/img/open.png" /></a>
{% else %}
- <img src="{{ MEDIA_URL }}img/closed.png" /></a>
+ <img src="/media/img/closed.png" /></a>
{% endif %}
<a name="{{ branch.name }}"></a>{{ branch.name }}
{% if branch.get_vcs_web_url %}
- <a href="{{ branch.get_vcs_web_url }}" title="{% trans 'Browse Repository' %}"><img src="{{ MEDIA_URL }}img/repository-icon.png" /></a>
+ <a href="{{ branch.get_vcs_web_url }}" title="{% trans 'Browse Repository' %}"><img src="/media/img/repository-icon.png" /></a>
{% endif %}
</h2>
{% if forloop.counter < 3 %}
diff --git a/templates/module_images.html b/templates/module_images.html
index 26ae563..1c23926 100644
--- a/templates/module_images.html
+++ b/templates/module_images.html
@@ -44,7 +44,7 @@
{% endif %}
{% else %}
<em>{% trans "Not translated" %}</em><br/>
- <img src="{{ MEDIA_URL }}img/emptyimg.png">
+ <img src="/media/img/emptyimg.png">
{% endif %}
{% endif %}
</td>
diff --git a/templates/people/person_detail.html b/templates/people/person_detail.html
index 077971b..10756ec 100644
--- a/templates/people/person_detail.html
+++ b/templates/people/person_detail.html
@@ -4,7 +4,7 @@
{% load stats_extras %}
{% block extrahead %}
-<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.tablesorter.min.js"></script>
+<script type="text/javascript" src="/media/js/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
diff --git a/templates/people/person_list.html b/templates/people/person_list.html
index aaabeaa..90982c2 100644
--- a/templates/people/person_list.html
+++ b/templates/people/person_list.html
@@ -19,7 +19,7 @@
{% if person.image %}
<img src="{{ person.image }}" alt="{{ person.name }}" />
{% else %}
- <img src="{{ MEDIA_URL }}img/nobody.png" alt="" />
+ <img src="/media/img/nobody.png" alt="" />
{% endif %}
<a class="name" href="{{ person.get_absolute_url }}">{{ person.name }}</a><br />
diff --git a/templates/people/person_overview.html b/templates/people/person_overview.html
index eb5c00f..433b968 100644
--- a/templates/people/person_overview.html
+++ b/templates/people/person_overview.html
@@ -8,7 +8,7 @@
{% if person.image %}
<img src="{{ person.image }}" alt="{{ person.name }}" />
{% else %}
- <img src="{{ MEDIA_URL }}img/nobody.png" alt="" />
+ <img src="/media/img/nobody.png" alt="" />
{% endif %}
</div>
diff --git a/templates/release_compare.html b/templates/release_compare.html
index ce33d9b..d045d76 100644
--- a/templates/release_compare.html
+++ b/templates/release_compare.html
@@ -4,7 +4,7 @@
{% block title %} {% trans "Releases Comparison" %} {% endblock %}
{% block extrahead %}
-<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.tablesorter.min.js"></script>
+<script type="text/javascript" src="/media/js/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
diff --git a/templates/release_detail.html b/templates/release_detail.html
index c5f2150..d17da41 100644
--- a/templates/release_detail.html
+++ b/templates/release_detail.html
@@ -22,7 +22,7 @@
<th>{% trans "User Interface" %}</th>
<th>{% trans "Graph" %}</th>
<th>{% trans "User Interface (red.)" %}
- <a href="{% url 'help' 'reduced_po' %}"><img src="{{ MEDIA_URL }}img/help.png" alt="help icon"></a>
+ <a href="{% url 'help' 'reduced_po' %}"><img src="/media/img/help.png" alt="help icon"></a>
</th>
<th>{% trans "Documentation" %}</th>
<th>{% trans "Graph" %}</th>
diff --git a/templates/stats_show.html b/templates/stats_show.html
index e5df553..7c3f030 100644
--- a/templates/stats_show.html
+++ b/templates/stats_show.html
@@ -9,11 +9,11 @@
<h3>{% trans pot_stat.domain.get_description %}
{% if pot_stat|domain_type == "mallard" %}
- <span style="padding-top: 8px;" class="icon_button"><img src="{{ MEDIA_URL }}img/mallard.png" title="{% trans "This document is written in Mallard documentation format" %}" alt="mallard icon"/></span>
+ <span style="padding-top: 8px;" class="icon_button"><img src="/media/img/mallard.png" title="{% trans "This document is written in Mallard documentation format" %}" alt="mallard icon"/></span>
{% endif %}
{% if pot_stat.full_po %}
- <a href="{{ pot_stat.po_url }}" class="icon_button" title="{% trans 'Download POT file' %}"><img src="{{ MEDIA_URL }}img/download-icon.png" alt="{% trans 'Download POT file' %}" /></a>
+ <a href="{{ pot_stat.po_url }}" class="icon_button" title="{% trans 'Download POT file' %}"><img src="/media/img/download-icon.png" alt="{% trans 'Download POT file' %}" /></a>
{% endif %}
</h3>
@@ -36,10 +36,10 @@
{% if msg.type == 'error' or msg.type == 'error-ext' %}
<div class="actions">
<a href="{{ module|browse_bugs:'error+pot+file' }}" target="_blank">
- <img src="{{ MEDIA_URL }}img/search.png" alt="{% trans 'Search for similar bugs before reporting it' %}" title="{% trans 'Search for similar bugs before reporting it' %}"/>
+ <img src="/media/img/search.png" alt="{% trans 'Search for similar bugs before reporting it' %}" title="{% trans 'Search for similar bugs before reporting it' %}"/>
</a>
<a href="{{ msg.report_bug_url }}" target="_blank">
- <img src="{{ MEDIA_URL }}img/bug.png" alt="{% trans 'Report this bug' %}" title="{% trans 'Report this bug' %}" />
+ <img src="/media/img/bug.png" alt="{% trans 'Report this bug' %}" title="{% trans 'Report this bug' %}" />
</a>
</div>
{% endif %}
@@ -78,7 +78,7 @@
<td>{{ line|num_stats }}</td>
{% if pot_stat.full_po.fig_count %}
<td><a href="{% url 'docimages' module.name pot_stat.domain.name branch.name line.language.locale %}">
- <img src="{{ MEDIA_URL }}img/figure.png" alt="{% trans "Display document figures" %}"></a>
+ <img src="/media/img/figure.png" alt="{% trans "Display document figures" %}"></a>
</td>
{% endif %}
<td style="width: 108px; text-align: center;">
diff --git a/templates/teams/team_base.html b/templates/teams/team_base.html
index e1d8188..f990c46 100644
--- a/templates/teams/team_base.html
+++ b/templates/teams/team_base.html
@@ -9,7 +9,7 @@
<h2>{% trans "Details" %}
{% if can_edit_details %}
<a href="{% url 'team_edit' team.name %}">
- <img src="{{ MEDIA_URL }}img/edit_small.png" alt="Edit"/>
+ <img src="/media/img/edit_small.png" alt="Edit"/>
</a>
{% endif %}
</h2>
diff --git a/templates/teams/team_detail.html b/templates/teams/team_detail.html
index e4e340a..cd87d45 100644
--- a/templates/teams/team_detail.html
+++ b/templates/teams/team_detail.html
@@ -15,7 +15,7 @@ $(document).ready(function() {
is_visible = arch_div.is(':visible');
if (is_visible) {
arch_div.hide();
- $(this).children('img').attr("src", "{{ MEDIA_URL }}img/closed.png");
+ $(this).children('img').attr("src", "/media/img/closed.png");
} else {
if (arch_div.attr("class") == "empty") {
// Load the archive stats dynamically
@@ -23,7 +23,7 @@ $(document).ready(function() {
arch_div.attr("class", "loaded");
}
arch_div.show();
- $(this).children('img').attr("src", "{{ MEDIA_URL }}img/open.png");
+ $(this).children('img').attr("src", "/media/img/open.png");
}
});
}
@@ -71,7 +71,7 @@ $(document).ready(function() {
<p><strong>{% trans "Plural forms:" %}</strong> {{ lang.get_plurals }}</p>
- <h3><a href="." class="archives" id="{{ lang.locale|escapeat }}"><img src="{{ MEDIA_URL }}img/closed.png" /></a> {% trans "Archives" %}</h3>
+ <h3><a href="." class="archives" id="{{ lang.locale|escapeat }}"><img src="/media/img/closed.png" /></a> {% trans "Archives" %}</h3>
<div id="div-rel-archives-{{ lang.locale|escapeat }}" class="empty" style="display:none;"></div>
{% endfor %}
diff --git a/templates/teams/team_edit.html b/templates/teams/team_edit.html
index 8022385..3444e6b 100644
--- a/templates/teams/team_edit.html
+++ b/templates/teams/team_edit.html
@@ -3,7 +3,7 @@
{% block title %}{{ team.get_description }}{% endblock %}
{% block extrahead %}
-<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.growfield2.js"></script>
+<script type="text/javascript" src="/media/js/jquery.growfield2.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#id_presentation").growfield();
diff --git a/templates/vertimus/activity_summary.html b/templates/vertimus/activity_summary.html
index e6cebc7..4d62397 100644
--- a/templates/vertimus/activity_summary.html
+++ b/templates/vertimus/activity_summary.html
@@ -3,7 +3,7 @@
{% load humanize %}
{% block extrahead %}
-<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.tablesorter.min.js"></script>
+<script type="text/javascript" src="/media/js/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
$(document).ready(function()
{
diff --git a/templates/vertimus/vertimus_detail.html b/templates/vertimus/vertimus_detail.html
index b9e491a..5969986 100644
--- a/templates/vertimus/vertimus_detail.html
+++ b/templates/vertimus/vertimus_detail.html
@@ -7,7 +7,7 @@
{% endblock %}
{% block extrahead %}
-<script type="text/javascript" src="{{ MEDIA_URL }}js/jquery.growfield2.js"></script>
+<script type="text/javascript" src="/media/js/jquery.growfield2.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#id_comment").growfield();
@@ -56,17 +56,17 @@ $(document).ready(function() {
<p>{{ module.get_comment|safe }}</p>
{% else %}
{% if not module.has_standard_vcs %}
- <p><em><img src="{{ MEDIA_URL }}img/warn.png" alt="Warning logo" /> {{ non_standard_repo_msg }}</em></p>
+ <p><em><img src="/media/img/warn.png" alt="Warning logo" /> {{ non_standard_repo_msg }}</em></p>
{% endif %}
{% endif %}
<div id="vertimus_stats">
<div><em><a href="{{ pot_stats.pot_url }}">
- <img src="{{ MEDIA_URL }}img/download.png" alt="{% trans "Download POT file" %}" /></a>
+ <img src="/media/img/download.png" alt="{% trans "Download POT file" %}" /></a>
{{ pot_stats.pot_text }}
</em></div>
<div style="display: inline-block;">
- <a href="{{ po_url }}"><img src="{{ MEDIA_URL }}img/download.png" alt="{% trans "Download PO file" %}" /></a>
+ <a href="{{ po_url }}"><img src="/media/img/download.png" alt="{% trans "Download PO file" %}" /></a>
{% trans "PO file statistics:" %} <br />
<div id="stats_po">
<div title="{% trans "Translated/Fuzzy/Untranslated" %}">
@@ -92,11 +92,11 @@ $(document).ready(function() {
{% if po_url_reduced %}
<div style="display: inline-block; margin: 20px 0 5px 0;">
- <a href="{{ po_url_reduced }}"><img src="{{ MEDIA_URL }}img/download.png" alt="{% trans "Download PO file" %}" /></a>
+ <a href="{{ po_url_reduced }}"><img src="/media/img/download.png" alt="{% trans "Download PO file" %}" /></a>
{% trans "PO file statistics (reduced):" %}
<div style="display: inline-block;">
<span class="help_link"><a href="{% url 'help' 'reduced_po' %}">
- <img src="{{ MEDIA_URL }}img/help.png" alt="help icon" />
+ <img src="/media/img/help.png" alt="help icon" />
</a></span>
</div>
<br />
@@ -130,7 +130,7 @@ $(document).ready(function() {
{% if other_states %}
<div style="margin-top:1.2em; clear: both;">
- <img src="{{ MEDIA_URL }}img/warn.png" alt="Warning logo" />
+ <img src="/media/img/warn.png" alt="Warning logo" />
{% trans "On-going activities in same module:" %}
{% for st in other_states %}
<a href="{% url 'vertimus_by_ids' st.branch.pk st.domain.pk st.language.pk %}">{{ st.branch.name }}</a>
@@ -172,7 +172,7 @@ $(document).ready(function() {
<div class="vertimus_action_content">
<div class="face_image">
{% if action.person.image %}<img src="{{ action.person.image }}" alt="face" style="max-height: 50px;"/>
- {% else %}<img src="{{ MEDIA_URL }}img/nobody.png" alt="Person"/>
+ {% else %}<img src="/media/img/nobody.png" alt="Person"/>
{% endif %}
</div>
{% if action.file %}
@@ -245,7 +245,7 @@ $(document).ready(function() {
{% endif %}
{% endif %}
{% else %}
- <p><img src="{{ MEDIA_URL }}img/warn.png"/> {% trans "This team is not using the Vertimus translation workflow." %}</p>
+ <p><img src="/media/img/warn.png"/> {% trans "This team is not using the Vertimus translation workflow." %}</p>
{% endif %}
</div>
{% endblock %}
diff --git a/templates/vertimus/vertimus_diff.html b/templates/vertimus/vertimus_diff.html
index b7d4c68..757c2d8 100644
--- a/templates/vertimus/vertimus_diff.html
+++ b/templates/vertimus/vertimus_diff.html
@@ -7,7 +7,7 @@
{% endblock %}
{% block extrahead %}
- <link rel="stylesheet" href="{{ MEDIA_URL }}css/difflib.css" />
+ <link rel="stylesheet" href="/media/css/difflib.css" />
{% endblock %}
{% block content %}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]