aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorThibaut Horel <thibaut.horel@gmail.com>2017-06-19 22:21:33 -0400
committerThibaut Horel <thibaut.horel@gmail.com>2017-06-19 22:21:33 -0400
commita2a69c3fd9f0149650f8c53d985049a38f36f238 (patch)
treef6a696fdece1aa12537c2c343e4162f52a3f2840 /templates
parent458294c8de2af24313d5d3e430482fb187128434 (diff)
downloadlastfm-api-a2a69c3fd9f0149650f8c53d985049a38f36f238.tar.gz
Lastfm loved tracks import
Diffstat (limited to 'templates')
-rw-r--r--templates/settings.tmpl10
1 files changed, 7 insertions, 3 deletions
diff --git a/templates/settings.tmpl b/templates/settings.tmpl
index da3dabb..5632cda 100644
--- a/templates/settings.tmpl
+++ b/templates/settings.tmpl
@@ -30,10 +30,14 @@
</div>
<p>
- {{if not .LastImport.IsZero}}
- {{.ImportCount}} listens imported from Last.fm (last import on {{.LastImport.Format "Mon, Jan 2 15:04"}}).
+ {{if not .Import.To.IsZero}}
+ {{.Import.Count}} listens imported from Last.fm (last import on {{.Import.To.Format "Mon, Jan 2 15:04"}}).
{{end}}
- <input type="submit" name="import" value="IMPORT">
+ <input type="submit" name="import" value="IMPORT"><br/>
+ {{if not .LoveImport.Time.IsZero}}
+ {{.LoveImport.Count}} loved tracks imported from Last.fm (last import on {{.LoveImport.Time.Format "Mon, Jan 2 15:04"}}).
+ {{end}}
+ <input type="submit" name="love_import" value="IMPORT">
</p>
</section>
<div class="row">