mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
56 lines
1.8 KiB
Django/Jinja
56 lines
1.8 KiB
Django/Jinja
{% set scrobbles = dbc.get_scrobbles(filterkeys,limitkeys,amountkeys) %}
|
|
|
|
{% set firstindex = amountkeys.page * amountkeys.perpage %}
|
|
{% set lastindex = firstindex + amountkeys.perpage %}
|
|
|
|
{% import 'snippets/entityrow.jinja' as entityrow %}
|
|
|
|
|
|
<script src="/edit.js"></script>
|
|
|
|
|
|
<table class='list'>
|
|
{% for s in scrobbles -%}
|
|
{%- if loop.index0 >= firstindex and loop.index0 < lastindex -%}
|
|
<tr>
|
|
<td class='time'>{{ malojatime.timestamp_desc(s["time"],short=shortTimeDesc) }}</td>
|
|
{{ entityrow.row(s.track) }}
|
|
{% if adminmode %}
|
|
|
|
<td class='delete_area'>
|
|
<span class="confirmactions">
|
|
<button class="smallbutton warning" onclick="reparseScrobble({{ s.time }},this)">Confirm</button>
|
|
<button class="smallbutton" onclick="toggleReparseConfirm(this)">Cancel</button>
|
|
</span>
|
|
|
|
<span class="initializeactions">
|
|
<div class='refreshicon clickable_icon danger' onclick="toggleReparseConfirm(this)">
|
|
<svg style="width:14px;height:14px" viewBox="0 0 24 24">
|
|
<path d="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z" />
|
|
</svg>
|
|
</div>
|
|
</span>
|
|
|
|
</td>
|
|
|
|
<td class='delete_area'>
|
|
<span class="confirmactions">
|
|
<button class="smallbutton warning" onclick="deleteScrobble({{ s.time }},this)">Confirm</button>
|
|
<button class="smallbutton" onclick="toggleDeleteConfirm(this)">Cancel</button>
|
|
</span>
|
|
|
|
<span class="initializeactions">
|
|
<div class='deleteicon clickable_icon danger' onclick="toggleDeleteConfirm(this)">
|
|
<svg style="width:14px;height:14px" viewBox="0 0 24 24">
|
|
<path d="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z" />
|
|
</svg>
|
|
</div>
|
|
</span>
|
|
|
|
</td>
|
|
{% endif %}
|
|
</tr>
|
|
{%- endif -%}
|
|
{% endfor %}
|
|
</table>
|