Browse Source

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

master
manetta 3 years ago
parent
commit
644bce53a7
  1. 3
      LogBot/stylesheets/anarchive.css
  2. 6
      LogBot/stylesheets/float.css
  3. 10
      LogBot/stylesheets/timeline.css
  4. 1
      LogBot/template.html

3
LogBot/stylesheets/anarchive.css

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

6
LogBot/stylesheets/float.css

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

10
LogBot/stylesheets/timeline.css

@ -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,

1
LogBot/template.html

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

Loading…
Cancel
Save