steam sync
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
2026-04-02 21:11:54 +03:00
parent 457b8c8443
commit f820e86277
5 changed files with 88 additions and 1 deletions

View File

@@ -202,7 +202,20 @@
{% if request.GET.imported %}
<span style="font-size:0.82rem;color:#34d399">&#10003; {{ request.GET.imported }} game{{ request.GET.imported|pluralize }} imported</span>
{% endif %}
<a href="{% url 'backlogger:steam_login' %}" class="btn btn-outline" style="font-size:0.82rem">&#9654; Steam</a>
{% if request.GET.synced %}
<span style="font-size:0.82rem;color:#34d399">&#10003; {{ request.GET.synced }} game{{ request.GET.synced|pluralize }} synced</span>
{% endif %}
{% if request.GET.sync_error %}
<span style="font-size:0.82rem;color:#f87171">Steam sync failed</span>
{% endif %}
<a href="{% url 'backlogger:steam_sync_login' %}" class="btn btn-outline" style="font-size:0.82rem" title="Sync hours played from Steam">&#8635; Sync</a>
<a href="{% url 'backlogger:steam_login' %}" class="btn btn-outline" style="font-size:0.82rem">&#9654; Import</a>
{% if debug %}
<form method="post" action="{% url 'backlogger:debug_delete_all' %}" onsubmit="return confirm('Delete ALL items?')">
{% csrf_token %}
<button type="submit" class="btn btn-danger" style="font-size:0.82rem">&#128465; Delete all</button>
</form>
{% endif %}
<a href="{% url 'backlogger:add' %}" class="btn btn-primary">+ Add item</a>
</div>
</div>
@@ -229,6 +242,7 @@
<option value="newest" {% if sort == 'newest' %}selected{% endif %}>Newest first</option>
<option value="oldest" {% if sort == 'oldest' %}selected{% endif %}>Oldest first</option>
<option value="progress" {% if sort == 'progress' %}selected{% endif %}>Most complete</option>
<option value="updated" {% if sort == 'updated' %}selected{% endif %}>Recently updated</option>
</select>
</div>
</div>