Add retroarch imports to list view
This commit is contained in:
@ -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
|
||||
|
||||
|
||||
|
||||
@ -54,6 +54,31 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if retroarch_imports %}
|
||||
<div class="row">
|
||||
<h3>Retroarch</h3>
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Started</th>
|
||||
<th scope="col">Finished</th>
|
||||
<th scope="col">Scrobbles</th>
|
||||
</tr>
|
||||
</thead>
|
||||
{% for obj in retroarch_imports %}
|
||||
<tr>
|
||||
<td><a href="{{obj.get_absolute_url}}">{{obj.human_start}}</a></td>
|
||||
<td>{{obj.processed_finished}}</td>
|
||||
<td>{{obj.process_count}}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
|
||||
{% if koreader_imports %}
|
||||
<div class="row">
|
||||
<h3>KOReader</h3>
|
||||
|
||||
Reference in New Issue
Block a user