Differentiate friends/local/federated reviews
This commit is contained in:
1
fedireads/templates/snippets/authors.html
Normal file
1
fedireads/templates/snippets/authors.html
Normal file
@ -0,0 +1 @@
|
||||
by <a href="/author/{{ book.authors.first.openlibrary_key }}" class="author">{{ book.authors.first.data.name }}</a>
|
@ -3,7 +3,9 @@
|
||||
<p class="title">
|
||||
<a href="/book/{{ book.openlibrary_key }}">{{ book.data.title }}</a>
|
||||
</p>
|
||||
<p>by <a href="/author/{{ book.authors.first.openlibrary_key }}" class="author">{{ book.authors.first.data.name }}</a></p>
|
||||
<p>
|
||||
{% include 'snippets/authors.html' with book=book %}
|
||||
</p>
|
||||
|
||||
{% if rating %}
|
||||
{{ rating | stars }} {{ rating }}
|
||||
@ -13,4 +15,4 @@
|
||||
<blockquote>{{ book.data.description | description }}</blockquote>
|
||||
{% endif %}
|
||||
|
||||
{% include 'snippets/shelve-button.html' with book=book pulldown=shelf_pulldown%}
|
||||
{% include 'snippets/shelve-button.html' with book=book pulldown=shelf_pulldown %}
|
||||
|
8
fedireads/templates/snippets/review.html
Normal file
8
fedireads/templates/snippets/review.html
Normal file
@ -0,0 +1,8 @@
|
||||
{% load fr_display %}
|
||||
<div class="review">
|
||||
<h4>{{ review.name }}
|
||||
<small>{{ review.rating | stars }} stars, by {% include 'snippets/username.html' with user=review.user %}</small>
|
||||
</h4>
|
||||
<blockquote>{{ review.content }}</blockquote>
|
||||
</div>
|
||||
|
8
fedireads/templates/snippets/tabs.html
Normal file
8
fedireads/templates/snippets/tabs.html
Normal file
@ -0,0 +1,8 @@
|
||||
<div class="tabs">
|
||||
{% for tab in tabs %}
|
||||
<div class="tab {% if tab == active_tab %}active{% endif %}">
|
||||
<a href="{{ path }}/{{ tab }}">{{ tab }}</a>
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
|
@ -1,6 +1,6 @@
|
||||
<div class="tag">
|
||||
<a href="/tag/{{ tag.identifier }}">{{ tag.name }}</a>
|
||||
{% if tag.name in user_tags %}
|
||||
{% if tag.identifier in user_tags %}
|
||||
<form class="tag-form" name="tag" action="/untag/" method="post">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="book" value="{{ book.openlibrary_key }}"></input>
|
||||
|
Reference in New Issue
Block a user