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 %}

- #{{ entry.id }} + #{{ entry.id }}
\ 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 @@
di {{ event.author.username }}
-
- {{ (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