1
0
Fork 0
mirror of https://github.com/retspen/webvirtcloud synced 2024-12-25 15:45:23 +00:00
webvirtcloud/templates/navbar.html

48 lines
2.6 KiB
HTML
Raw Normal View History

2015-04-21 11:46:58 +00:00
{% load i18n %}
{% load tags_active %}
<!-- Fixed navbar -->
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
2015-03-04 15:48:22 +00:00
<div class="navbar-header">
2015-04-21 11:46:58 +00:00
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
2018-08-01 14:18:51 +00:00
<span class="sr-only">{% trans 'Toggle navigation' %}</span>
2015-04-21 11:46:58 +00:00
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="{% url 'index' %}">WebVirtCloud</a>
2015-03-04 15:48:22 +00:00
</div>
2015-04-21 11:46:58 +00:00
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav">
<li {% class_active request "^/instance" %}>
<a href="{% url 'instances' %}"><i class="fa fa-fw fa-desktop"></i> {% trans "Instances" %}</a>
</li>
{% if request.user.is_superuser %}
<li {% class_active request "^/compute" %}{% class_active request "^/create" %}>
2015-05-13 07:32:10 +00:00
<a href="{% url 'computes' %}"><i class="fa fa-fw fa-server"></i> {% trans "Computes" %}</a>
2015-04-21 11:46:58 +00:00
</li>
<li {% class_active request "^/account" %}>
<a href="{% url 'accounts' %}"><i class="fa fa-fw fa-users"></i> {% trans "Users" %}</a>
</li>
<li {% class_active request "^/log" %}>
<a href="{% url 'showlogs' %}"><i class="fa fa-fw fa-list-alt"></i> {% trans "Logs" %}</a>
</li>
{% endif %}
</ul>
<ul class="nav navbar-nav navbar-right">
2015-03-04 15:48:22 +00:00
<li class="dropdown">
2015-05-13 07:32:10 +00:00
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><i class="fa fa-fw fa-user"></i> {{ request.user.username }} <span class="caret"></span></a>
2015-04-21 11:46:58 +00:00
<ul class="dropdown-menu" role="menu">
<li>
2018-08-01 14:01:49 +00:00
<a href="{% url 'profile' %}"><i class="fa fa-fw fa-pencil-square-o"></i> {% trans "Profile" %}</a>
2015-04-21 11:46:58 +00:00
</li>
<li class="divider"></li>
<li>
2018-08-01 14:01:49 +00:00
<a href="{% url 'logout' %}"><i class="fa fa-fw fa-power-off"></i> {% trans "Log Out" %}</a>
2015-04-21 11:46:58 +00:00
</li>
</ul>
2015-03-04 15:48:22 +00:00
</li>
2015-04-21 11:46:58 +00:00
</ul>
</div><!--/.nav-collapse -->
</div>
2015-03-04 15:48:22 +00:00
</nav>