summaryrefslogtreecommitdiff
path: root/chimere
diff options
context:
space:
mode:
authorÉtienne Loks <etienne.loks@peacefrogs.net>2012-03-10 18:54:18 +0100
committerÉtienne Loks <etienne.loks@peacefrogs.net>2012-03-10 18:54:18 +0100
commit5d6cfee03d1d80f18f0c70ac9bcde39ba7e2605f (patch)
tree6c488c7daff5cc5826a87a7184d74a743f283352 /chimere
parent59e9dca55e26b4ea8bd0a52717676c3c794cac5f (diff)
downloadChimère-5d6cfee03d1d80f18f0c70ac9bcde39ba7e2605f.tar.bz2
Chimère-5d6cfee03d1d80f18f0c70ac9bcde39ba7e2605f.zip
Correct bad parameters
Diffstat (limited to 'chimere')
-rw-r--r--chimere/templates/chimere/blocks/categories.html2
-rw-r--r--chimere/templates/chimere/blocks/head_chimere.html2
-rw-r--r--chimere/templates/chimere/detail.html4
3 files changed, 4 insertions, 4 deletions
diff --git a/chimere/templates/chimere/blocks/categories.html b/chimere/templates/chimere/blocks/categories.html
index 5ba89fc..94e947f 100644
--- a/chimere/templates/chimere/blocks/categories.html
+++ b/chimere/templates/chimere/blocks/categories.html
@@ -11,7 +11,7 @@
<li id='li_sub_{{sub_category.id}}'>
<input type='checkbox' name='category_{{sub_category.id}}' id='category_{{sub_category.id}}'{% if sub_category.selected %} checked='checked'{% endif %}/>
<label for='category_{{sub_category.id}}'>
- <img alt='{{ sub_category.name }}' src='{{ MEDIA_URL }}{{sub_category.icon.image}}'/>
+ <img alt='{{ sub_category.name }}' src='{{ STATIC_URL }}{{sub_category.icon.image}}'/>
{% trans sub_category.name %}
</label>
<img id="zoom_to_subcategory_{{sub_category.id}}" class="zoom_image zoom_to_subcategory" alt='{% trans "Zoom to" %} {{sub_category.name}}' src='{{ STATIC_URL }}chimere/img/zoom.png' />
diff --git a/chimere/templates/chimere/blocks/head_chimere.html b/chimere/templates/chimere/blocks/head_chimere.html
index 85168f4..3ad7bf4 100644
--- a/chimere/templates/chimere/blocks/head_chimere.html
+++ b/chimere/templates/chimere/blocks/head_chimere.html
@@ -8,7 +8,7 @@
/* lower cases are for retrocompatibility */
var DYNAMIC_CATEGORIES = {{ DYNAMIC_CATEGORIES|lower }};
var STATIC_URL = static_url = "{{ STATIC_URL }}";
- var MEDIA_URL = media_path = "{{ MEDIA_URL }}";
+ var MEDIA_URL = media_path = "{{ STATIC_URL }}"; // to be corrected
var extra_url = "{{ EXTRA_URL }}";
var ICON_WIDTH = {{ ICON_WIDTH }};
var ICON_HEIGHT = {{ ICON_HEIGHT }};
diff --git a/chimere/templates/chimere/detail.html b/chimere/templates/chimere/detail.html
index 86ab6de..98033e7 100644
--- a/chimere/templates/chimere/detail.html
+++ b/chimere/templates/chimere/detail.html
@@ -1,7 +1,7 @@
{% load i18n sanitize %}
<h2 class='ui-widget ui-state-default ui-corner-all ui-widget-header'>{{ marker.name }}</h2>
<div id='detail_content'>
- {% for picture in marker.default_pictures %}<img src='{{MEDIA_URL}}{{picture.picture}}' alt='{{marker.name}}'/>{%endfor%}
+ {% for picture in marker.default_pictures %}<img src='{{STATIC_URL}}{{picture.picture}}' alt='{{marker.name}}'/>{%endfor%}
<div>
{% if dated %}
<p id='detail_start_date'><label>{% trans "Date:" %}</label> <span>{{marker.start_date|date:"D d M Y"}}
@@ -35,7 +35,7 @@
{% for multimedia_item in marker.multimedia_items %}
<div id="tab-{{ forloop.counter }}" class='{% ifequal multimedia_item.multimedia_type.media_type 'V' %}video{% else %}other{% endifequal %}'>
{% if multimedia_item.picture %}
- <img alt="{{multimedia_item.name}}" src='{{MEDIA_URL}}{{multimedia_item.picture}}'/>{% endif %}
+ <img alt="{{multimedia_item.name}}" src='{{STATIC_URL}}{{multimedia_item.picture}}'/>{% endif %}
{% if multimedia_item.url and not multimedia_item.multimedia_type.iframe %}
<div class="media-player">
<span class="media-label">{{multimedia_item.name}}</span>