diff --git a/cookbook/templates/books.html b/cookbook/templates/books.html index 7c821467f..f38c33623 100644 --- a/cookbook/templates/books.html +++ b/cookbook/templates/books.html @@ -23,13 +23,20 @@
{% if b.book.icon %}{{ b.book.icon }} {% endif %}{{ b.book.name }}
+
{% if b.book.created_by != request.user %} + {% trans 'by' %} {{ b.book.created_by.get_user_name }} + {% endif %}
+ {% if b.book.description %}

{{ b.book.description }}

{% endif %} - {% trans 'Edit' %} - {% trans 'Delete' %} + {% if b.book.created_by == request.user or request.user.is_superuser %} + {% trans 'Edit' %} + {% trans 'Delete' %} + {% endif %}
{% if b.recipes %} @@ -48,10 +55,12 @@ {% endif %}
-
- -
+ {% if b.book.created_by == request.user or request.user.is_superuser %} +
+ +
+ {% endif %}
{% endfor %}