|
@@ -3,81 +3,79 @@
|
|
|
{% block title %}Scrobble Imports{% endblock %}
|
|
|
|
|
|
{% block lists %}
|
|
|
+{% if tsv_imports %}
|
|
|
<div class="row">
|
|
|
- {% if tsv_imports %}
|
|
|
- <div class="col-md">
|
|
|
- <h3>Audioscrobbler</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>
|
|
|
- <tbody>
|
|
|
- {% for obj in tsv_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>
|
|
|
+ <h3>Audioscrobbler</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>
|
|
|
+ <tbody>
|
|
|
+ {% for obj in tsv_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>
|
|
|
- {% endif %}
|
|
|
+</div>
|
|
|
+{% endif %}
|
|
|
|
|
|
- {% if lastfm_imports %}
|
|
|
- <div class="col-md">
|
|
|
- <h3>LastFM</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 lastfm_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>
|
|
|
+{% if lastfm_imports %}
|
|
|
+<div class="row">
|
|
|
+ <h3>LastFM</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 lastfm_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>
|
|
|
- {% endif %}
|
|
|
+</div>
|
|
|
+{% endif %}
|
|
|
|
|
|
- {% if koreader_imports %}
|
|
|
- <div class="col-md">
|
|
|
- <h3>KOReader</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 koreader_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>
|
|
|
+{% if koreader_imports %}
|
|
|
+<div class="row">
|
|
|
+ <h3>KOReader</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 koreader_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>
|
|
|
- {% endif %}
|
|
|
</div>
|
|
|
+{% endif %}
|
|
|
{% endblock %}
|