diff --git a/bookwyrm/templates/user/groups.html b/bookwyrm/templates/user/groups.html new file mode 100644 index 00000000..edbba849 --- /dev/null +++ b/bookwyrm/templates/user/groups.html @@ -0,0 +1,42 @@ +{% extends 'user/layout.html' %} +{% load i18n %} + +{% block header %} +
+
+

+ {% if is_self %} + {% trans "Your Groups" %} + {% else %} + {% blocktrans with username=user.display_name %}Groups: {{ username }}{% endblocktrans %} + {% endif %} +

+
+ {% if is_self %} +
+ {% trans "Create group" as button_text %} + {% include 'snippets/toggle/open_button.html' with controls_text="create_group" icon_with_text="plus" text=button_text %} +
+ {% endif %} +
+{% endblock %} + + +{% block panel %} +
+ + + +
+
+ +
+{% endblock %} diff --git a/bookwyrm/templates/user/layout.html b/bookwyrm/templates/user/layout.html index 8ca3bd18..22b8e2ce 100755 --- a/bookwyrm/templates/user/layout.html +++ b/bookwyrm/templates/user/layout.html @@ -75,6 +75,12 @@ {% trans "Lists" %} {% endif %} + {% if is_self or user.groups_set.exists %} + {% url 'user-groups' user|username as url %} + + {% trans "Groups" %} + + {% endif %} {% if user.shelf_set.exists %} {% url 'user-shelves' user|username as url %}