blob: c8fc9023fcf61c9e93999cbc4bb31dba23769230 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{% load i18n sanitize chimere_tags %}
<a href='#' class='close_img'>{% trans "Close"%}</a>
<h4>{{ marker.name }}</h4>
<div id='detail_content'>
{% if marker.default_pictures or marker.default_pictures or marker.default_multimedia_items%}
<div class='small-gallery'>
{% for picture in marker.default_pictures %}
{% multimedia_render picture %}
{%endfor%}
{% for multimedia_item in marker.default_multimedia_items %}
{% multimedia_render multimedia_item %}
{%endfor%}
{% for item in marker.multimedia_items %}
{% multimedia_render item %}
{%endfor%}
</div>
{%endif%}
<div>
{% if dated %}
<p id='detail_start_date'><label>{% trans "Date:" %}</label> <span>{{marker.start_date|date:"D d M Y"}}
{% if marker.end_date %} - {{marker.end_date|date:"D d M Y"}}</p>{% endif %}</span>
{% endif %}
{% if marker.description %}
<div id='description_long_{{marker.pk}}' class='description'>{{ marker.description|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}</div>
{% endif %}
{% for property in marker.getProperties %}{% if property.value %}
<div class='properties' id='{{property.propertymodel.getAttrName}}'><strong>{{property.propertymodel.name}}</strong> : {% if 'http://' in property.value or 'https://' in property.value %}<a href='{{ property.value|sanitize:""}}'>{%endif%}{{ property.value|sanitize:"p b i br hr strong em span:style a:href:target ul li ol h1 h2 h3 h4 table td tr th"|safe}}{% if 'http://' in property.value or 'https://' in property.value %}</a>{%endif%}</div>
{%endif%}{% endfor %}
</div>
</div>
<div id='detail_footer'>
<div id='detail-action-bar'>
{%if routing_enabled%}<a class='detail_from' href='#'>{% trans "From" context "routing" %}</a>
| <a class='detail_step' href='#'>{% trans "Add step" context "routing" %}</a>
| <a class='detail_to' href='#'>{% trans "To" context "routing" %}</a>
{% endif %}
</div>
<ul class='share'>
<li><a href="{{modif_by_email}}">{% trans "Propose a modification" %}</a></li>
<li class='sep'>–</li>
</ul>
{% share_bar marker.name '' '' %}
{% comment %}
<a href='{% if marker.route %}{% url "chimere:editroute-item" area_name_slash|default_if_none:"" marker.route.pk "" %}{%else%}{% url 'chimere:edit-item' area_name_slash|default_if_none:"" marker.pk "" %}{%endif%}'>
{% trans "Submit a modification" %}
</a>
{% endcomment %}
</div>
{% comment %}
<script language='javascript' type='text/javascript'>
<!--
$('html').addClass('js-on');
$(function(){
$("a[rel^='prettyPhoto']").prettyPhoto({
show_title: false,
social_tools: ''
});
});
// -->
</script>
{% endcomment %}
|