Skip to content

Commit

Permalink
Fixes LastFM link and unlink buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
ogarcia committed Dec 8, 2024
1 parent 0e4ae01 commit 15d4c28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion supysonic/templates/profile.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ <h2 class="mt-4 pb-2 border-bottom">{{ user.name }}{% if user.admin %} <svg xmln
<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>
<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>
{% else %}
{% endif %}
<input type="text" class="form-control" id="lastfm" placeholder="Unlinked" aria-label="LastFM unlinked" readonly>
<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>
{% endif %}
{% else %}
<input type="text" class="form-control" id="lastfm" placeholder="Unavailable" aria-label="LastFM unavailable" readonly>
{% endif %}
Expand Down

0 comments on commit 15d4c28

Please sign in to comment.