add useremail field

This commit is contained in:
iou1name 2022-08-27 11:08:27 -04:00
parent 022e35e13c
commit ff7bb5e3e8
2 changed files with 5 additions and 4 deletions

View File

@ -41,6 +41,10 @@ body {
font-weight: bold; font-weight: bold;
} }
.useremail > span {
color: darkblue;
}
.name { .name {
color: darkgreen; color: darkgreen;
font-weight: bold; font-weight: bold;

View File

@ -53,10 +53,7 @@
{% if post.subject %} {% if post.subject %}
<span class="subject">{{ post.subject }}</span> <span class="subject">{{ post.subject }}</span>
{% endif %} {% endif %}
<span class="name">{{ post.name }}</span> {% if post.email %}<a class="useremail" href="{{ post.email }}">{% endif %}<span class="name">{{ post.name }}</span>{% if post.tripcode %} <span class="tripcode">{{ post.tripcode }}</span>{% endif %}{% if post.email %}</a>{% endif %}
{% if post.tripcode %}
<span class="tripcode">{{ post.tripcode }}</span>
{% endif %}
<span class="time">{{ post.time.astimezone().strftime('%Y-%m-%d %H:%M') }}</span> <span class="time">{{ post.time.astimezone().strftime('%Y-%m-%d %H:%M') }}</span>
<span class="id">No.{{ post.id }}</span> <span class="id">No.{{ post.id }}</span>
{% if backlinks.get(post.id) %} {% if backlinks.get(post.id) %}