add: last.fm status integration
This commit is contained in:
parent
3e2bdceb99
commit
0765156697
17 changed files with 397 additions and 3 deletions
|
@ -515,13 +515,23 @@
|
|||
{{ icon "spotify" }}
|
||||
<span>Spotify</span>
|
||||
</button>
|
||||
{% endif %} {% if config.connections.last_fm_key and not
|
||||
user.connections.LastFm %}
|
||||
<button
|
||||
class="quaternary"
|
||||
onclick="trigger('last_fm::create_connection', ['{{ config.connections.last_fm_key }}'])"
|
||||
>
|
||||
{{ icon "last_fm" }}
|
||||
<span>Last.fm</span>
|
||||
</button>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% for key, value in user.connections %}
|
||||
<div class="card-nest">
|
||||
<div class="card small flex items-center gap-2">
|
||||
{% if key == "Spotify" %} {{ icon "spotify" }} {% endif %}
|
||||
{% if key == "Spotify" %} {{ icon "spotify" }} {% elif key ==
|
||||
"LastFm" %} {{ icon "last_fm" }} {% endif %}
|
||||
|
||||
<b>
|
||||
{% if value[0].data.name %} {{ value[0].data.name }} {% else
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue