[LNT] r176927 - Allow subtemplates of layout.html to override the LNT page header.

Michael Gottesman mgottesman at apple.com
Tue Mar 12 22:44:24 PDT 2013


Author: mgottesman
Date: Wed Mar 13 00:44:24 2013
New Revision: 176927

URL: http://llvm.org/viewvc/llvm-project?rev=176927&view=rev
Log:
Allow subtemplates of layout.html to override the LNT page header.

I am going to use this in the global status page to add a wrench icon to
allow for a settings lightbox panel.

Modified:
    lnt/trunk/lnt/server/ui/templates/layout.html

Modified: lnt/trunk/lnt/server/ui/templates/layout.html
URL: http://llvm.org/viewvc/llvm-project/lnt/trunk/lnt/server/ui/templates/layout.html?rev=176927&r1=176926&r2=176927&view=diff
==============================================================================
--- lnt/trunk/lnt/server/ui/templates/layout.html (original)
+++ lnt/trunk/lnt/server/ui/templates/layout.html Wed Mar 13 00:44:24 2013
@@ -25,6 +25,7 @@
     {# Page Header #}
     <nav id="header" class="clearfix">
       <div class="container">
+        {% block page_header %}
         {# LNT Instance Title #}
         <a href="{{url_for('index')}}" class="header-title">
           <h2>{{old_config.name}}</h2>
@@ -54,6 +55,7 @@
             <input type="submit" value="Go"/>
           </form>
         </span>
+        {% endblock %}
       </div>
     </nav>
 





More information about the llvm-commits mailing list