Commit 51a05627 by Julien Jorry

[CARTE PRESTA + GROUPE PRESTA] Fix issue with image in presta map

parent 40f82555
...@@ -18,14 +18,16 @@ ...@@ -18,14 +18,16 @@
{% for groupepresta in groupegroupeprestataires %} {% for groupepresta in groupegroupeprestataires %}
{% if groupepresta.geoloc != null and groupepresta.geoloc.lat != null and groupepresta.geoloc.lon != null%} {% if groupepresta.geoloc != null and groupepresta.geoloc.lat != null and groupepresta.geoloc.lon != null%}
var marker_{{count}} = L.marker([{{groupepresta.geoloc.lat}}, {{groupepresta.geoloc.lon}}]).addTo(mymap); var marker_{{count}} = L.marker([{{groupepresta.geoloc.lat}}, {{groupepresta.geoloc.lon}}]).addTo(mymap);
marker_{{count}}.bindPopup("{% if groupepresta.media != null %}{% thumbnail groupepresta.media, 'small' %}<br/><br/>{% endif %}{% spaceless %} marker_{{count}}.bindPopup("{% spaceless %}
{% if groupepresta.media != null %}{% thumbnail groupepresta.media, 'small' %}<br/><br/>{% endif %}
<a href='{{ path('show_groupeprestataire', {'slug': groupepresta.slug}) }}'> <a href='{{ path('show_groupeprestataire', {'slug': groupepresta.slug}) }}'>
<strong>{{groupepresta.__toString()}}</strong> <strong>{{groupepresta.__toString()}}</strong>
</a> </a>
<br/>{% endspaceless %} <br/>
{% for rubrique in groupepresta.rubriques %} {% for rubrique in groupepresta.rubriques %}
{% spaceless %}<a class='maprubrique' href='{{ path('show_rubrique', {'slug': rubrique.slug}) }}'>{{rubrique.name|replace({"\n": '<br/>'})}}</a> {% endspaceless %} <a class='maprubrique' href='{{ path('show_rubrique', {'slug': rubrique.slug}) }}'>{{rubrique.name|replace({"\n": '<br/>'})}}</a>
{% endfor %}"); {% endfor %}
{% endspaceless %}");
{% set count = count+1 %} {% set count = count+1 %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
......
...@@ -18,14 +18,15 @@ ...@@ -18,14 +18,15 @@
{% for presta in prestataires %} {% for presta in prestataires %}
{% if presta.geoloc != null and presta.geoloc.lat != null and presta.geoloc.lon != null%} {% if presta.geoloc != null and presta.geoloc.lat != null and presta.geoloc.lon != null%}
var marker_{{count}} = L.marker([{{presta.geoloc.lat}}, {{presta.geoloc.lon}}]).addTo(mymap); var marker_{{count}} = L.marker([{{presta.geoloc.lat}}, {{presta.geoloc.lon}}]).addTo(mymap);
marker_{{count}}.bindPopup("{% if presta.media != null %}{% thumbnail presta.media, 'small' %}<br/><br/>{% endif %}{% spaceless %} marker_{{count}}.bindPopup("{% spaceless %}{% if presta.media != null %}{% thumbnail presta.media, 'small' %}<br/><br/>{% endif %}
<a href='{{ path('show_prestataire', {'slug': presta.slug}) }}'> <a href='{{ path('show_prestataire', {'slug': presta.slug}) }}'>
<strong>{{presta.__toString()}}</strong> <strong>{{presta.__toString()}}</strong>
</a> </a>
<br/>{% endspaceless %} <br/>
{% for rubrique in presta.rubriques %} {% for rubrique in presta.rubriques %}
{% spaceless %}<a class='maprubrique' href='{{ path('show_rubrique', {'slug': rubrique.slug}) }}'>{{rubrique.name|replace({"\n": '<br/>'})}}</a> {% endspaceless %} <a class='maprubrique' href='{{ path('show_rubrique', {'slug': rubrique.slug}) }}'>{{rubrique.name|replace({"\n": '<br/>'})}}</a>
{% endfor %}"); {% endfor %}
{% endspaceless %}");
{% set count = count+1 %} {% set count = count+1 %}
{% endif %} {% endif %}
{% endfor %} {% endfor %}
......
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