From f598506550b1fadc5f669bc62a872a245388263d Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Mon, 11 Mar 2019 11:32:31 +0100 Subject: [PATCH] Rename .entry to .diario --- static/nryg.less | 4 ++-- templates/components/diarioentry.html | 16 +++++++++++++--- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/static/nryg.less b/static/nryg.less index cb2dcec6..c5bfee03 100644 --- a/static/nryg.less +++ b/static/nryg.less @@ -949,7 +949,7 @@ img { } } -.entry { +.diario { display: grid; .left { @@ -966,7 +966,7 @@ img { font-size: smaller; } - .entry-id { + .diario-id { text-align: right; } } diff --git a/templates/components/diarioentry.html b/templates/components/diarioentry.html index caa95470..a9109374 100644 --- a/templates/components/diarioentry.html +++ b/templates/components/diarioentry.html @@ -1,13 +1,23 @@ -
+

{{ entry.to_html() | safe }}

- — {% 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