diff --git a/cps/static/css/style.css b/cps/static/css/style.css index 888dde15..46e872b3 100644 --- a/cps/static/css/style.css +++ b/cps/static/css/style.css @@ -17,4 +17,6 @@ a{color: #45b29d}a:hover{color: #444;} .more-stuff{margin-top: 20px; padding-top: 20px; border-top: 1px solid #ccc} .more-stuff>li{margin-bottom: 10px;} .navbar-collapse.in .navbar-nav{margin: 0;} -span.glyphicon.glyphicon-tags {padding-right: 5px;} +span.glyphicon.glyphicon-tags {padding-right: 5px;color: #999;vertical-align: text-top;} +.book-meta {padding-bottom: 20px;} +.book-meta .tags a {display: inline;} diff --git a/cps/templates/detail.html b/cps/templates/detail.html index bc8a9173..2d327cd9 100644 --- a/cps/templates/detail.html +++ b/cps/templates/detail.html @@ -9,11 +9,14 @@ {% endif %} -
+

{{entry.title}}

-

{{entry.authors[0].name}}

+

{{entry.authors[0].name}} +

+ {% if entry.ratings.__len__() > 0 %}
+

{% for number in range((entry.ratings[0].rating/2)|int(2)) %} {% if loop.last and loop.index < 5 %} @@ -22,20 +25,33 @@ {% endfor %} {% endif %} {% endfor %} +

{% endif %} - {% if entry.series|length > 0 %}

Book {{entry.series_index}} of {{entry.series[0].name}}

{% endif %} + {% if entry.languages.__len__() > 0 %} +
+

+ language: {{entry.languages[0].lang_code}} +

+
+ {% endif %} + {% if entry.tags|length > 0 %} -

+

+

+ + {% for tag in entry.tags %} - {{tag.name}}, + {{tag.name}} {%endfor%} -

+ +
+

{% endif %} {% if entry.comments|length > 0 %} @@ -44,91 +60,82 @@ {% endif %} {% if g.user.is_authenticated() %} -
+
+
+ + {% if g.user.shelf.all() or g.public_shelfes %} + + + {% endif %} + + {% if g.user.roleĀ %} +
+ - {% endblock %}