diff --git a/events.py b/events.py
index bdb5e09..7725f14 100644
--- a/events.py
+++ b/events.py
@@ -66,7 +66,7 @@ def new_post(data):
post = data["post"]
post = bleach.clean(post.strip())
post = post.replace("\n", "
")
- message = tools.handle_img(message)
+ post = tools.handle_img(post)
data["post"] = [post]
db.insert_quest_post(room, post, int(time.time()))
@@ -87,7 +87,7 @@ def update_post(data):
post = data["post"]
post = post.strip().replace("
", "
")
- message = tools.handle_img(message)
+ post = tools.handle_img(post)
data["post"] = post
post_id = data["post_id"]
diff --git a/static/anonkun.css b/static/anonkun.css
index bae8f3c..9af842e 100644
--- a/static/anonkun.css
+++ b/static/anonkun.css
@@ -38,10 +38,48 @@ img {
.questPostMeta {
white-space: nowrap;
+ padding-right: 15px;
}
-.questPostData {
- padding-left: 20px;
+#QMPostPane {
+ display: flex;
+}
+
+#QMPostTabs {
+ display: inline-block;
+ list-style-type: none;
+ padding: 0;
+ margin: 0;
+ background-color: #f1f1f1;
+ height: 200px;
+}
+
+.QMPostTab {
+ display: block;
+ padding: 8px 16px;
+ text-decoration: none;
+}
+
+.QMPostTab:hover {
+ background-color: #555;
+ color: white;
+}
+
+.QMPostTab.active {
+ background-color: #555;
+ color: white;
+}
+
+.QMPostTabContent {
+ flex: auto;
+ padding: 0px 12px;
+ border: 1px solid #ccc;
+ border-left: none;
+ width: 100px;
+}
+
+#postTextArea {
+ max-width: 100%;
}
#chatPane {
diff --git a/templates/quest.html b/templates/quest.html
index 22924bc..dfb44ce 100644
--- a/templates/quest.html
+++ b/templates/quest.html
@@ -75,6 +75,24 @@
document.getElementById('savePost-' + post_id).style.display = 'none';
}
+
{% endif %}
{% endblock %}
{% block header %}
@@ -86,29 +104,48 @@