mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-02-03 12:52:20 +00:00
Show add list button to group members
This commit is contained in:
parent
045506d6e0
commit
c73491b05c
1 changed files with 9 additions and 5 deletions
|
@ -1,5 +1,6 @@
|
||||||
{% extends 'layout.html' %}
|
{% extends 'layout.html' %}
|
||||||
{% load i18n %}
|
{% load i18n %}
|
||||||
|
{% load bookwyrm_group_tags %}
|
||||||
|
|
||||||
{% block title %}{{ group.name }}{% endblock %}
|
{% block title %}{{ group.name }}{% endblock %}
|
||||||
|
|
||||||
|
@ -11,27 +12,30 @@
|
||||||
{% include 'groups/created_text.html' with group=group %}
|
{% include 'groups/created_text.html' with group=group %}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
{% if request.user == group.user %}
|
{% if group|is_member:request.user %}
|
||||||
<div class="column is-narrow is-flex">
|
<div class="column is-narrow is-flex">
|
||||||
{% trans "Create List" as button_text %}
|
{% trans "Create List" as button_text %}
|
||||||
{% include 'snippets/toggle/open_button.html' with controls_text="create_list" icon_with_text="plus" text=button_text focus="create_list_header" %}
|
{% include 'snippets/toggle/open_button.html' with controls_text="create_list" icon_with_text="plus" text=button_text focus="create_list_header" %}
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{% if request.user == group.user %}
|
||||||
<div class="column is-narrow is-flex">
|
<div class="column is-narrow is-flex">
|
||||||
{% trans "Edit group" as button_text %}
|
{% trans "Edit group" as button_text %}
|
||||||
{% include 'snippets/toggle/open_button.html' with text=button_text icon_with_text="pencil" controls_text="edit_group" focus="edit_group_header" %}
|
{% include 'snippets/toggle/open_button.html' with text=button_text icon_with_text="pencil" controls_text="edit_group" focus="edit_group_header" %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
|
<div class="block content">
|
||||||
|
{% include 'snippets/trimmed_text.html' with full=group.description %}
|
||||||
|
</div>
|
||||||
|
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
<div class="block">
|
<div class="block">
|
||||||
{% include 'lists/create_form.html' with controls_text="create_list" curation_group=group %}
|
{% include 'lists/create_form.html' with controls_text="create_list" curation_group=group %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="block content">
|
|
||||||
{% include 'snippets/trimmed_text.html' with full=group.description %}
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<div class="block">
|
<div class="block">
|
||||||
{% include 'groups/edit_form.html' with controls_text="edit_group" %}
|
{% include 'groups/edit_form.html' with controls_text="edit_group" %}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue