Commit 0f72de5c by Damien Moulard

on homepage map, higlight new prestataires

parent d73ae436
......@@ -438,3 +438,7 @@ form[name="formEncaissement"] label {
#infoForUserModal .modal-body {
word-break: break-all;
}
.new-presta-icon {
filter: hue-rotate(200deg) brightness(110%) contrast(120%);
}
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -6,7 +6,7 @@
"/build/app.3644f7b2.js"
],
"css": [
"/build/app.ec67f059.css"
"/build/app.3120e5f3.css"
]
},
"admin": {
......
{
"build/app.css": "/build/app.ec67f059.css",
"build/app.css": "/build/app.3120e5f3.css",
"build/app.js": "/build/app.3644f7b2.js",
"build/admin.css": "/build/admin.4de55830.css",
"build/admin.js": "/build/admin.63735322.js",
......
......@@ -15,10 +15,14 @@
{% for geolocp in presta.geolocs %}
{% if geolocp.enabled and geolocp.geoloc.lat != null and geolocp.geoloc.lon != null %}
{% if presta.rubriques|length > 0 and presta.rubriques.first.media is not null %}
var iconClassName = 'kohinos-map-icon';
{% if date(presta.getCreatedAt()) > date('-2months') %}
iconClassName = 'kohinos-map-icon new-presta-icon';
{% endif %}
var icon = L.icon({
iconSize: [50, 50],
iconAnchor: [25,50],
className: 'kohinos-map-icon',
className: iconClassName,
iconUrl : '{% path presta.rubriques.first.media, "preview" %}'
});
var marker_{{count}} = L.marker([{{geolocp.geoloc.lat}}, {{geolocp.geoloc.lon}}], {icon: icon}).addTo(mymap);
......@@ -26,6 +30,9 @@
var marker_{{count}} = L.marker([{{geolocp.geoloc.lat}}, {{geolocp.geoloc.lon}}]).addTo(mymap);
{% endif %}
marker_{{count}}.bindPopup("{% spaceless %}{% if presta.media != null %}{% set media %}{% thumbnail presta.media, 'small' %}{% endset %} {{ media|raw|replace({'"' : "'"})|raw }}<br/><br/>{% endif %}
{% if date(presta.getCreatedAt()) > date('-2months') %}
<strong style='font-size:16px;'>[Nouveau] </strong>
{% endif %}
<a href='{{ path('show_prestataire', {'slug': presta.slug}) }}'>
<strong style='font-size:16px;'>{{presta.__toString()}}</strong>
</a>
......
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