2017-12-13 11:08:33 +01:00
|
|
|
| {% block menu_body %}
|
|
|
|
| {% if current_user.is_authenticated %}
|
|
|
|
|
2018-08-28 15:52:50 +02:00
|
|
|
li.dropdown
|
2017-12-13 11:08:33 +01:00
|
|
|
| {% block menu_avatar %}
|
|
|
|
a.navbar-item.dropdown-toggle(href="#", data-toggle="dropdown", title="{{ current_user.email }}")
|
|
|
|
img.gravatar(
|
|
|
|
src="{{ current_user.gravatar }}",
|
|
|
|
alt="Avatar")
|
|
|
|
| {% endblock menu_avatar %}
|
|
|
|
|
2018-08-28 15:52:50 +02:00
|
|
|
ul.dropdown-menu.dropdown-menu-right
|
2017-12-13 11:08:33 +01:00
|
|
|
| {% if not current_user.has_role('protected') %}
|
|
|
|
| {% block menu_list %}
|
|
|
|
li
|
|
|
|
a.navbar-item(
|
|
|
|
href="{{ url_for('projects.home_project') }}"
|
|
|
|
title="Home")
|
2018-08-31 19:31:36 +02:00
|
|
|
| #[i.pi-home] Home
|
2017-12-13 11:08:33 +01:00
|
|
|
|
|
|
|
li
|
|
|
|
a.navbar-item(
|
|
|
|
href="{{ url_for('projects.index') }}"
|
|
|
|
title="My Projects")
|
2018-08-31 19:31:36 +02:00
|
|
|
| #[i.pi-star] My Projects
|
2017-12-13 11:08:33 +01:00
|
|
|
|
|
|
|
| {% if current_user.has_organizations() %}
|
|
|
|
li
|
|
|
|
a.navbar-item(
|
|
|
|
href="{{ url_for('pillar.web.organizations.index') }}"
|
|
|
|
title="My Organizations")
|
2018-08-31 19:31:36 +02:00
|
|
|
| #[i.pi-users] My Organizations
|
2017-12-13 11:08:33 +01:00
|
|
|
| {% endif %}
|
|
|
|
|
|
|
|
li
|
|
|
|
a.navbar-item(
|
|
|
|
href="{{ url_for('settings.profile') }}"
|
|
|
|
title="Settings")
|
2018-08-31 19:31:36 +02:00
|
|
|
| #[i.pi-cog] Settings
|
2017-12-13 11:08:33 +01:00
|
|
|
|
|
|
|
| {% endblock menu_list %}
|
|
|
|
|
2018-08-28 15:52:50 +02:00
|
|
|
li.dropdown-divider(role="separator")
|
2017-12-13 11:08:33 +01:00
|
|
|
| {% endif %}
|
|
|
|
|
|
|
|
li
|
|
|
|
a.navbar-item(
|
|
|
|
href="{{ url_for('users.logout') }}")
|
|
|
|
i.pi-log-out(title="Log Out")
|
|
|
|
| Log out
|
|
|
|
a.navbar-item.subitem(
|
|
|
|
href="{{ url_for('users.switch') }}")
|
|
|
|
i.pi-blank
|
|
|
|
| Not {{ current_user.full_name }}?
|
|
|
|
|
|
|
|
| {% else %}
|
|
|
|
|
2018-08-31 19:31:36 +02:00
|
|
|
li.pt-1.pr-1
|
|
|
|
a.btn.btn-sm.btn-outline-primary.px-3(
|
|
|
|
href="{{ url_for('users.login') }}")
|
|
|
|
| Log In
|
2017-12-13 11:08:33 +01:00
|
|
|
| {% endif %}
|
|
|
|
| {% endblock menu_body %}
|