From 4a33278596af779236dc6af37fd729c86f4170eb Mon Sep 17 00:00:00 2001 From: Ozzieisaacs Date: Sun, 10 Mar 2019 19:10:24 +0100 Subject: [PATCH] Update ratings --- cps/templates/author.html | 8 ++++---- cps/templates/discover.html | 4 ++-- cps/templates/index.html | 8 ++++---- cps/templates/list.html | 18 ++++++++++++++++-- cps/templates/search.html | 4 ++-- cps/templates/shelf.html | 4 ++-- cps/web.py | 35 ++++++++++++++++++----------------- 7 files changed, 48 insertions(+), 33 deletions(-) diff --git a/cps/templates/author.html b/cps/templates/author.html index 3135b0d2..ce97d846 100644 --- a/cps/templates/author.html +++ b/cps/templates/author.html @@ -41,13 +41,13 @@

{% for author in entry.authors %} - {% if loop.index > config_authors_max and config_authors_max != 0 %} + {% if loop.index > g.config_authors_max and g.config_authors_max != 0 %} {% if not loop.first %} & {% endif %} {{author.name.replace('|',',')|shortentitle(30)}} {% if loop.last %} - (...) + (...) {% endif %} {% else %} {% if not loop.first %} @@ -91,10 +91,10 @@

{{entry.title|shortentitle}}

{% for author in entry.authors %} - {% if loop.index > config_authors_max and config_authors_max != 0 %} + {% if loop.index > g.config_authors_max and g.config_authors_max != 0 %} {{author.name.replace('|',',')}} {% if loop.last %} - (...) + (...) {% endif %} {% else %} {{author.name.replace('|',',')}} diff --git a/cps/templates/discover.html b/cps/templates/discover.html index b6a72a11..532d53a2 100644 --- a/cps/templates/discover.html +++ b/cps/templates/discover.html @@ -19,13 +19,13 @@

{% for author in entry.authors %} - {% if loop.index > config_authors_max and config_authors_max != 0 %} + {% if loop.index > g.config_authors_max and g.config_authors_max != 0 %} {% if not loop.first %} & {% endif %} {{author.name.replace('|',',')|shortentitle(30)}} {% if loop.last %} - (...) + (...) {% endif %} {% else %} {% if not loop.first %} diff --git a/cps/templates/index.html b/cps/templates/index.html index c05339c4..6a475e22 100755 --- a/cps/templates/index.html +++ b/cps/templates/index.html @@ -21,13 +21,13 @@ web. {% for entry in random %}

{% for author in entry.authors %} - {% if loop.index > config_authors_max and config_authors_max != 0 %} + {% if loop.index > g.config_authors_max and g.config_authors_max != 0 %} {% if not loop.first %} & {% endif %} {{author.name.replace('|',',')|shortentitle(30)}} {% if loop.last %} - (...) + (...) {% endif %} {% else %} {% if not loop.first %} @@ -88,13 +88,13 @@ web. {% for entry in random %}

{% for author in entry.authors %} - {% if loop.index > config_authors_max and config_authors_max != 0 %} + {% if loop.index > g.config_authors_max and g.config_authors_max != 0 %} {% if not loop.first %} & {% endif %} {{author.name.replace('|',',')|shortentitle(30)}} {% if loop.last %} - (...) + (...) {% endif %} {% else %} {% if not loop.first %} diff --git a/cps/templates/list.html b/cps/templates/list.html index 32b463fa..9cdc154d 100644 --- a/cps/templates/list.html +++ b/cps/templates/list.html @@ -5,7 +5,9 @@