Kevin Veroneau avatar Kevin Veroneau committed 7cab76e

Updated templates to include contrib.messages div.

Comments (0)

Files changed (8)

bootstrap_theme/templates/bootstrap_theme/base_example.html

 {% endnavbar %}
 
 {% container %}
-{% if messages %}{% row %}{% span "12" %}{% messages %}{% endspan %}{% endrow %}{% endif %}
+{% if messages %}{% row %}{% span "12" %}{% include 'bootstrap_theme/fragments/messages.html' %}{% endspan %}{% endrow %}{% endif %}
 {% row %}
 {% span "4" %}
 Hohum

bootstrap_theme/templates/bootstrap_theme/carousel.html

       </div> <!-- /.container -->
     </div><!-- /.navbar-wrapper -->
 
-
+{% include 'bootstrap_theme/fragments/messages.html' %}
 
     <!-- Carousel
     ================================================== -->

bootstrap_theme/templates/bootstrap_theme/fluid.html

         </div>
       </div>
     </div>
-
+{% include 'bootstrap_theme/fragments/messages.html' %}
     <div class="container-fluid">
       <div class="row-fluid">
         <div class="span3">

bootstrap_theme/templates/bootstrap_theme/marketing.html

     </div>
 
     <div class="container">
-
+{% include 'bootstrap_theme/fragments/messages.html' %}
       <!-- Main hero unit for a primary marketing message or call to action -->
       <div class="hero-unit">
         <h1>Hello, world!</h1>

bootstrap_theme/templates/bootstrap_theme/marketing_clean.html

           </div>
         </div><!-- /.navbar -->
       </div>
-
+{% include 'bootstrap_theme/fragments/messages.html' %}
 {% block content %}
       <!-- Jumbotron -->
       <div class="jumbotron">

bootstrap_theme/templates/bootstrap_theme/marketing_narrow.html

       </div>
 
       <hr>
+{% include 'bootstrap_theme/fragments/messages.html' %}
 {% block content %}
       <div class="jumbotron">
         <h1>Super awesome marketing speak!</h1>

bootstrap_theme/templates/bootstrap_theme/starter.html

     </div>
 
     <div class="container">
+    {% include 'bootstrap_theme/fragments/messages.html' %}
 {% block content %}
       <h1>Bootstrap starter template</h1>
       <p>Use this document as a way to quick start any new project.<br> All you get is this message and a barebones HTML document.</p>

bootstrap_theme/templatetags/bootstrap.py

 def header():
     return {'static_url':settings.STATIC_URL}
 
-@register.inclusion_tag('bootstrap_theme/fragments/messages.html', takes_context=True)
-def messages(context):
-    return {'messages':context['messages']}
-
 @register.simple_tag
 def icon(i):
     return '<i class="icon-%s"></i>' % i
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.