|
|
|
|
XML+Django/Jinja
|
20 lines
|
20 sloc
|
1.46 kB
  1. <div id="nav-top" class="w3-bar w3-border w3-teal"> 
  2.                 <button class="w3-button w3-teal w3-large w3-bar-item nav-top-highlight" onclick="navflip()">&#9876;</button> 
  3.                 <a href="#" class="w3-bar-item w3-button w3-large nav-top-highlight">Gauntlet</a> 
  4.                 <a href="#" class="w3-bar-item w3-button w3-large nav-top-highlight">Link 1</a> 
  5.                 <a href="#" class="w3-bar-item w3-button w3-large nav-top-highlight">Link 2</a> 
  6.                 <a href="#" class="w3-bar-item w3-button w3-large nav-top-highlight">Link 3</a> 
  7.                 {% if 1 == 1 %} 
  8.                 <div class="w3-dropdown-hover w3-right"> 
  9.                     <a href="#" class="w3-bar-item w3-button w3-large nav-top-highlight">User</a> 
  10.                     <div class="w3-dropdown-content w3-bar-block w3-border" style="right:0"> 
  11.                         <a href="#" class="w3-bar-item w3-button">link 1</a> 
  12.                         <a href="#" class="w3-bar-item w3-button">link 2</a> 
  13.                         <a href="#" class="w3-bar-item w3-button">link 3</a> 
  14.                     </div> 
  15.                 </div> 
  16.                 {% else %} 
  17.                     <a href="#" class="w3-bar-item w3-button w3-large nav-top-highlight" style="float:right;">Login</a> 
  18.                     <a href="#" class="w3-bar-item w3-button w3-large nav-top-highlight" style="float:right;">Register</a> 
  19.                 {% endif %} 
  20.             </div>