diff --git a/frontend/templates/book_panel.html b/frontend/templates/book_panel.html index 3d4d543e..7064165d 100644 --- a/frontend/templates/book_panel.html +++ b/frontend/templates/book_panel.html @@ -85,9 +85,13 @@ Status: {{ status }}
+ {% if status == 'No campaign yet' and fromsupport %} + Wished by {{ work.wished_by.count }} + {% else %}
book list status
+ {% endif %}
{{ work.percent_unglued_number }}%
Add
diff --git a/frontend/views.py b/frontend/views.py index 161715be..c22a11d6 100755 --- a/frontend/views.py +++ b/frontend/views.py @@ -464,6 +464,7 @@ def supporter(request, supporter_username, template_name): supporter = get_object_or_404(User, username=supporter_username) wishlist = supporter.wishlist works = wishlist.works.all() + fromsupport = 1 backed = 0 backing = 0 transet = Transaction.objects.all().filter(user = supporter) @@ -533,6 +534,7 @@ def supporter(request, supporter_username, template_name): "supporter": supporter, "wishlist": wishlist, "works": works, + "fromsupport": fromsupport, "backed": backed, "backing": backing, "wished": wished, diff --git a/static/css/supporter_layout.css b/static/css/supporter_layout.css index f739cd2c..319f5e42 100644 --- a/static/css/supporter_layout.css +++ b/static/css/supporter_layout.css @@ -245,12 +245,21 @@ ul.tabs li.tabs3 a:hover, ul.tabs li.active a { background: #d6dde0; color: #3d4e53; } -.book-list span.rounded > span { - line-height: normal; - width: 75px; +/* +.book-list span.rounded { + + > span { + .height(15px); + + a { + text-transform:capitalize; + } + } } -.book-list span.rounded > span a { - text-transform: capitalize; +*/ +.listview .rounded { + line-height: normal; + margin-right: 0; } div.content-block-content { padding-left: 10px; diff --git a/static/less/supporter_layout.less b/static/less/supporter_layout.less index 0dfe56f4..331092c5 100644 --- a/static/less/supporter_layout.less +++ b/static/less/supporter_layout.less @@ -285,15 +285,24 @@ ul.tabs { } } - -.book-list span.rounded > span { - line-height:normal; - width:75px; +/* +.book-list span.rounded { - a { - text-transform:capitalize; + > span { + .height(15px); + + a { + text-transform:capitalize; + } } } +*/ + +.listview .rounded { + // cancelling out styles that would otherwise apply + line-height: normal; + margin-right: 0; +} div.content-block-content { padding-left: 10px;