summaryrefslogtreecommitdiffstats
path: root/templates/index.tmpl
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2017-06-04 19:30:25 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2017-06-04 19:30:25 -0400
commit81522cbae16c6aadb1b789f3f875dc50f10cc005 (patch)
treeab95db0a843783d4cfcd328e091a01597e241ee1 /templates/index.tmpl
parentf154ae1ec88146017abf3de9d14d119facb5fc4c (diff)
downloadlastfm-api-81522cbae16c6aadb1b789f3f875dc50f10cc005.tar.gz
Clean up
Diffstat (limited to 'templates/index.tmpl')
-rw-r--r--templates/index.tmpl15
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" }}