diff --git a/bookwyrm/templates/snippets/covers_shelf.html b/bookwyrm/templates/snippets/covers_shelf.html deleted file mode 100644 index 69b8114f..00000000 --- a/bookwyrm/templates/snippets/covers_shelf.html +++ /dev/null @@ -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> diff --git a/bookwyrm/templates/snippets/create_status.html b/bookwyrm/templates/snippets/create_status.html index 7148ac9b..57386b79 100644 --- a/bookwyrm/templates/snippets/create_status.html +++ b/bookwyrm/templates/snippets/create_status.html @@ -28,7 +28,18 @@ </div> <div class="control"> <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> </div> <button class="button is-primary" type="submit">post review</button> diff --git a/bookwyrm/templates/snippets/rate_form.html b/bookwyrm/templates/snippets/rate_form.html deleted file mode 100644 index 7725aabb..00000000 --- a/bookwyrm/templates/snippets/rate_form.html +++ /dev/null @@ -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> - diff --git a/bookwyrm/templates/snippets/tabs.html b/bookwyrm/templates/snippets/tabs.html deleted file mode 100644 index 32393f3b..00000000 --- a/bookwyrm/templates/snippets/tabs.html +++ /dev/null @@ -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 %} - diff --git a/bookwyrm/templates/snippets/user_preview.html b/bookwyrm/templates/snippets/user_preview.html deleted file mode 100644 index 3989e908..00000000 --- a/bookwyrm/templates/snippets/user_preview.html +++ /dev/null @@ -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> -