Skip to content

Commit

Permalink
Fix more views with Type to String conversion
Browse files Browse the repository at this point in the history
Signed-off-by: Jo Vandeginste <[email protected]>
  • Loading branch information
jovandeginste committed Feb 24, 2024
1 parent df2984b commit c24304e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion views/partials/workout_details.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
<tr>
<td class="{{ IconFor `workout` }}"></td>
<th>{{ i18n "Type" }}</th>
<td>{{ .Type }}</td>
<td>{{ .Type.String }}</td>
</tr>
<tr>
<td class="{{ IconFor `duration` }}"></td>
Expand Down
4 changes: 3 additions & 1 deletion views/partials/workout_item.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
>
<div class="flex flex-wrap gap-2">
<div class="grow">
<a class="{{ IconFor .Type }}" href="{{ RouteFor `workout-show` .ID }}"
<a
class="{{ IconFor .Type.String }}"
href="{{ RouteFor `workout-show` .ID }}"
>{{ .Name }}</a
>
</div>
Expand Down
4 changes: 2 additions & 2 deletions views/user/user_show.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,12 +45,12 @@ <h2 class="{{ IconFor `dashboard` }}">
events: [
{{ range .workouts }}
{
title: "{{ .Type }}",
title: "{{ .Type.String }}",
start: "{{ .Date | LocalDate }}",
url: "/workouts/{{ .ID }}",
display: 'block',
extendedProps: {
iconClass: "{{ IconFor .Type }}",
iconClass: "{{ IconFor .Type.String }}",
},
},
{{ end }}
Expand Down

0 comments on commit c24304e

Please sign in to comment.