diff --git a/quest/jinja2/quest/quest_homepage.html b/quest/jinja2/quest/quest_homepage.html index c545727..34d4400 100644 --- a/quest/jinja2/quest/quest_homepage.html +++ b/quest/jinja2/quest/quest_homepage.html @@ -2,6 +2,9 @@ {% block title %}{{ quest.title }}{% endblock %} {% block head %} + {% if request.user == quest.owner %} + + {% endif %} + {% if request.user == quest.owner %} + + {% endif %} + + - {% endblock %} {% block header %} {% if request.user == quest.owner %} @@ -20,7 +27,7 @@ {% for page in pages %} - {{ page.title }} + {{ page.title }} {% endfor %} {% if appendices %} @@ -72,6 +79,22 @@ {% endfor %} {% endif %} + {% if quest.owner == request.user %} + + + + Page + + + + + New Page: + Appendix: + + + + + {% endif %} {% if vars['next_page'] %} diff --git a/quest/static/quest.js b/quest/static/quest.js index e8c86a4..415f1fd 100644 --- a/quest/static/quest.js +++ b/quest/static/quest.js @@ -157,7 +157,7 @@ socket.events['set_option_box'] = function(data) { } socket.events['new_page'] = function(data) { if (page_num != data.page_num-1) { return; } - let html_str = ''; + let html_str = ''; document.getElementById('questPane').innerHTML = document.getElementById('questPane').innerHTML + html_str; }