Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
kohinos
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
9
Issues
9
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cooperatic-mlc
kohinos
Commits
51a05627
Commit
51a05627
authored
Jan 09, 2020
by
Julien Jorry
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[CARTE PRESTA + GROUPE PRESTA] Fix issue with image in presta map
parent
40f82555
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
8 deletions
+11
-8
cartejs.html.twig
templates/groupepresta/block/cartejs.html.twig
+6
-4
cartejs.html.twig
templates/presta/block/cartejs.html.twig
+5
-4
No files found.
templates/groupepresta/block/cartejs.html.twig
View file @
51a05627
...
...
@@ -18,14 +18,16 @@
{%
for
groupepresta
in
groupegroupeprestataires
%}
{%
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
);
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
}
)
}}
'>
<strong>
{{
groupepresta.__toString
()
}}
</strong>
</a>
<br/>
{%
endspaceless
%}
<br/>
{%
for
rubrique
in
groupepresta.rubriques
%}
{%
spaceless
%}
<a class='maprubrique' href='
{{
path
(
'show_rubrique'
,
{
'slug'
:
rubrique.slug
}
)
}}
'>
{{
rubrique.name
|
replace
(
{
"\n"
:
'<br/>'
}
)
}}
</a>
{%
endspaceless
%}
{%
endfor
%}
"
);
<a class='maprubrique' href='
{{
path
(
'show_rubrique'
,
{
'slug'
:
rubrique.slug
}
)
}}
'>
{{
rubrique.name
|
replace
(
{
"\n"
:
'<br/>'
}
)
}}
</a>
{%
endfor
%}
{%
endspaceless
%}
"
);
{%
set
count
=
count
+
1
%}
{%
endif
%}
{%
endfor
%}
...
...
templates/presta/block/cartejs.html.twig
View file @
51a05627
...
...
@@ -18,14 +18,15 @@
{%
for
presta
in
prestataires
%}
{%
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
);
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
}
)
}}
'>
<strong>
{{
presta.__toString
()
}}
</strong>
</a>
<br/>
{%
endspaceless
%}
<br/>
{%
for
rubrique
in
presta.rubriques
%}
{%
spaceless
%}
<a class='maprubrique' href='
{{
path
(
'show_rubrique'
,
{
'slug'
:
rubrique.slug
}
)
}}
'>
{{
rubrique.name
|
replace
(
{
"\n"
:
'<br/>'
}
)
}}
</a>
{%
endspaceless
%}
{%
endfor
%}
"
);
<a class='maprubrique' href='
{{
path
(
'show_rubrique'
,
{
'slug'
:
rubrique.slug
}
)
}}
'>
{{
rubrique.name
|
replace
(
{
"\n"
:
'<br/>'
}
)
}}
</a>
{%
endfor
%}
{%
endspaceless
%}
"
);
{%
set
count
=
count
+
1
%}
{%
endif
%}
{%
endfor
%}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment