1
Fork 0
mirror of https://github.com/RYGhub/royalnet.git synced 2024-11-23 19:44:20 +00:00

Update some pages 2

This commit is contained in:
Steffo 2019-01-03 15:15:28 +01:00
parent d364731f07
commit 553d658ce0
3 changed files with 8 additions and 5 deletions

View file

@ -4,10 +4,10 @@
<span class="text">{{ entry.text }}</span> <span class="text">{{ entry.text }}</span>
</p> </p>
<p> <p>
<cite>— {% if entry.author is not none %}<a class="author" href="/profile/{{ entry.author.royal.username }}">{{ entry.author.royal.username }}</a>{% else %}<span class="author anonymous">Anonimo</span>{% endif %}, <span class="timestamp">{{ entry.timestamp.strftime('%Y-%m-%d %H:%M:%S %Z') }}</span> {% if entry.saver is not none and entry.saver != entry.author %}<span class="saver">(salvato da <a href="/profile/{{ entry.saver.royal.username }}">{{ entry.saver.royal.username }}</a>)</span>{% endif %}</cite> <cite>— {% if entry.author is not none %}<a class="author" href="{{ url_for("page_profile", name=entry.author.royal.username) }}">{{ entry.author.royal.username }}</a>{% else %}<span class="author anonymous">Anonimo</span>{% endif %}, <span class="timestamp">{{ entry.timestamp.strftime('%Y-%m-%d %H:%M:%S %Z') }}</span> {% if entry.saver is not none and entry.saver != entry.author %}<span class="saver">(salvato da <a href="/profile/{{ entry.saver.royal.username }}">{{ entry.saver.royal.username }}</a>)</span>{% endif %}</cite>
</p> </p>
</div> </div>
<div class="right"> <div class="right">
<a class="entry-id" href="/diario#entry-{{ entry.id }}">#{{ entry.id }}</a> <a class="entry-id" href="{{ url_for("page_diario") }}#entry-{{ entry.id }}">#{{ entry.id }}</a>
</div> </div>
</blockquote> </blockquote>

View file

@ -14,7 +14,9 @@
<div class="author"> <div class="author">
di <a href="/profile/{{ event.author.username }}">{{ event.author.username }}</a> di <a href="/profile/{{ event.author.username }}">{{ event.author.username }}</a>
</div> </div>
{% if event.description %}
<div class="description"> <div class="description">
{{ (escape(event.description)).replace("\n", "<br>"|safe) }} {{ (escape(event.description)).replace("\n", "<br>"|safe) }}
</div> </div>
{% endif %}
</div> </div>

View file

@ -59,6 +59,7 @@
<li><a href="{{ url_for("page_music") }}">Statistiche su Royal Music</a></li> <li><a href="{{ url_for("page_music") }}">Statistiche su Royal Music</a></li>
<li><a href="http://amazon.steffo.eu/royal-music-cache/">File in cache di Royal Music</a></li> <li><a href="http://amazon.steffo.eu/royal-music-cache/">File in cache di Royal Music</a></li>
<li><a href="{{ url_for("page_activity") }}">Statistiche sull'attività</a></li> <li><a href="{{ url_for("page_activity") }}">Statistiche sull'attività</a></li>
<li><a href="https://github.com/Steffo99/royalnet">Codice sorgente di Royalnet</a></li>
</ul> </ul>
</div> </div>
</div> </div>