diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2017-06-03 18:00:51 -0400 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2017-06-03 18:00:51 -0400 |
| commit | f154ae1ec88146017abf3de9d14d119facb5fc4c (patch) | |
| tree | cd857864dd52b088ccc8943b64fe9bbd59c04dc8 /templates/index.tmpl | |
| parent | 3f3cb7c7cede379914eed51c57e58f66ffdd1856 (diff) | |
| download | lastfm-api-f154ae1ec88146017abf3de9d14d119facb5fc4c.tar.gz | |
Basic web app
Diffstat (limited to 'templates/index.tmpl')
| -rw-r--r-- | templates/index.tmpl | 15 |
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" }} |
