55 lines
2.9 KiB
HTML
55 lines
2.9 KiB
HTML
<header>
|
|
<div class="row">
|
|
<div class="large-12 columns">
|
|
<div class="contain-to-grid sticky">
|
|
<nav class="top-bar" data-topbar role="navigation" data-options="sticky_on: large">
|
|
<ul class="title-area">
|
|
<li class="name">
|
|
<!--<h1><a href="{{ url_for('homepage.index') }}"><img src="{{ url_for('static', filename='images/logo/procdn-logo-24.png') }}" border="0" /></a></h1>-->
|
|
<h1><a href="{{ url_for('homepage.index') }}">GoCloud</a></h1>
|
|
</li>
|
|
</ul>
|
|
<section class="top-bar-section">
|
|
{% if session['user_id'] %}
|
|
<ul class="right">
|
|
<li><a href="{{ url_for('account.index') }}">{{ _('Учётная запись') }}</a></li>
|
|
<li><a href="{{ url_for('account.billing') }}">{{ _('Биллинг') }}</a></li>
|
|
<li><a href="{{ url_for('account.logout') }}">{{ _('Выход') }}</a></li>
|
|
</ul>
|
|
<ul class="left">
|
|
{% if g.settings.get('SERVICE_VMS_ENABLE', '0') == '1' %}
|
|
<li><a href="{{ url_for('vms.index') }}">{{ _('Виртуальные машины') }}</a></li>
|
|
{% endif %}
|
|
{% if g.settings.get('SERVICE_CONTAINERS_ENABLE', "0") == "1" %}
|
|
<li><a href="{{ url_for('containers.index') }}">{{ _('Контейнеры β') }}</a></li>
|
|
{% endif %}
|
|
</ul>
|
|
{% else %}
|
|
<ul class="right">
|
|
<li class="active"><a href="{{ url_for('account.login') }}">{{ _('Вход') }}</a></li>
|
|
<li><a href="{{ url_for('account.registration') }}">{{ _('Регистрация') }}</a></li>
|
|
</ul>
|
|
<ul class="left">
|
|
<li><a href="{{ url_for('homepage.index') }}">{{ _('Главная') }}</a></li>
|
|
</ul>
|
|
{% endif %}
|
|
</section>
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
{% with messages = get_flashed_messages(with_categories=true) %}
|
|
{% if messages %}
|
|
<div class="row">
|
|
<div class="large-12 columns">
|
|
{% for category, message in messages %}
|
|
<div data-alert class="alert-box {{ category }}">
|
|
{{ message }}
|
|
<a href="#" class="close">×</a>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
{% endwith %}
|