mirror of
https://github.com/partitioncloud/partitioncloud-server.git
synced 2025-01-23 09:16:25 +01:00
Add UI button
This commit is contained in:
parent
d1812cdde7
commit
dbe77d0ece
@ -35,8 +35,8 @@
|
||||
{% endif %}
|
||||
{{ album.name }}
|
||||
</h2>
|
||||
{% if g.user %}
|
||||
<div id="header-actions">
|
||||
{% if g.user %}
|
||||
<section id="users">
|
||||
{% for album_user in album.users %}
|
||||
<div class="user-profile-picture" style="background-color:{{ album_user.color }};" title="{{ album_user.username }}">
|
||||
@ -44,6 +44,7 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
</section>
|
||||
{% endif %}
|
||||
<div class="dropdown dp1">
|
||||
+
|
||||
<div class="dropdown-content dp1">
|
||||
@ -56,13 +57,15 @@
|
||||
<a href="/albums/{{ album.uuid }}/quit">{{ _("Quit") }}</a>
|
||||
{% endif %}
|
||||
<a href="#share">{{ _("Share") }}</a>
|
||||
{% if g.user.access_level == 1 or (not not_participant and album.users | length == 1) %}
|
||||
{% if g.user or not config["ZIP_REQUIRE_LOGIN"] %}
|
||||
<a href="/albums/{{ album.uuid }}/zip">{{ _("Download as zip") }}</a>
|
||||
{% endif %}
|
||||
{% if g.user.access_level == 1 or (g.user and not not_participant and album.users | length == 1) %}
|
||||
<a id="delete-album" href="#delete">{{ _("Delete") }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</header>
|
||||
<hr/>
|
||||
{% if partitions|length != 0 %}
|
||||
|
@ -30,8 +30,8 @@
|
||||
{% block content %}
|
||||
<header id="album-header">
|
||||
<h2 id="groupe-title">{{ groupe.name }}</h2>
|
||||
{% if g.user %}
|
||||
<div id="header-actions">
|
||||
{% if g.user %}
|
||||
<section id="users">
|
||||
{% for groupe_user in groupe.users %}
|
||||
<div class="user-profile-picture" style="background-color:{{ groupe_user.color }};" title="{{ groupe_user.username }}">
|
||||
@ -39,23 +39,26 @@
|
||||
</div>
|
||||
{% endfor %}
|
||||
</section>
|
||||
{% endif %}
|
||||
<div class="dropdown dp1">
|
||||
+
|
||||
<div class="dropdown-content dp1">
|
||||
{% if not_participant %}
|
||||
<a href="/groupe/{{ groupe.uuid }}/join">{{ _("Join") }}</a>
|
||||
{% elif groupe.users | length > 1 %}
|
||||
{% elif groupe.users | length > 1 and g.user %}
|
||||
<a href="/groupe/{{ groupe.uuid }}/quit">{{ _("Quit") }}</a>
|
||||
{% endif %}
|
||||
<a href="#share">{{ _("Share") }}</a>
|
||||
{% if g.user.access_level == 1 or user.id in groupe.get_admins() %}
|
||||
{% if g.user or not config["ZIP_REQUIRE_LOGIN"] %}
|
||||
<a href="/groupe/{{ groupe.uuid }}/zip">{{ _("Download as zip") }}</a>
|
||||
{% endif %}
|
||||
{% if g.user.access_level == 1 or (g.user and user.id in groupe.get_admins()) %}
|
||||
<a href="#create-groupe-album">{{ _("Add an album") }}</a>
|
||||
<a id="delete-album" href="#delete">{{ _("Delete") }}</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endif %}
|
||||
</header>
|
||||
<hr/>
|
||||
{% if groupe.albums|length != 0 %}
|
||||
|
Loading…
Reference in New Issue
Block a user