layerindex-web/templates/base_toplevel.html
Paul Eggleton 517424dc81 Upgrade to Bootstrap 3
Use a more modern version of Bootstrap and take the opportunity to
upgrade jQuery to the latest version at the same time. This provides
better browser compatibility, moves to MIT license, allows us to make
the site more responsive for different devices in future, and provides
theming capabilities for custom installs among other improvements.

(I chose to upgrade to v3 for now rather than straight to v4 as it was
easier to do this gradually.)

Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
2018-09-20 15:57:59 +12:00

65 lines
2.5 KiB
HTML

{% 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">
{% block navbar %}
<nav class="navbar navbar-default">
<div class="container-fluid">
<ul class="nav navbar-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 }}
{% if branch.name == url_branch %}</b>{% endif %}
</a></li>
{% endfor %}
{% if comparison_branches %}
<li class="divider"></li>
{% for branch in comparison_branches %}
<li><a href="{% url 'comparison_recipe_search' branch.name %}">
{% if branch.name == url_branch %}<b>{% endif %}
{{ branch }}
{% if branch.name == url_branch %}</b>{% endif %}
</a></li>
{% endfor %}
{% endif %}
</ul>
</li>
{% endblock %}
</ul>
<ul class="nav navbar-nav">
{% block navs %}{% endblock %}
</ul>
{% block navs_extra %}{% endblock %}
</div>
</nav>
{% endblock %}
{% block content_inner %}{% endblock %}
</div>
</div>
{% endblock %}