Skip to content

Commit

Permalink
Reduce the number of HTML lines
Browse files Browse the repository at this point in the history
Signed-off-by: Jo Vandeginste <[email protected]>
  • Loading branch information
jovandeginste committed Feb 28, 2024
1 parent 4b64bf4 commit cbaac14
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions views/workouts/workouts_show.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,8 @@ <h2 class="{{ IconFor .Type.String }}">{{ .Name }}</h2>
>
<script>
let points = [
{{ range .Data.Points }}
{
"lat": {{ .Lat }},
"lng": {{ .Lng }},
"speed": {{ .AverageSpeed }},
"elevation": {{ .Elevation }},
"title": '{{ template "workout_point_title" . }}',
},
{{ range .Data.Points -}}
{ "lat": {{ .Lat }}, "lng": {{ .Lng }}, "speed": {{ .AverageSpeed }}, "elevation": {{ .Elevation }}, "title": '{{ template "workout_point_title" . }}', },
{{ end }}
];
let center = [{{ .Data.Center.Lat }}, {{ .Data.Center.Lng }}];
Expand Down

0 comments on commit cbaac14

Please sign in to comment.