Skip to content

Commit 15d4c28

Browse files
committed
Fixes LastFM link and unlink buttons
1 parent 0e4ae01 commit 15d4c28

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

supysonic/templates/profile.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,9 @@ <h2 class="mt-4 pb-2 border-bottom">{{ user.name }}{% if user.admin %} <svg xmln
4545
<input type="text" class="form-control" id="lastfm" placeholder="{% if user.lastfm_status %}Linked{% else %}Invalid session{% endif %}" aria-label="LastFM {% if user.lastfm_status %}linked{% else %}invalid session{% endif %}" readonly>
4646
<a href="{% if request.user.id == user.id %}{{ url_for('frontend.lastfm_unreg', uid = 'me') }}{% else %}{{ url_for('frontend.lastfm_unreg', uid = user.id) }}{% endif %}" class="btn btn-outline-secondary" type="button">Unlink</a>
4747
{% else %}
48-
{% endif %}
4948
<input type="text" class="form-control" id="lastfm" placeholder="Unlinked" aria-label="LastFM unlinked" readonly>
5049
<a href="https://www.last.fm/api/auth/?api_key={{ api_key }}&cb={% if request.user.id == user.id %}{{ request.url_root[:-(request.script_root|length+1)] + url_for('frontend.lastfm_reg', uid = 'me') }}{% else %}{{ request.url_root[:-(request.script_root|length+1)] + url_for('frontend.lastfm_reg', uid = user.id) }}{% endif %}" class="btn btn-outline-secondary" type="button">Link</a>
50+
{% endif %}
5151
{% else %}
5252
<input type="text" class="form-control" id="lastfm" placeholder="Unavailable" aria-label="LastFM unavailable" readonly>
5353
{% endif %}

0 commit comments

Comments
 (0)