From 861920af88f4c6ca97a311da0c2085ad23bf37f1 Mon Sep 17 00:00:00 2001
From: OzzieIsaacs
Date: Fri, 3 Feb 2017 13:44:13 +0100
Subject: [PATCH] Pubdate is now showing up (#95) Bugfix links in detailview
---
cps/templates/detail.html | 13 +++++++------
1 file changed, 7 insertions(+), 6 deletions(-)
diff --git a/cps/templates/detail.html b/cps/templates/detail.html
index 753db662..4fa37a1d 100644
--- a/cps/templates/detail.html
+++ b/cps/templates/detail.html
@@ -15,7 +15,7 @@
{{entry.title}}
{% for author in entry.authors %}
- {{author.name}}
+ {{author.name}}
{% if not loop.last %}
&
{% endif %}
@@ -37,7 +37,7 @@
{% endif %}
{% if entry.series|length > 0 %}
-
{{_('Book')}} {{entry.series_index}} {{_('of')}} {{entry.series[0].name}}
+ {{_('Book')}} {{entry.series_index}} {{_('of')}} {{entry.series[0].name}}
{% endif %}
{% if entry.languages.__len__() > 0 %}
@@ -58,20 +58,21 @@
{% endif %}
-
{% if entry.tags|length > 0 %}
{% endif %}
-
+ {% if entry.pubdate != '0101-01-01 00:00:00' %}
+ {{_('Publishing date')}}: {{entry.pubdate[:10]}}
+ {% endif %}
{% if cc|length > 0 %}
@@ -101,7 +102,7 @@
{% endif %}
- {% if entry.comments|length > 0 %}
+ {% if entry.comments|length > 0 and entry.comments[0].text|length > 0%}
{{_('Description:')}}
{{entry.comments[0].text|safe}}
{% endif %}