1.1 --- a/templates/theme.html Sat Jan 18 20:06:19 2014 +0100
1.2 +++ b/templates/theme.html Sat Jan 18 20:43:38 2014 +0100
1.3 @@ -41,12 +41,7 @@
1.4 </div>
1.5 <div class="collapse navbar-collapse">
1.6 <ul class="nav navbar-nav navbar-right">
1.7 - {% for href, caption in [('/competition', 'Competition'),
1.8 - ('/task', 'Task'),
1.9 - ('/submission', 'Submission'),
1.10 - ('/coursematerial', 'Coursematerial'),
1.11 - ]:
1.12 - %}
1.13 + {% for href, caption in get_topmenue(): %}
1.14 {%- if href[1:] == act -%}
1.15 <li class="active">{% else %} <li>{% endif %}<a href="{{ href }}" >{{ caption }}</a></li>
1.16 {% endfor %}