Skip to content

Commit

Permalink
admin: add HumanDuration to some spots, working on #13
Browse files Browse the repository at this point in the history
  • Loading branch information
Wessie committed May 10, 2024
1 parent da2a8d8 commit 92f0643
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin-light/forms/database.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
<label class="label mt-2">LP/LR</label>
</div>
<div class="field-body">
<span class="mt-2">{{.Song.LastPlayed | Since}} / {{.Song.LastRequested | Since}}</span>
<span class="mt-2">{{.Song.LastPlayed | Since | HumanDuration}} / {{.Song.LastRequested | Since | HumanDuration}}</span>
</div>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion admin-light/tracker.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
{{range .Listeners}}
<tr>
<td>{{.ID}}</div>
<td>{{Since .Start}}</div>
<td>{{Since .Start | HumanDuration}}</div>
<td>{{.UserAgent}}</div>
<td>{{.IP}}</div>
<td><button class="button" hx-post="/admin/tracker/remove?id={{.ID}}" hx-push-url="false">Kick</button></div>
Expand Down

0 comments on commit 92f0643

Please sign in to comment.