diff --git a/bookify/books/templates/books/book_detail.html b/bookify/books/templates/books/book_detail.html index 636fecc..f9f4737 100644 --- a/bookify/books/templates/books/book_detail.html +++ b/bookify/books/templates/books/book_detail.html @@ -14,6 +14,14 @@ {% endfor %}

Средний рейтинг: {{ book.average_rating }}

+

Добавил: + {% if book.created_by %} + {{ book.created_by.username }} + {% else %} + Неизвестно + {% endif %} +

+ {% if user.is_authenticated and user == book.created_by %}