Commit fe929ca2 authored by Gil Forcada's avatar Gil Forcada

Replaced all {{ MEDIA_URL }} for /media/ in templates to standarize it

parent 4ebed867
......@@ -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">&nbsp;{{ user.person }}</a> &bull;
<a href="{{ user.get_absolute_url }}"><img src="/media/img/nobody-16.png" alt="Person">&nbsp;{{ user.person }}</a> &bull;
<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>
......
......@@ -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 %}
......@@ -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()
{
......
......@@ -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 %}
......
......@@ -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()
{
......
......@@ -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>
......
......@@ -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>
......
......@@ -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 %}
......
......@@ -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>
......
......@@ -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()
{
......
......@@ -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 />
......
......@@ -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>
......
......@@ -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()
{
......
......@@ -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>
......
......@@ -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;">
......
......@@ -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>
......
......@@ -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>&nbsp;{% trans "Archives" %}</h3>
<h3><a href="." class="archives" id="{{ lang.locale|escapeat }}"><img src="/media/img/closed.png" /></a>&nbsp;{% trans "Archives" %}</h3>
<div id="div-rel-archives-{{ lang.locale|escapeat }}" class="empty" style="display:none;"></div>
{% endfor %}
......
......@@ -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();
......
......@@ -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()
{
......
......@@ -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"/>&nbsp;{% trans "This team is not using the Vertimus translation workflow." %}</p>
<p><img src="/media/img/warn.png"/>&nbsp;{% trans "This team is not using the Vertimus translation workflow." %}</p>
{% endif %}
</div>
{% endblock %}
......@@ -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 %}
......
Markdown is supported
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