quest page displays post dates

This commit is contained in:
iou1name 2018-06-21 15:40:38 -04:00
parent 355ff7aac8
commit 7d19270a69
2 changed files with 19 additions and 7 deletions

View File

@ -29,6 +29,15 @@
padding-right: 32%; padding-right: 32%;
} }
#questPosts {
border-spacing: 10px;
}
.questPostTime {
vertical-align: top;
white-space: nowrap;
}
#newQPostArea { #newQPostArea {
} }

View File

@ -67,15 +67,18 @@
<div id="questContainer"> <div id="questContainer">
<div id="questBody"> <div id="questBody">
<h1>{{ quest_title }}</h1> <h1>{{ quest_title }}</h1>
<div id="questPosts"> <table id="questPosts">
{% for quest_post in quest_posts %} {% for quest_post in quest_posts %}
{% autoescape false %} <tr>
<div class="questPost"> <td class="questPostTime">{{ quest_post[2] | strftime }}</td>
{{ quest_post[1] }} <td class="questPostData">
</div> {% autoescape false %}
{% endautoescape %} {{ quest_post[1] }}
{% endautoescape %}
</td>
</tr>
{% endfor %} {% endfor %}
</div> </table>
{% if session.get("user_id") == owner_id %} {% if session.get("user_id") == owner_id %}
<div id="postTextDiv"> <div id="postTextDiv">
<textarea id="postTextArea"></textarea><br /> <textarea id="postTextArea"></textarea><br />