mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2025-01-01 12:58:45 +00:00
Cleans up status and shelve button
This commit is contained in:
parent
a4d1985f86
commit
8dbfa506b8
2 changed files with 15 additions and 13 deletions
|
@ -1,21 +1,22 @@
|
|||
{% load fr_display %}
|
||||
{% if request.user.is_authenticated %}
|
||||
|
||||
<div class="dropdown is-hoverable">
|
||||
<div class="field is-grouped">
|
||||
<form name="shelve" action="/shelve/" method="post">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="book" value="{{ book.id }}">
|
||||
<input type="hidden" name="shelf" value="{% shelve_button_identifier book %}">
|
||||
<button class="button" type="submit" style="">{% shelve_button_text book %}</button>
|
||||
</form>
|
||||
<div class="dropdown is-hoverable">
|
||||
{% if not hide_pulldown %}
|
||||
<div class="button dropdown-trigger" >
|
||||
<span class="icon icon-arrow-down"><span class="hidden-text">More shelves</span></span>
|
||||
</div>
|
||||
|
||||
{% if not hide_pulldown %}
|
||||
<div class="dropdown-menu">
|
||||
<ul class="dropdown-content">
|
||||
<form name="shelve" action="/shelve/" method="post">
|
||||
<form class="dropdown-item" name="shelve" action="/shelve/" method="post">
|
||||
{% csrf_token %}
|
||||
<input type="hidden" name="book" value="{{ book.id }}">
|
||||
{% for shelf in request.user.shelf_set.all %}
|
||||
|
@ -29,4 +30,5 @@
|
|||
{% endif %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
{% endif %}
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
{% load fr_display %}
|
||||
|
||||
<div class="media">
|
||||
{% if not hide_book and status.mention_books.count %}
|
||||
<div class="row">
|
||||
<div class="media-left">
|
||||
{% for book in status.mention_books.all|slice:"0:4" %}
|
||||
<div class="row">
|
||||
<div>
|
||||
<div class="cover-container">
|
||||
{% include 'snippets/book_cover.html' with book=book %}
|
||||
{% if status.mention_books.count > 1 %}
|
||||
|
@ -23,7 +24,6 @@
|
|||
</div>
|
||||
{% endif %}
|
||||
|
||||
<div class="media">
|
||||
{% if not hide_book and status.book %}
|
||||
<div class="media-left">
|
||||
{% include 'snippets/book_cover.html' with book=status.book %}
|
||||
|
|
Loading…
Reference in a new issue