Skip to content

Commit

Permalink
Fix for bug in html/template - whitespace around continue
Browse files Browse the repository at this point in the history
  • Loading branch information
setnicka committed Jan 5, 2023
1 parent 5eac0cf commit c3f0bd8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions templates/org/org_index_map.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ L.tileLayer('https://m{s}.mapserver.mapy.cz/turist-m/{z}-{x}-{y}', {
}).addTo(map);

{{ range .Ciphers.Ciphers }}
{{ if .Position.Point.IsZero }}{{ continue }}{{ end }}
{{ if .Position.Point.IsZero }}{{continue}}{{ end }}
L.circle({{ .Position.Point | latlon }}, {
color: 'yellow',
fillColor: '#fbff94',
Expand All @@ -40,7 +40,7 @@ L.tileLayer('https://m{s}.mapserver.mapy.cz/turist-m/{z}-{x}-{y}', {
}).addTo(map).on('click', function() {highlightCipher("{{ .ID }}")});
{{ end }}
{{ range .Ciphers.MiniCiphers }}
{{ if .Position.Point.IsZero }}{{ continue }}{{ end }}
{{ if .Position.Point.IsZero }}{{continue}}{{ end }}
L.circle({{ .Position.Point | latlon }}, {
color: 'yellow',
fillColor: '#fbff94',
Expand All @@ -54,7 +54,7 @@ L.tileLayer('https://m{s}.mapserver.mapy.cz/turist-m/{z}-{x}-{y}', {
}).addTo(map).on('click', function() {highlightCipher("{{ .ID }}")});
{{ end }}
{{ range .Ciphers.Simple }}
{{ if .Position.Point.IsZero }}{{ continue }}{{ end }}
{{ if .Position.Point.IsZero }}{{continue}}{{ end }}
L.marker({{ .Position.Point | latlon }}, {
title: "{{ .Name }}",
icon: simpleIcon,
Expand Down
6 changes: 3 additions & 3 deletions templates/org/org_playback.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ L.tileLayer('https://m{s}.mapserver.mapy.cz/turist-m/{z}-{x}-{y}', {
}).addTo(map);

{{ range .Ciphers.Ciphers }}
{{ if .Position.Point.IsZero }}{{ continue }}{{ end }}
{{ if .Position.Point.IsZero }}{{continue}}{{ end }}
L.circle({{ .Position.Point | latlon }}, {
color: 'yellow',
fillColor: '#fbff94',
Expand All @@ -41,7 +41,7 @@ L.tileLayer('https://m{s}.mapserver.mapy.cz/turist-m/{z}-{x}-{y}', {
}).addTo(map).on('click', function() {highlightCipher("{{ .ID }}")});
{{ end }}
{{ range .Ciphers.MiniCiphers }}
{{ if .Position.Point.IsZero }}{{ continue }}{{ end }}
{{ if .Position.Point.IsZero }}{{continue}}{{ end }}
L.circle({{ .Position.Point | latlon }}, {
color: 'yellow',
fillColor: '#fbff94',
Expand All @@ -55,7 +55,7 @@ L.tileLayer('https://m{s}.mapserver.mapy.cz/turist-m/{z}-{x}-{y}', {
}).addTo(map).on('click', function() {highlightCipher("{{ .ID }}")});
{{ end }}
{{ range .Ciphers.Simple }}
{{ if .Position.Point.IsZero }}{{ continue }}{{ end }}
{{ if .Position.Point.IsZero }}{{continue}}{{ end }}
L.marker({{ .Position.Point | latlon }}, {
title: "{{ .Name }}",
icon: simpleIcon,
Expand Down

0 comments on commit c3f0bd8

Please sign in to comment.