diff --git a/assets/layouts/base.tmpl b/assets/layouts/base.tmpl index 4ef8b66..c2156e3 100644 --- a/assets/layouts/base.tmpl +++ b/assets/layouts/base.tmpl @@ -9,7 +9,9 @@
{{ range $flash := .Flashes }}
diff --git a/assets/pages/home.tmpl b/assets/pages/home.tmpl index 49a0be6..21ed6e1 100644 --- a/assets/pages/home.tmpl +++ b/assets/pages/home.tmpl @@ -22,11 +22,13 @@ last.fm
+

have gonic scrobble to last.fm on your behalf

{{ if .User.IsAdmin }} -

you can get an api key here

- update api key
+
+ update api key…
{{ end }} {{ if .CurrentLastFMAPIKey }} +
current status {{ if .User.LastFMSession }} linked @@ -34,12 +36,14 @@ unlink
{{ else }} unlinked - {{ $cbPath := path "/admin/link_lastfm_do" }} - {{ $cbURL := printf "%s%s" .RequestRoot $cbPath }} + {{ $cbPath := path "/admin/link_lastfm_do" }} + {{ $cbURL := printf "%s%s" .RequestRoot $cbPath }} link
{{ end }} {{ else if not .User.IsAdmin }} - api key not set. please ask your admin to set it +
+

api key not set

+

please ask your admin to set it

{{ end }}
@@ -54,16 +58,17 @@ {{ $user.Name }} {{ $user.CreatedAt | date }} | - change password + change password… | {{ if $user.IsAdmin }} - delete + delete… {{ else }} - delete + delete… {{ end }}
{{ end }} - create new +
+ create new… {{ else }} {{/* user panel to manage themselves */}} @@ -71,7 +76,7 @@ your account
- change password + change password…
{{ end }} @@ -117,16 +122,17 @@ {{ end }} +
- - +
+ + +