From 553d658ce0b06429f0af82e57c394978ef23226a Mon Sep 17 00:00:00 2001
From: Stefano Pigozzi
Date: Thu, 3 Jan 2019 15:15:28 +0100
Subject: [PATCH] Update some pages 2
---
templates/components/diarioentry.html | 4 ++--
templates/components/event.html | 8 +++++---
templates/main.html | 1 +
3 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/templates/components/diarioentry.html b/templates/components/diarioentry.html
index 26d02dd1..aba067b7 100644
--- a/templates/components/diarioentry.html
+++ b/templates/components/diarioentry.html
@@ -4,10 +4,10 @@
{{ entry.text }}
- — {% if entry.author is not none %}{{ entry.author.royal.username }}{% else %}Anonimo{% endif %}, {{ entry.timestamp.strftime('%Y-%m-%d %H:%M:%S %Z') }} {% if entry.saver is not none and entry.saver != entry.author %}(salvato da {{ entry.saver.royal.username }}){% endif %}
+ — {% if entry.author is not none %}{{ entry.author.royal.username }}{% else %}Anonimo{% endif %}, {{ entry.timestamp.strftime('%Y-%m-%d %H:%M:%S %Z') }} {% if entry.saver is not none and entry.saver != entry.author %}(salvato da {{ entry.saver.royal.username }}){% endif %}
\ No newline at end of file
diff --git a/templates/components/event.html b/templates/components/event.html
index ed31f3e4..667ea377 100644
--- a/templates/components/event.html
+++ b/templates/components/event.html
@@ -14,7 +14,9 @@
-
- {{ (escape(event.description)).replace("\n", "
"|safe) }}
-
+ {% if event.description %}
+
+ {{ (escape(event.description)).replace("\n", "
"|safe) }}
+
+ {% endif %}
\ No newline at end of file
diff --git a/templates/main.html b/templates/main.html
index 7fb0c36d..26606b02 100644
--- a/templates/main.html
+++ b/templates/main.html
@@ -59,6 +59,7 @@
Statistiche su Royal Music
File in cache di Royal Music
Statistiche sull'attività
+ Codice sorgente di Royalnet