From 13883db5a0a4b132f5eab18b56f170847d8432bb Mon Sep 17 00:00:00 2001 From: Chintogtokh Batbold Date: Tue, 9 Oct 2018 11:52:16 +0000 Subject: [PATCH] Add anchor tags to titles --- cps/templates/author.html | 4 +++- cps/templates/discover.html | 4 +++- cps/templates/index.html | 8 ++++++-- cps/templates/search.html | 6 ++++-- cps/templates/shelf.html | 4 +++- 5 files changed, 19 insertions(+), 7 deletions(-) diff --git a/cps/templates/author.html b/cps/templates/author.html index 78ddc8bb..14dd94ed 100644 --- a/cps/templates/author.html +++ b/cps/templates/author.html @@ -36,7 +36,9 @@
-

{{entry.title|shortentitle}}

+ +

{{entry.title|shortentitle}}

+

{% for author in entry.authors %} {{author.name.replace('|',',')}} diff --git a/cps/templates/discover.html b/cps/templates/discover.html index 3466597c..13dacb43 100644 --- a/cps/templates/discover.html +++ b/cps/templates/discover.html @@ -14,7 +14,9 @@ {% endif %}

-

{{entry.title|shortentitle}}

+ +

{{entry.title|shortentitle}}

+

{% for author in entry.authors %} {{author.name.replace('|',',')|shortentitle(30)}} diff --git a/cps/templates/index.html b/cps/templates/index.html index 9cc40d83..12fbd717 100755 --- a/cps/templates/index.html +++ b/cps/templates/index.html @@ -17,7 +17,9 @@

-

{{entry.title|shortentitle}}

+ +

{{entry.title|shortentitle}}

+

{% for author in entry.authors %} {{author.name.replace('|',',')|shortentitle(30)}} @@ -60,7 +62,9 @@

-

{{entry.title|shortentitle}}

+ +

{{entry.title|shortentitle}}

+

{% for author in entry.authors %} {{author.name.replace('|',',')|shortentitle(30)}} diff --git a/cps/templates/search.html b/cps/templates/search.html index 4a592d16..79bd1e98 100644 --- a/cps/templates/search.html +++ b/cps/templates/search.html @@ -5,7 +5,7 @@

{{_('No Results for:')}} {{searchterm}}

{{_('Please try a different search')}}

{% else %} -

{{entries|length}} {{_('Results for:')}} {{searchterm}}

+

{{entries|length}} {{_('Results for:')}} {{searchterm}}

{% if g.user.is_authenticated %} {% if g.user.shelf.all() or g.public_shelfes %}
-

{{entry.title|shortentitle}}

+ +

{{entry.title|shortentitle}}

+

{% for author in entry.authors %} {{author.name.replace('|',',')}} diff --git a/cps/templates/shelf.html b/cps/templates/shelf.html index 28cd20bb..a317c14b 100644 --- a/cps/templates/shelf.html +++ b/cps/templates/shelf.html @@ -23,7 +23,9 @@

-

{{entry.title|shortentitle}}

+ +

{{entry.title|shortentitle}}

+

{% for author in entry.authors %} {{author.name.replace('|',',')}}