hiding the date in HTML logs, adding media files to HTML logs following the new db logic

This commit is contained in:
manetta 2022-02-18 14:53:58 +01:00
parent a2ff5b1f96
commit 644bce53a7
4 changed files with 16 additions and 4 deletions

View File

@ -44,6 +44,9 @@ h1 {
margin: 2em 0 1em 5em; margin: 2em 0 1em 5em;
font-size: 12px; font-size: 12px;
} }
div.post p.date{
display: none;
}
.post p.message { .post p.message {
float: left; float: left;
margin: 0; margin: 0;

View File

@ -18,7 +18,11 @@ body {
margin: 2em 0 1em 5em; margin: 2em 0 1em 5em;
font-size: 12px; font-size: 12px;
} }
.post p.message { div.post p.date{
display: none;
}
div.post p.message,
div.post p.media {
float: left; float: left;
margin: 0; margin: 0;
} }

View File

@ -10,15 +10,19 @@ body {
font-size: 16px; font-size: 16px;
line-height: 1.6; line-height: 1.6;
} }
.post { div.post {
margin: 1em 0; margin: 1em 0;
clear: both; clear: both;
} }
.post p.key { div.post p.key {
margin: 2em 0 0 5em; margin: 2em 0 0 5em;
font-size: 12px; font-size: 12px;
} }
.post p.message { div.post p.date{
display: none;
}
div.post p.message,
div.post p.media {
margin: 0; margin: 0;
} }
img, img,

View File

@ -14,6 +14,7 @@
<div id="{{ num }}" class="post"> <div id="{{ num }}" class="post">
<p class="key">{{ num }}</p> <p class="key">{{ num }}</p>
<p class="date">{{ db[num]['date'] }}</p> <p class="date">{{ db[num]['date'] }}</p>
{% if 'media' in db[num] %}<p class="media">{{ db[num]['media']['post'] }}</p>{% endif %}
<p class="message">{{ db[num]['post'] }}</p> <p class="message">{{ db[num]['post'] }}</p>
</div> </div>
{% endfor %} {% endfor %}