Browse Source

A few template adjustments

sh4nks 11 years ago
parent
commit
f862057f9f

+ 4 - 0
flaskbb/templates/forum/forum.html

@@ -19,7 +19,11 @@
 
 {% if current_user|post_topic(forum) and not forum.is_category %}
 <div class="pull-right" style="padding-bottom: 10px">
+    {% if forum.locked %}
+    <span class="btn btn-primary"><span class="fa fa-lock"></span> Locked</span>
+    {% else %}
     <a href="{{ url_for('forum.new_topic', forum_id=forum.id) }}" class="btn btn-primary">New Topic</a>
+    {% endif %}
 </div>
 {% endif %}
 {% if subforums[0]|length %}

+ 1 - 1
flaskbb/templates/forum/topic.html

@@ -20,7 +20,7 @@
 </div> <!-- end span pagination -->
 
 <div class="pull-right" style="padding-bottom: 10px">
-    {% if current_user|post_reply(topic.forum) and not topic.locked %}
+    {% if current_user|post_reply(topic.forum) and not (topic.locked or not topic.forum.locked) %}
     <a href="{{ url_for('forum.new_post', topic_id=topic.id) }}" class="btn btn-primary">Reply</a>
     {% endif %}
     {% if current_user|delete_topic(topic.first_post.user_id, topic.forum) %}

+ 1 - 1
flaskbb/templates/layout.html

@@ -58,7 +58,7 @@
                                 <li class="divider"></li>
                                 {% endif %}
 
-                                <li><a href="{{ url_for('auth.logout') }}"><span class="fa fa-share-alt"></span> Logout</a></li>
+                                <li><a href="{{ url_for('auth.logout') }}"><span class="fa fa-power-off"></span> Logout</a></li>
                             </ul>
                         </div>
 

+ 1 - 1
flaskbb/templates/message/new_message.html

@@ -6,7 +6,7 @@
     {{ form.hidden_tag() }}
     {{ wtf.horizontal_field(form.to_user)}}
     {{ wtf.horizontal_field(form.subject)}}
-    {{ wtf.horizontal_field(form.message)}}
+    {{ wtf.horizontal_field(form.message, rows=7)}}
 
     <div class="form-group row">
         <div class="col-sm-offset-3 col-lg-9">