Cleans up status and shelve button
This commit is contained in:
parent
a4d1985f86
commit
8dbfa506b8
@ -1,21 +1,22 @@
|
|||||||
{% load fr_display %}
|
{% load fr_display %}
|
||||||
{% if request.user.is_authenticated %}
|
{% if request.user.is_authenticated %}
|
||||||
|
|
||||||
<div class="dropdown is-hoverable">
|
<div class="field is-grouped">
|
||||||
<form name="shelve" action="/shelve/" method="post">
|
<form name="shelve" action="/shelve/" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="hidden" name="book" value="{{ book.id }}">
|
<input type="hidden" name="book" value="{{ book.id }}">
|
||||||
<input type="hidden" name="shelf" value="{% shelve_button_identifier book %}">
|
<input type="hidden" name="shelf" value="{% shelve_button_identifier book %}">
|
||||||
<button class="button" type="submit" style="">{% shelve_button_text book %}</button>
|
<button class="button" type="submit" style="">{% shelve_button_text book %}</button>
|
||||||
</form>
|
</form>
|
||||||
|
<div class="dropdown is-hoverable">
|
||||||
|
{% if not hide_pulldown %}
|
||||||
<div class="button dropdown-trigger" >
|
<div class="button dropdown-trigger" >
|
||||||
<span class="icon icon-arrow-down"><span class="hidden-text">More shelves</span></span>
|
<span class="icon icon-arrow-down"><span class="hidden-text">More shelves</span></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% if not hide_pulldown %}
|
|
||||||
<div class="dropdown-menu">
|
<div class="dropdown-menu">
|
||||||
<ul class="dropdown-content">
|
<ul class="dropdown-content">
|
||||||
<form name="shelve" action="/shelve/" method="post">
|
<form class="dropdown-item" name="shelve" action="/shelve/" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<input type="hidden" name="book" value="{{ book.id }}">
|
<input type="hidden" name="book" value="{{ book.id }}">
|
||||||
{% for shelf in request.user.shelf_set.all %}
|
{% for shelf in request.user.shelf_set.all %}
|
||||||
@ -29,4 +30,5 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
@ -1,9 +1,10 @@
|
|||||||
{% load fr_display %}
|
{% load fr_display %}
|
||||||
|
|
||||||
{% if not hide_book and status.mention_books.count %}
|
<div class="media">
|
||||||
<div class="row">
|
{% if not hide_book and status.mention_books.count %}
|
||||||
|
<div class="media-left">
|
||||||
{% for book in status.mention_books.all|slice:"0:4" %}
|
{% for book in status.mention_books.all|slice:"0:4" %}
|
||||||
<div class="row">
|
<div>
|
||||||
<div class="cover-container">
|
<div class="cover-container">
|
||||||
{% include 'snippets/book_cover.html' with book=book %}
|
{% include 'snippets/book_cover.html' with book=book %}
|
||||||
{% if status.mention_books.count > 1 %}
|
{% if status.mention_books.count > 1 %}
|
||||||
@ -21,9 +22,8 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
<div class="media">
|
|
||||||
{% if not hide_book and status.book %}
|
{% if not hide_book and status.book %}
|
||||||
<div class="media-left">
|
<div class="media-left">
|
||||||
{% include 'snippets/book_cover.html' with book=status.book %}
|
{% include 'snippets/book_cover.html' with book=status.book %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user