forked from mirrors/bookwyrm
Removes unused snippets
This commit is contained in:
parent
7d0c437371
commit
e1a6df54c1
5 changed files with 12 additions and 55 deletions
|
@ -1,25 +0,0 @@
|
||||||
{% load fr_display %}
|
|
||||||
|
|
||||||
<div class="level is-mobile">
|
|
||||||
{% for shelf in shelves %}
|
|
||||||
{% if shelf.books %}
|
|
||||||
<div>
|
|
||||||
<h2>{{ shelf.name }}
|
|
||||||
{% if shelf.size > shelf.books|length %}
|
|
||||||
<small>(<a href="/shelf/{{ user | username }}/{{ shelf.identifier }}">See all {{ shelf.size }}</a>)</small>
|
|
||||||
{% endif %}
|
|
||||||
</h2>
|
|
||||||
<div class="level is-mobile">
|
|
||||||
{% for book in shelf.books %}
|
|
||||||
<div>
|
|
||||||
<label for="book-{{ book.id }}-radio">
|
|
||||||
{% include 'snippets/book_cover.html' with book=book %}
|
|
||||||
</label>
|
|
||||||
{% include 'snippets/shelve_button.html' with book=book hide_pulldown=True %}
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
|
@ -28,7 +28,18 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="control">
|
<div class="control">
|
||||||
<label class="label" for="id_content_{{ book.id }}_review">Review:</label>
|
<label class="label" for="id_content_{{ book.id }}_review">Review:</label>
|
||||||
{% include 'snippets/rate_form.html' with book=book %}
|
|
||||||
|
<span class="hidden-text">Rating</span>
|
||||||
|
<div class="field is-grouped stars form-rate-stars">
|
||||||
|
<input class="hidden" type="radio" name="rating" value="" checked>
|
||||||
|
{% for i in '12345'|make_list %}
|
||||||
|
<input class="hidden" id="book{{book.id}}-star-{{ forloop.counter }}" type="radio" name="rating" value="{{ forloop.counter }}">
|
||||||
|
<label class="icon icon-star-empty" for="book{{book.id}}-star-{{ forloop.counter }}">
|
||||||
|
<span class="hidden-text">{{ forloop.counter }} star{{ forloop.counter | pluralize }}</span>
|
||||||
|
</label>
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
|
||||||
<textarea name="content" class="textarea" id="id_content_{{ book.id }}_review"></textarea>
|
<textarea name="content" class="textarea" id="id_content_{{ book.id }}_review"></textarea>
|
||||||
</div>
|
</div>
|
||||||
<button class="button is-primary" type="submit">post review</button>
|
<button class="button is-primary" type="submit">post review</button>
|
||||||
|
|
|
@ -1,12 +0,0 @@
|
||||||
{% load fr_display %}
|
|
||||||
<span class="hidden-text">Rating</span>
|
|
||||||
<div class="field is-grouped stars form-rate-stars">
|
|
||||||
<input class="hidden" type="radio" name="rating" value="" checked>
|
|
||||||
{% for i in '12345'|make_list %}
|
|
||||||
<input class="hidden" id="book{{book.id}}-star-{{ forloop.counter }}" type="radio" name="rating" value="{{ forloop.counter }}">
|
|
||||||
<label class="icon icon-star-empty" for="book{{book.id}}-star-{{ forloop.counter }}">
|
|
||||||
<span class="hidden-text">{{ forloop.counter }} star{{ forloop.counter | pluralize }}</span>
|
|
||||||
</label>
|
|
||||||
{% endfor %}
|
|
||||||
</div>
|
|
||||||
|
|
|
@ -1,6 +0,0 @@
|
||||||
{% for tab in tabs %}
|
|
||||||
<div class="tab {% if tab.id == active_tab %}active{% endif %}">
|
|
||||||
<a href="{{ path }}/{{ tab.id }}">{{ tab.display }}</a>
|
|
||||||
</div>
|
|
||||||
{% endfor %}
|
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
<div>
|
|
||||||
<div>
|
|
||||||
{% include 'snippets/avatar.html' with user=user %}
|
|
||||||
{% include 'snippets/username.html' with user=user %}
|
|
||||||
<small>{{ user.username }}</small>
|
|
||||||
</div>
|
|
||||||
{% if not is_self %}
|
|
||||||
{% include 'snippets/follow_button.html' with user=user %}
|
|
||||||
{% endif %}
|
|
||||||
</div>
|
|
||||||
|
|
Loading…
Reference in a new issue