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