diff --git a/vrobbler/apps/scrobbles/views.py b/vrobbler/apps/scrobbles/views.py index 3d208a7..94673f4 100644 --- a/vrobbler/apps/scrobbles/views.py +++ b/vrobbler/apps/scrobbles/views.py @@ -167,6 +167,9 @@ class ScrobbleImportListView(TemplateView): context_data["lastfm_imports"] = LastFmImport.objects.filter( user=self.request.user, ).order_by("-processing_started")[:10] + context_data["retroarch_imports"] = RetroarchImport.objects.filter( + user=self.request.user, + ).order_by("-processing_started")[:10] return context_data diff --git a/vrobbler/templates/scrobbles/import_list.html b/vrobbler/templates/scrobbles/import_list.html index e46ca77..ca360c0 100644 --- a/vrobbler/templates/scrobbles/import_list.html +++ b/vrobbler/templates/scrobbles/import_list.html @@ -41,13 +41,38 @@ Scrobbles - {% for obj in lastfm_imports %} + {% for obj in lastfm_imports %} + + {{obj.human_start}} + {{obj.processed_finished}} + {{obj.process_count}} + + {% endfor %} + + + + +{% endif %} + +{% if retroarch_imports %} +
+

Retroarch

+
+ + - - - + + + - {% endfor %} + + {% for obj in retroarch_imports %} + + + + + + {% endfor %}
{{obj.human_start}}{{obj.processed_finished}}{{obj.process_count}}StartedFinishedScrobbles
{{obj.human_start}}{{obj.processed_finished}}{{obj.process_count}}
@@ -66,13 +91,13 @@ Scrobbles - {% for obj in koreader_imports %} - - {{obj.human_start}} - {{obj.processed_finished}} - {{obj.process_count}} - - {% endfor %} + {% for obj in koreader_imports %} + + {{obj.human_start}} + {{obj.processed_finished}} + {{obj.process_count}} + + {% endfor %}