diff options
| author | citrons <citrons> | 2021-08-08 00:15:59 +0000 | 
|---|---|---|
| committer | citrons <citrons> | 2021-08-08 00:15:59 +0000 | 
| commit | 6ccb87c7c0e735664061154ff6ca6980fa332083 (patch) | |
| tree | 6d880652bee75a40dd40e8a9e00d08b5748024dc | |
| parent | 761e87bd3f5942199dc24ea93f455284ccb608fb (diff) | |
fix things
| -rw-r--r-- | apioforum/templates/config_thread.html | 5 | ||||
| -rw-r--r-- | apioforum/templates/view_forum.html | 2 | 
2 files changed, 4 insertions, 3 deletions
diff --git a/apioforum/templates/config_thread.html b/apioforum/templates/config_thread.html index 383cc9c..0795ccc 100644 --- a/apioforum/templates/config_thread.html +++ b/apioforum/templates/config_thread.html @@ -29,7 +29,8 @@  <a href="{{url_for('thread.view_thread',thread_id=thread.id)}}">cancel</a>  </form> -{% if thread.poll is none and has_permission(thread.forum, g.user, "p_create_polls") %} +{% if has_permission(thread.forum, g.user, "p_create_polls") %} +{% if thread.poll is none %}  <h2>create poll</h2>  <form method="post" action="{{url_for('thread.create_poll',thread_id=thread.id)}}">      <fieldset> @@ -49,7 +50,7 @@  <form action="{{url_for('thread.delete_poll',thread_id=thread.id)}}" method="post">      <input type="submit" value="confirm: delete poll">  </form> - +{% endif %}  {% endif %}  {% endblock %} diff --git a/apioforum/templates/view_forum.html b/apioforum/templates/view_forum.html index 0994752..c42b7b8 100644 --- a/apioforum/templates/view_forum.html +++ b/apioforum/templates/view_forum.html @@ -72,7 +72,7 @@  <p>  {% if has_permission(forum.id, g.user, "p_create_threads") %}  <a class="actionbutton" href="{{url_for('forum.create_thread',forum_id=forum.id)}}">create new thread</a> -{% elif has_permission(forum.id, g.user "p_create_threads", login_required=False) %} +{% elif has_permission(forum.id, g.user, "p_create_threads", login_required=False) %}  please log in to create a new thread  {% else %}  you do not have permission to create threads in this forum  | 
