mirror of
https://github.com/partitioncloud/partitioncloud-server.git
synced 2025-01-23 09:16:25 +01:00
"No album" displayed when user not logged in
This commit is contained in:
parent
fb630f863b
commit
7fb6648fa1
@ -275,6 +275,10 @@ img.partition-thumbnail {
|
||||
height: 70vh;
|
||||
}
|
||||
|
||||
#albums div {
|
||||
padding: 5px;
|
||||
}
|
||||
|
||||
.user {
|
||||
display: flex;
|
||||
}
|
||||
|
@ -50,7 +50,11 @@
|
||||
{% endif %}
|
||||
<h1>Albums</h1>
|
||||
<section id="albums">
|
||||
{% if g.user and user.get_albums() | length != 0 %}
|
||||
{% if not g.user %}
|
||||
<div style="text-align: center;"><i>Connectez vous pour avoir accès à vos albums</i></div>
|
||||
{% elif user.get_albums() | length == 0 %}
|
||||
<div style="text-align: center;"><i>Aucun album disponible</i></div>
|
||||
{% else %}
|
||||
{% for album in user.albums %}
|
||||
<a href="/albums/{{ album['uuid'] }}">
|
||||
<div class="album-cover" id="album-1">
|
||||
@ -58,8 +62,6 @@
|
||||
</div>
|
||||
</a>
|
||||
{% endfor %}
|
||||
{% else %}
|
||||
<div>Aucun album disponible</div>
|
||||
{% endif %}
|
||||
</section>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user