diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2017-06-04 19:30:25 -0400 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2017-06-04 19:30:25 -0400 |
| commit | 81522cbae16c6aadb1b789f3f875dc50f10cc005 (patch) | |
| tree | ab95db0a843783d4cfcd328e091a01597e241ee1 /templates/index.tmpl | |
| parent | f154ae1ec88146017abf3de9d14d119facb5fc4c (diff) | |
| download | lastfm-api-81522cbae16c6aadb1b789f3f875dc50f10cc005.tar.gz | |
Clean up
Diffstat (limited to 'templates/index.tmpl')
| -rw-r--r-- | templates/index.tmpl | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/templates/index.tmpl b/templates/index.tmpl index 7ee1801..8468b31 100644 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -1,15 +1,18 @@ {{template "header" . }} <h2>Recent Listens</h2> <ul class="scrobbles"> -{{range .Scrobbles}} +{{- range .Scrobbles}} <li> - <img src="{{or .Image "https://lastfm-img2.akamaized.net/i/u/64s/4128a6eb29f94943c9d206c08e625904.png"}}" - height="40"/> + <img src="{{or .Image "https://lastfm-img2.akamaized.net/i/u/64s/4128a6eb29f94943c9d206c08e625904.png"}}"/> <div> - {{.Artist}} — {{.TrackName}}<br/> - <span class="album">in {{.Album}}</span> + {{.Artist}} — {{.TrackName}}<br/> + <span class="album">in {{.Album}}</span> + </div> + <div class="like"> + <span class="album">{{ago .Time}}</span><br/> + <i class="material-icons">favorite_border</i> </div> </li> -{{end}} +{{- end}} </ul> {{template "footer" }} |
