proxadmin/app/templates/nav.html

63 lines
3.5 KiB
HTML
Raw Permalink Normal View History

2017-05-10 23:08:38 -04:00
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
2017-03-08 13:53:09 -05:00
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
{% if not current_user.is_authenticated %}
2017-05-12 15:10:56 -04:00
<a class="navbar-brand" href="{{ url_for('main.index') }}" rel="home"></a>
2017-03-08 13:53:09 -05:00
{% else %}
2018-01-11 08:19:59 -05:00
<a class="navbar-brand" href="{{ url_for('panel.dashboard') }}" rel="home"></a>
2017-03-08 13:53:09 -05:00
{% endif %}
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
2017-05-09 20:13:44 -04:00
{% if current_user.is_authenticated %}
2018-03-22 18:15:50 -04:00
<li><a href="{{ url_for('panel.deploy') }}"><span class="glyphicon glyphicon-send"></span> Deploy</a></li>
<!--
2017-06-06 09:49:32 -04:00
<li class="dropdown">
2017-03-08 13:53:09 -05:00
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="glyphicon glyphicon-send"></span> Deploy Application</a>
<ul class="dropdown-menu">
<li><a href="/market/1"><span class="glyphicon glyphicon-send"></span> Business</a></li>
<li><a href="/market/2"><span class="glyphicon glyphicon-send"></span> Games</a></li>
2017-05-09 20:13:44 -04:00
<li><a href="/market/3"><span class="glyphicon glyphicon-send"></span> Misc</a></li>
</ul> -->
{% endif %}
2017-03-08 13:53:09 -05:00
</ul>
<ul class="nav navbar-nav navbar-right">
{% if not current_user.is_authenticated %}
<li><a href="#"><span class="glyphicon glyphicon-phone"></span> +359 32 398 295</a></li>
<!--<li><a href="{{ url_for('auth.register') }}"><span class="glyphicon glyphicon-pencil"></span> Register</a></li>
<li><a href="{{ url_for('auth.login') }}"><span class="glyphicon glyphicon-lock"></span> Login</a></li>-->
2017-03-08 13:53:09 -05:00
{% else %}
2017-06-06 09:49:32 -04:00
{% if current_user.is_administrator() %}
2017-06-25 10:11:52 -04:00
<li><a href="{{ url_for('admin.index') }}"><span class="glyphicon glyphicon-wrench"></span> Admin Panel</a></li>
2017-06-06 09:49:32 -04:00
{% endif %}
2017-03-08 13:53:09 -05:00
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><img class="avatar" src="{{ current_user.gravatar(20) }}"> {{ current_user.email }} <span class="caret"></span></a>
<ul class="dropdown-menu">
<li><a href="{{ url_for('panel.dashboard') }}"><span class="glyphicon glyphicon-modal-window"></span> Dashboard</a></li>
2017-06-10 23:26:10 -04:00
<li><a href="{{ url_for('uinvoice.transactions') }}"><span class="glyphicon glyphicon-list-alt"></span> Transactions</a></li>
2017-03-08 13:53:09 -05:00
<li role="separator" class="divider"></li>
2017-03-13 09:36:21 -04:00
<li><a href="{{ url_for('settings.profile') }}"><span class="glyphicon glyphicon-user"></span> Profile</a></li>
2018-05-06 12:13:02 -04:00
<!-- <li><a href="{{ url_for('panel.support_list') }}"><span class="glyphicon glyphicon-question-sign"></span> Support</a></li>-->
2017-03-08 13:53:09 -05:00
<li><a href="{{ url_for('auth.logout') }}"><span class="glyphicon glyphicon-off"></span> Logout</a></li>
</ul>
</li>
{% endif %}
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
2017-05-09 20:13:44 -04:00
</nav>