templates/theme.html
changeset 3 c07ffbab8647
parent 1 3aa6f55df039
child 8 806ae3aa51ae
     1.1 --- a/templates/theme.html	Wed Nov 27 12:40:37 2013 +0100
     1.2 +++ b/templates/theme.html	Wed Nov 27 13:09:28 2013 +0100
     1.3 @@ -43,7 +43,7 @@
     1.4              <span class="icon-bar"></span>
     1.5              <span class="icon-bar"></span>
     1.6            </button>
     1.7 -          <a class="navbar-brand" href="#">PyMove3D -- 2014</a>
     1.8 +          <a class="navbar-brand" href="/">PyMove3D -- 2014</a>
     1.9          </div>
    1.10          <div class="navbar-collapse collapse">
    1.11            <!--ul class="nav navbar-nav">
    1.12 @@ -64,10 +64,15 @@
    1.13              </li>
    1.14            </ul-->
    1.15            <ul class="nav navbar-nav navbar-right">
    1.16 -            <li class="active"><a href="/competition">Competition</a></li>
    1.17 -            <li><a href="/task">Task</a></li>
    1.18 -            <li><a href="/submission">Submission</a></li>
    1.19 -            <li><a href="/coursematerial">Course material</a></li>
    1.20 +             {% for href, caption in [('/competition', 'Competition'),
    1.21 +	                          ('/task', 'Task'),
    1.22 +                                  ('/submission', 'Submission'),
    1.23 +	                          ('/coursematerial', 'Coursematerial'),
    1.24 +	  ]:
    1.25 +	  %}
    1.26 +          {%- if href[1:] == act -%} 
    1.27 +          <li class="active">{% else %} <li>{% endif %}<a href="{{ href }}" >{{ caption }}</a></li>
    1.28 +          {% endfor %}
    1.29            </ul>
    1.30          </div><!--/.nav-collapse -->
    1.31        </div>
Impressum Datenschutzerklärung