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

Rename .entry to .diario

This commit is contained in:
Steffo 2019-03-11 11:32:31 +01:00
parent fc0e6e574c
commit f598506550
2 changed files with 15 additions and 5 deletions

View file

@ -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;
}
}

View file

@ -1,13 +1,23 @@
<blockquote id="entry-{{ entry.id }}" class="entry {% if entry.spoiler %}spoiler{% endif %}">
<blockquote id="diario-{{ entry.id }}" class="diario {% if entry.spoiler %}spoiler{% endif %}">
<div class="left">
<p>
<span class="text">{{ entry.to_html() | safe }}</span>
</p>
<p>
<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>
<cite>
{% if entry.author is not none %}
<a class="author known" 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>
</div>
<div class="right">
<a class="entry-id" href="{{ url_for("page_diario") }}#entry-{{ entry.id }}">#{{ entry.id }}</a>
<a class="diario-id" href="#diario-{{ entry.id }}">#{{ entry.id }}</a>
</div>
</blockquote>