fixed bookpanel indication of works "on your wishlist"
parent
b00ab025e8
commit
b1cd55b6ca
|
@ -37,9 +37,9 @@
|
|||
<div class="moreinfo create-account">
|
||||
<a href="#">Add to Wishlist</a>
|
||||
</div>
|
||||
{% else %}{% if work in request.user.wishlist %}
|
||||
{% else %}{% if work in request.user.wishlist.works.all %}
|
||||
<div class="moreinfo on-wishlist">
|
||||
<a href="#">On Your Wishlist!</a>
|
||||
<a href="#">On Wishlist!</a>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="moreinfo add-wishlist">
|
||||
|
@ -68,14 +68,14 @@
|
|||
<div class="listview panelfront side1 remove-wishlist">
|
||||
<span id="{{ work.id }}">Remove from Wishlist</span>
|
||||
</div>
|
||||
{% else %}{% if work in shared_works %}
|
||||
<div class="listview panelfront side1 on-wishlist">
|
||||
<span>On Your Wishlist!</span>
|
||||
</div>
|
||||
{% else %}{% if request.user.is_anonymous %}
|
||||
<div class="listview panelfront side1 create-account">
|
||||
<span>Add to Wishlist</span>
|
||||
</div>
|
||||
{% else %}{% if work in request.user.wishlist.works.all %}
|
||||
<div class="listview panelfront side1 on-wishlist">
|
||||
<span>On Your Wishlist!</span>
|
||||
</div>
|
||||
{% else %}
|
||||
<div class="listview panelfront side1 add-wishlist">
|
||||
<span id="{{ work.editions.all.0.googlebooks_id }}">Add to Wishlist</span>
|
||||
|
|
|
@ -64,14 +64,14 @@ div.book-list.listview div.book-name .listview.author {
|
|||
height: 19px;
|
||||
line-height: 19px;
|
||||
}
|
||||
div.book-list.listview div.add-wishlist, div.book-list.listview div.remove-wishlist {
|
||||
div.book-list.listview div.add-wishlist, div.book-list.listview div.remove-wishlist, div.book-list.listview div.on-wishlist {
|
||||
margin-right: 10px;
|
||||
padding-right: 10px;
|
||||
width: 136px;
|
||||
background: url("/static/images/booklist/booklist-vline.png") right center no-repeat;
|
||||
float: left;
|
||||
}
|
||||
div.book-list.listview div.add-wishlist a, div.book-list.listview div.remove-wishlist a {
|
||||
div.book-list.listview div.add-wishlist a, div.book-list.listview div.remove-wishlist a, div.book-list.listview div.on-wishlist a {
|
||||
font-weight: normal;
|
||||
color: #3d4e53;
|
||||
text-transform: none;
|
||||
|
|
|
@ -59,7 +59,7 @@ div.book-list.listview{
|
|||
.height(19px);
|
||||
}
|
||||
}
|
||||
&.add-wishlist, &.remove-wishlist {
|
||||
&.add-wishlist, &.remove-wishlist, &.on-wishlist {
|
||||
margin-right: 10px;
|
||||
padding-right: 10px;
|
||||
width: 136px;
|
||||
|
|
Loading…
Reference in New Issue