--- a/src/hdalab/templates/notice.html Thu Jun 19 12:47:41 2014 +0200
+++ b/src/hdalab/templates/notice.html Fri Jun 20 13:10:39 2014 +0200
@@ -1,16 +1,17 @@
{% extends "base.html" %}
+{% load static %}
{% block title %}{{block.super}} > {{datasheet.title}}{% endblock %}
{% block css_import %}
{{block.super}}
- <link rel="stylesheet" type="text/css" href="{{STATIC_URL}}hdalab/css/notice.css?refresh" />
+ <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/notice.css?refresh' %}" />
{% endblock %}
{% block js_import %}
{{block.super}}
- <script src="{{STATIC_URL}}hdalab/lib/underscore-min.js"></script>
- <script src="{{STATIC_URL}}hdalab/js/notice.js?refresh"></script>
+ <script src="{% static 'hdalab/lib/underscore-min.js' %}"></script>
+ <script src="{% static 'hdalab/js/notice.js?refresh' %}"></script>
{% endblock %}
{% block main_content %}
@@ -43,7 +44,7 @@
{% for ds in related %}
<li class="datasheet">
<img src="http://histoiredesarts.culture.fr/images/cached/images/{{ds.hda_id}}.jpg" />
- <h3><a href="{% url notice ds.hda_id %}">{{ds.title}}</a></h3>
+ <h3><a href="{% url 'notice' ds.hda_id %}">{{ds.title}}</a></h3>
<h4>{{ds.organisation_name}}</h4>
<ul class="datasheet-tags">{% for t in ds.ordered_tags %}<li data-tag-id="{{t.id}}" class="related-datasheet-tag {% if t.common %} common-tag{% endif %}">{{t.label}}</li>{% endfor %}</ul>
</li>