mirror of
https://github.com/spl0k/supysonic.git
synced 2024-11-09 19:52:16 +00:00
23 lines
794 B
HTML
Executable File
23 lines
794 B
HTML
Executable File
{% extends "layout.html" %}
|
|
{% block body %}
|
|
<h2>{{ user.name }}</h2>
|
|
<ul>
|
|
{% if user.admin %}<li>You're an admin!</li>{% endif %}
|
|
<li><strong>Email</strong>: {{ user.mail }} - <a href="{{ url_for('change_mail') }}">Change</a></li>
|
|
<li>
|
|
<strong>LastFM status</strong>:
|
|
{% if api_key %}
|
|
{% if user.lastfm_session %}
|
|
{% if user.lastfm_status %}Linked{% else %}Invalid session{% endif %} - <a href="{{ url_for('lastfm_unreg') }}">Unlink</a>
|
|
{% else %}
|
|
Unlinked - <a href="http://www.last.fm/api/auth/?api_key={{ api_key }}&cb={{ request.url_root[:-(request.script_root|length+1)] + url_for('lastfm_reg') }}">Link</a>
|
|
{% endif %}
|
|
{% else %}
|
|
Unavailable
|
|
{% endif %}
|
|
</li>
|
|
<li><a href="{{ url_for('change_password') }}">Change password</a></li>
|
|
</ul>
|
|
{% endblock %}
|
|
|