Changeset 608 in tmcsimulator for branches/LCSv1/views/layout.html


Ignore:
Timestamp:
03/30/2020 01:12:49 PM (6 years ago)
Author:
jdalbey
Message:

LCSv1 update layout.html and lcstrain.css to enhance nav bar functionality to show selected tab in blue.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/LCSv1/views/layout.html

    r607 r608  
    1414          user-scalable = yes allows the user to zoom in --> 
    1515    <meta name="viewport" content="width=device-width, initial-scale=1.0"> 
    16     <title>{{=response.title or request.application}}</title> 
     16    <title>{{=response.title or request.application}} {{=request.function}}</title> 
    1717    <!-- http://dev.w3.org/html5/markup/meta.name.html --> 
    1818    <meta name="application-name" content="{{=request.application}}"> 
     
    3636  <body> 
    3737    <div class="w2p_flash alert alert-dismissable">{{=response.flash or ''}}</div> 
     38       
     39      <!-- Don't show the banner and navbar on the login page --> 
     40     {{if (request.function != "index"):}} 
     41     <!-- LCS banner ===================================== --> 
    3842      <div class="container" id="banner"> 
    3943          <div class = "toplinks" style = "float:right"> 
    40 <a href="help.html">Help</a>&nbsp;&nbsp;&nbsp;<a href="index.html">Logout</a> 
     44              <a href="help.html" style="text-decoration:underline">Help</a>&nbsp;&nbsp;&nbsp; 
     45              <a href="index.html" style="text-decoration:underline">Logout</a> 
    4146          </div> 
    4247          <div class="lcslogo"> 
     
    4651          </div> 
    4752      </div> 
    48     </div> 
    49     <!-- Navbar ======================================= --> 
    50     <div role="navigation" class="navtabs" style="margin-top: 3%;"> 
    51       <div class="tabrow">        
    52           {{for _item in response.menu or []:}} 
    53           {{if len(_item)<4 or not _item[3]:}} 
    54             <a class="tabBtn" href="{{=_item[2]}}">{{=_item[0]}}</a> 
    55           {{else:}} 
    56             <a class="tabBtn" href="{{=_item[2]}}" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">{{=_item[0]}}</a> 
    57           {{pass}} 
    58           {{pass}} 
     53    <!-- LCS navbar ===================================== --> 
     54     <div role="navigation" class="navtabs"> 
     55      <div class="tabrow"> 
     56      <!-- Display the menu choices as tabs with the current page highlighted --> 
     57     {{for _item in response.menu or []:}} 
     58            <a class="tabBtn {{if _item[2].endswith(request.function):}}selectedTab{{pass}}" href="{{=_item[2]}}">{{=_item[0]}}</a> 
     59     {{pass}} 
    5960      </div> 
    6061      <hr class="tabBar"> 
    6162    </div> 
    62  
     63    {{pass}} 
    6364    <!-- Masthead ===================================== --> 
    6465    {{block header}} 
Note: See TracChangeset for help on using the changeset viewer.