aboutsummaryrefslogtreecommitdiffstats
path: root/templates/base_toplevel.html
blob: 79bd1ffd15e1c26f525bc478f66d5cfb0e6a70d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{% extends "base.html" %}
{% load i18n %}

{% comment %}

  layerindex-web - top level page template

  Copyright (C) 2013 Intel Corporation
  Licensed under the MIT license, see COPYING.MIT for details

{% endcomment %}

{% block content %}

    <div class="container-fluid">
        <div class="row-fluid">

            <div class="navbar">
                <div class="navbar-inner">
                    <ul class="nav">
                        {% block branch_selector %}
                        <li class="dropdown">
                            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
                            Branch: <b>{{ url_branch }}</b>
                            <b class="caret"></b>
                            </a>
                            <ul class="dropdown-menu">
                                {% for branch in all_branches %}
                                    <li><a href="{% url this_url_name branch.name %}{{ extra_url_param }}">
                                        {% if branch.name == url_branch %}<b>{% endif %}
                                        {{ branch.name }}
                                        {% if branch.short_description %}
                                        ({{ branch.short_description }})
                                        {% endif %}
                                        {% if branch.name == url_branch %}</b>{% endif %}
                                    </a></li>
                                {% endfor %}
                                {% if oe_classic %}
                                    <li class="divider"></li>
                                    <li><a href="{% url 'classic' %}">OE-Classic</a></li>
                                {% endif %}
                            </ul>
                        </li>
                        {% endblock %}
                    </ul>

                    <ul class="nav">
                        {% block navs %}{% endblock %}
                    </ul>
                </div>
            </div>

            {% block content_inner %}{% endblock %}

        </div>
    </div>

{% endblock %}