Commits

Wilson Xu  committed 8b4f71f

Moved flash message out of container.

  • Participants
  • Parent commits 2aaf8c3

Comments (0)

Files changed (2)

File fbone/static/css/style.css

-.nostyle_list { list-style: none; list-style-image: none; padding: 0; margin: 0; }
-
-.logo { height: 60px; }
-.logo h1, .logo h2 { padding: 0; margin: 0; display: inline; }
-
 .card_container { overflow: auto; list-style: none; list-style-image: none; padding: 0; margin: 0; }
 .card_container li { float: left; padding: 0 5px; }
 .lh48 { line-height: 48px; }

File fbone/templates/layout.html

     {% endblock %}
 </head>
 <body>
+    {% block flash_message %}
+        {% with messages = get_flashed_messages(with_categories=True) %}
+            {% if messages %}
+            <div id='flash_message_container'>
+                {% for category, msg in messages %}
+                <span class="flash_message {{ category }}">{{ msg }}</span>
+                {% endfor %}
+            </div>
+            {% endif %}
+        {% endwith %}
+    {% endblock %}
+
     <div class="container">
-        {% block flash_message %}
-            {% with messages = get_flashed_messages(with_categories=True) %}
-                {% if messages %}
-                <div id='flash_message_container'>
-                    {% for category, msg in messages %}
-                    <span class="flash_message {{ category }}">{{ msg }}</span>
-                    {% endfor %}
-                </div>
-                {% endif %}
-            {% endwith %}
-        {% endblock %}
-
         <header role='banner'>
             <h1><a href="{{ url_for('frontend.index') }}">Fbone</a><small> A Flask skeleton project.</small></h1>
             {% block main_nav %}