summaryrefslogtreecommitdiffstats
path: root/templates/index.tmpl
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2017-06-03 18:00:51 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2017-06-03 18:00:51 -0400
commitf154ae1ec88146017abf3de9d14d119facb5fc4c (patch)
treecd857864dd52b088ccc8943b64fe9bbd59c04dc8 /templates/index.tmpl
parent3f3cb7c7cede379914eed51c57e58f66ffdd1856 (diff)
downloadlastfm-api-f154ae1ec88146017abf3de9d14d119facb5fc4c.tar.gz
Basic web app
Diffstat (limited to 'templates/index.tmpl')
-rw-r--r--templates/index.tmpl15
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/index.tmpl b/templates/index.tmpl
new file mode 100644
index 0000000..7ee1801
--- /dev/null
+++ b/templates/index.tmpl
@@ -0,0 +1,15 @@
+{{template "header" . }}
+<h2>Recent Listens</h2>
+<ul class="scrobbles">
+{{range .Scrobbles}}
+ <li>
+ <img src="{{or .Image "https://lastfm-img2.akamaized.net/i/u/64s/4128a6eb29f94943c9d206c08e625904.png"}}"
+ height="40"/>
+ <div>
+ {{.Artist}} — {{.TrackName}}<br/>
+ <span class="album">in {{.Album}}</span>
+ </div>
+ </li>
+{{end}}
+</ul>
+{{template "footer" }}