Skip to content

Commit

Permalink
Merge pull request #163 from jovandeginste/fix-equip-layout
Browse files Browse the repository at this point in the history
Fix the layout of the equipment details
  • Loading branch information
jovandeginste committed Jun 2, 2024
2 parents 0d0101d + ebdc28c commit 44bb39c
Showing 1 changed file with 24 additions and 26 deletions.
50 changes: 24 additions & 26 deletions views/equipment/equipment_show.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,30 @@ <h2>{{ i18n "Equipment" }}: {{ .Name }}</h2>
</div>
<div class="lg:flex lg:flex-wrap">
<div class="basis-1/2">
<div class="inner-form">
<h3 class="grow justify-start {{ IconFor `totals` }}">
{{ i18n "Totals" }}
</h3>
{{ with .GetTotals }}
<table>
<tbody>
<tr>
<td class="{{ IconFor `distance` }}"></td>
<th>{{ i18n "Total distance" }}</th>
<td>
{{ .Distance | HumanDistance }} {{
CurrentUser.PreferredUnits.Distance }}
</td>
</tr>
<tr>
<td class="{{ IconFor `duration` }}"></td>
<th>{{ i18n "Total duration" }}</th>
<td>{{ .Duration | HumanDuration }}</td>
</tr>
</tbody>
</table>
{{ end }}
</div>
<div class="inner-form">
<table>
<tbody>
Expand Down Expand Up @@ -85,32 +109,6 @@ <h3 class="grow justify-start {{ IconFor `workout` }}">
</table>
</div>
</div>
<div class="basis-1/2">
<div class="inner-form">
<h3 class="grow justify-start {{ IconFor `totals` }}">
{{ i18n "Totals" }}
</h3>
{{ with .GetTotals }}
<table>
<tbody>
<tr>
<td class="{{ IconFor `distance` }}"></td>
<th>{{ i18n "Total distance" }}</th>
<td>
{{ .Distance | HumanDistance }} {{
CurrentUser.PreferredUnits.Distance }}
</td>
</tr>
<tr>
<td class="{{ IconFor `duration` }}"></td>
<th>{{ i18n "Total duration" }}</th>
<td>{{ .Duration | HumanDuration }}</td>
</tr>
</tbody>
</table>
{{ end }}
</div>
</div>
</div>
{{ end }}
</div>
Expand Down

0 comments on commit 44bb39c

Please sign in to comment.