Browse Source

Fix html escapes

sh4nks 11 years ago
parent
commit
0ccc7be96d

+ 2 - 2
flaskbb/templates/layout.html

@@ -43,14 +43,14 @@
                     </div>
                     </div>
                     <div class="collapse navbar-collapse navbar-ex1-collapse">
                     <div class="collapse navbar-collapse navbar-ex1-collapse">
                         <ul class="nav navbar-nav">
                         <ul class="nav navbar-nav">
-                            {{ emit_event("before-first-navigation-element") }}
+                            {{ emit_event("before-first-navigation-element") | safe }}
 
 
                             {# active_forum_nav is set in {forum, category, topic}.html and new_{topic, post}.html #}
                             {# active_forum_nav is set in {forum, category, topic}.html and new_{topic, post}.html #}
                             {{ topnav(endpoint='forum.index', name='Forum', icon='fa fa-comment', active=active_forum_nav) }}
                             {{ topnav(endpoint='forum.index', name='Forum', icon='fa fa-comment', active=active_forum_nav) }}
                             {{ topnav(endpoint='forum.memberlist', name='Memberlist', icon='fa fa-user') }}
                             {{ topnav(endpoint='forum.memberlist', name='Memberlist', icon='fa fa-user') }}
                             {{ topnav(endpoint='forum.search', name='Search', icon='fa fa-search') }}
                             {{ topnav(endpoint='forum.search', name='Search', icon='fa fa-search') }}
 
 
-                            {{ emit_event("after-last-navigation-element") }}
+                            {{ emit_event("after-last-navigation-element") | safe }}
                         </ul>
                         </ul>
 
 
                     {% if current_user and current_user.is_authenticated() %}
                     {% if current_user and current_user.is_authenticated() %}

+ 2 - 2
flaskbb/themes/bootstrap2/templates/layout.html

@@ -44,14 +44,14 @@
                     </div>
                     </div>
                     <div class="collapse navbar-collapse navbar-ex1-collapse">
                     <div class="collapse navbar-collapse navbar-ex1-collapse">
                         <ul class="nav navbar-nav">
                         <ul class="nav navbar-nav">
-                            {{ emit_event("before-first-navigation-element") }}
+                            {{ emit_event("before-first-navigation-element") | safe }}
 
 
                             {# active_forum_nav is set in {forum, category, topic}.html and new_{topic, post}.html #}
                             {# active_forum_nav is set in {forum, category, topic}.html and new_{topic, post}.html #}
                             {{ topnav(endpoint='forum.index', name='Forum', icon='fa fa-comment', active=active_forum_nav) }}
                             {{ topnav(endpoint='forum.index', name='Forum', icon='fa fa-comment', active=active_forum_nav) }}
                             {{ topnav(endpoint='forum.memberlist', name='Memberlist', icon='fa fa-user') }}
                             {{ topnav(endpoint='forum.memberlist', name='Memberlist', icon='fa fa-user') }}
                             {{ topnav(endpoint='forum.search', name='Search', icon='fa fa-search') }}
                             {{ topnav(endpoint='forum.search', name='Search', icon='fa fa-search') }}
 
 
-                            {{ emit_event("after-last-navigation-element") }}
+                            {{ emit_event("after-last-navigation-element") | safe }}
                         </ul>
                         </ul>
 
 
                     {% if current_user and current_user.is_authenticated() %}
                     {% if current_user and current_user.is_authenticated() %}

+ 2 - 2
flaskbb/themes/bootstrap3/templates/layout.html

@@ -43,14 +43,14 @@
                     </div>
                     </div>
                     <div class="collapse navbar-collapse navbar-ex1-collapse">
                     <div class="collapse navbar-collapse navbar-ex1-collapse">
                         <ul class="nav navbar-nav">
                         <ul class="nav navbar-nav">
-                            {{ emit_event("before-first-navigation-element") }}
+                            {{ emit_event("before-first-navigation-element") | safe }}
 
 
                             {# active_forum_nav is set in {forum, category, topic}.html and new_{topic, post}.html #}
                             {# active_forum_nav is set in {forum, category, topic}.html and new_{topic, post}.html #}
                             {{ topnav(endpoint='forum.index', name='Forum', icon='fa fa-comment', active=active_forum_nav) }}
                             {{ topnav(endpoint='forum.index', name='Forum', icon='fa fa-comment', active=active_forum_nav) }}
                             {{ topnav(endpoint='forum.memberlist', name='Memberlist', icon='fa fa-user') }}
                             {{ topnav(endpoint='forum.memberlist', name='Memberlist', icon='fa fa-user') }}
                             {{ topnav(endpoint='forum.search', name='Search', icon='fa fa-search') }}
                             {{ topnav(endpoint='forum.search', name='Search', icon='fa fa-search') }}
 
 
-                            {{ emit_event("after-last-navigation-element") }}
+                            {{ emit_event("after-last-navigation-element") | safe }}
                         </ul>
                         </ul>
 
 
                     {% if current_user and current_user.is_authenticated() %}
                     {% if current_user and current_user.is_authenticated() %}