summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/chimere/base.html4
-rw-r--r--templates/chimere/blocks/actions.html27
-rw-r--r--templates/chimere/blocks/page_title.html12
-rw-r--r--templates/chimere/detail.html19
-rw-r--r--templates/chimere/main_map.html8
5 files changed, 36 insertions, 34 deletions
diff --git a/templates/chimere/base.html b/templates/chimere/base.html
index b24f070..8f13830 100644
--- a/templates/chimere/base.html
+++ b/templates/chimere/base.html
@@ -32,6 +32,8 @@
<!-- End Piwik Code -->
{% endblock %}
{% block header %}
+{% comment %}
+<-- app mobile !-->
<noscript>
<div id="no-js-message">
<p id='no-js' class='warning'>{% trans "You must enable JavaScript in your browser to display Chimère."%}</p>
@@ -43,6 +45,7 @@
{% block actions %}
{% include "chimere/blocks/actions.html" %}
{% endblock %}
+{% endcomment %}
{% endblock %}
{% block content %}
{% block top %}{% endblock %}
@@ -53,4 +56,3 @@
{% block footer %}
{% include "chimere/blocks/footer.html" %}
{% endblock %}
-
diff --git a/templates/chimere/blocks/actions.html b/templates/chimere/blocks/actions.html
index dca7fc7..be7f6bd 100644
--- a/templates/chimere/blocks/actions.html
+++ b/templates/chimere/blocks/actions.html
@@ -1,26 +1 @@
-{% load i18n chimere_tags %}
- <div id="topbar">
- <ul id='action' class='action'>
- <li id='action-carte' class='state-active'>
- {% trans "Map" %}
- </li>
- <li id='action-participate'>
- {% trans "Participate" %}
- </li>
- </ul>
- <ul id='action-2' class='action'>
- <li id='action-news'>
- {% trans "News" %}
- </li>
- <li id='action-project' class='dyn-page'>
- <a href='{% url chimere:extra_page "" "project"%}'>{% trans "The project" %}</a>
- </li>
- </ul>
- <ul id='action-3' class='action'>
- <li class='print-page'><a href='#'>{% trans "Print"%}</a></li>
- <li class='share-list'>
- {% share_bar %}
- </li>
- {%comment%}<li class='help-page'><a href='#'>{% trans "Help"%}</a></li>{%endcomment%}
- </ul>
- </div>
+<!-- SUPPRIME POUR VUE MOBILE --> \ No newline at end of file
diff --git a/templates/chimere/blocks/page_title.html b/templates/chimere/blocks/page_title.html
index f068b97..785299a 100644
--- a/templates/chimere/blocks/page_title.html
+++ b/templates/chimere/blocks/page_title.html
@@ -1,5 +1,7 @@
-{% load i18n %}
- <div id='page_title'>
- <h1>Carte OuVerte</h1>
- <h2>du plateau de saclay</h2>
- </div>
+{% load i18n %}
+<!-- SUPPRIME POUR VUE MOBILE
+ <div id='page_title'>
+ <h1>Carte OuVerte</h1>
+ <h2>du plateau de saclay</h2>
+ </div>
+--> \ No newline at end of file
diff --git a/templates/chimere/detail.html b/templates/chimere/detail.html
index c0f9d64..5d386e0 100644
--- a/templates/chimere/detail.html
+++ b/templates/chimere/detail.html
@@ -17,8 +17,8 @@
{%endif%}
<div>
{% if dated %}
- <p id='detail_start_date'><label>{% trans "Date:" %}</label> <span>{{marker.start_date|date:"l d F Y"}}
- {% if marker.end_date %} - {{marker.end_date|date:"l d F Y"}}</p>{% endif %}</span>
+ <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>
@@ -28,6 +28,8 @@
{%endif%}{% endfor %}
{% if marker.origin %}
<div class='origin'><label>Source :</label> {{marker.origin|safe}}</div>
+ {% if marker.multimedia_items %}
+ <a href='#' id='show_gallery_link'>{% trans "Show multimedia gallery" %}</a>
{% endif %}
</div>
</div>
@@ -49,6 +51,19 @@
</a>
{% endcomment %}
</div>
+{% if marker.multimedia_items %}
+<div id='gallery-{{marker.pk}}' class='gallery'>
+ <div class='tabs'>
+ <ul>{% for item in marker.multimedia_items %}
+ <li><a href="#tab-{{ forloop.counter }}">{{ item.name }}</a></li>{% endfor %}
+ </ul>
+ {% 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 %}'>
+ {% multimedia_render multimedia_item %}
+ </div>{% endfor %}
+ </div>
+</div>
+{% endif %}
<script language='javascript' type='text/javascript'>
<!--
$('html').addClass('js-on');
diff --git a/templates/chimere/main_map.html b/templates/chimere/main_map.html
index a14ea3f..38c4bbe 100644
--- a/templates/chimere/main_map.html
+++ b/templates/chimere/main_map.html
@@ -24,6 +24,8 @@
{% block sidebar %}
<div class='sidebar-handler' id='sidebar-handler-hide'>
</div>
+ {% comment %}
+ <!-- SUPPRIME POUR LA VUE MOBILE
<div id='action-panel'>
<ul id='map-actions' class='action'>
<li id='action-categories' class='state-active'>
@@ -45,6 +47,8 @@
</li>
</ul>
</div>
+ FIN SUPPRESSION POUR LA VUE -->
+ {% endcomment %}
<div id='panel'>
<div id='map-panel'>
<form action='.' method='post' name='frm_categories' id='frm_categories'>
@@ -62,10 +66,14 @@
</div>
</div>
</div>
+ {% comment %}
+ <!-- SUPPRIME POUR LA VUE MOBILE
<div class='footer' id='footer-panel'>
{% if contact_email %}<a href='mailto:{{contact_email}}' id='contactus'>{% trans "contact us" %}</a> | {% endif %}
<a href='{% url chimere:extra_page '' 'legal' %}' id='page-legal' class='dyn-page'>{% trans "terms of service, credits" %}</a>
</div>
+ FIN SUPPRESSION POUR LA VUE -->
+ {% endcomment %}
{% endblock %}
{% block content %}
<div id='category_description'>