2015-05-05 03:10:25 +02:00
|
|
|
|
2020-01-28 18:15:11 +01:00
|
|
|
<div class="navbar-header">
|
2021-05-14 14:29:36 +02:00
|
|
|
<a ng-click="toggleNavSize($event)" class="btn btn-link visible-xs" data-toggle="class:nav-off-screen" data-target="#nav" ng-hide="aboutPage">
|
|
|
|
<i class="fa fa-bars"></i>
|
|
|
|
</a>
|
|
|
|
<a ui-sref="app.public.home" class="btn btn-link visible-xs" ng-show="aboutPage">
|
|
|
|
<i class="fa fa-caret-up"></i>
|
|
|
|
</a>
|
|
|
|
<a ui-sref="app.public.home" class="navbar-brand">
|
2016-03-23 18:39:41 +01:00
|
|
|
<img ng-src="{{logo.custom_asset_file_attributes.attachment_url}}" alt="{{logo.custom_asset_file_attributes.attachment}}" class="m-r-sm"/>
|
2020-10-06 12:43:53 +02:00
|
|
|
<%= "<label class='label-staging label label-warning text-sm hidden-sm hidden-xs'>Staging</label>".html_safe if Rails.env.staging? %>
|
2020-09-09 16:25:34 +02:00
|
|
|
</a>
|
2015-05-05 03:10:25 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<ul class="nav navbar-nav hidden-xs">
|
2020-02-12 17:18:11 +01:00
|
|
|
<li class="about-page-link">
|
2021-05-14 14:29:36 +02:00
|
|
|
<a href class="about-link font-sbold text-sm" ui-sref="app.public.about" ng-show="!aboutPage">
|
2016-03-23 18:39:41 +01:00
|
|
|
<span class="label label-theme rounded text-lg text-white m-r-sm font-ebold">?</span>
|
2020-01-21 16:16:12 +01:00
|
|
|
{{ linkName }}
|
2015-05-05 03:10:25 +02:00
|
|
|
</a>
|
2021-05-14 14:29:36 +02:00
|
|
|
<a href class="about-link font-sbold text-sm" ui-sref="app.public.home" ng-show="aboutPage">
|
|
|
|
<span class="label label-theme label-icon rounded text-lg text-white m-r-sm font-ebold"><i class="fa fa-caret-up" ng-show="aboutPage"></i></span>
|
2019-12-16 16:54:40 +01:00
|
|
|
{{ 'app.public.common.return' | translate }}
|
2015-05-05 03:10:25 +02:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
<!-- Top Nav -->
|
|
|
|
<ul class="nav navbar-nav navbar-right m-n hidden-xs nav-user user">
|
2020-02-12 17:18:11 +01:00
|
|
|
<li class="notification-open notification-center-link" ng-if="isAuthenticated()">
|
2017-01-05 15:06:54 +01:00
|
|
|
<a ui-sref="app.logged.notifications"><i class="fa fa-bell fa-2x black"></i> <span class="badge" ng-class="{'bg-red': notifications.unread > 0}">{{notifications.unread}}</span></a>
|
2015-05-05 03:10:25 +02:00
|
|
|
</li>
|
2020-02-12 17:18:11 +01:00
|
|
|
<li class="dropdown user-profile-nav user-menu-dropdown" ng-if="isAuthenticated()" uib-dropdown>
|
2019-11-19 15:18:00 +01:00
|
|
|
<a class="dropdown-toggle pointer" uib-dropdown-toggle>
|
2016-09-23 14:40:41 +02:00
|
|
|
<span class="avatar text-center">
|
|
|
|
<fab-user-avatar ng-model="currentUser.profile.user_avatar" avatar-class="thumb-50"></fab-user-avatar>
|
|
|
|
<span class="user-name m-l-sm text-black-light font-sbold hidden-sm">{{currentUser.name}} </span>
|
|
|
|
<b class="caret"></b>
|
|
|
|
</span>
|
2015-05-05 03:10:25 +02:00
|
|
|
</a>
|
2020-02-19 11:34:38 +01:00
|
|
|
<ul uib-dropdown-menu class="animated fadeInRight">
|
2019-12-16 16:54:40 +01:00
|
|
|
<li><a ui-sref="app.logged.dashboard.profile" translate>{{ 'app.public.common.my_profile' }}</a></li>
|
|
|
|
<li><a ui-sref="app.logged.dashboard.settings" translate>{{ 'app.public.common.my_settings' }}</a></li>
|
|
|
|
<li><a ui-sref="app.logged.dashboard.projects" translate>{{ 'app.public.common.my_projects' }}</a></li>
|
|
|
|
<li><a ui-sref="app.logged.dashboard.trainings" translate>{{ 'app.public.common.my_trainings' }}</a></li>
|
|
|
|
<li><a ui-sref="app.logged.dashboard.events" translate>{{ 'app.public.common.my_events' }}</a></li>
|
2020-11-02 13:36:17 +01:00
|
|
|
<li><a ui-sref="app.logged.dashboard.invoices" ng-show="$root.modules.invoicing" translate>{{ 'app.public.common.my_invoices' }}</a></li>
|
2021-02-09 17:18:33 +01:00
|
|
|
<li><a ui-sref="app.logged.dashboard.payment_schedules" ng-show="$root.modules.invoicing" translate>{{ 'app.public.common.my_payment_schedules' }}</a></li>
|
2020-11-02 13:36:17 +01:00
|
|
|
<li ng-show="$root.modules.wallet"><a ui-sref="app.logged.dashboard.wallet" translate>{{ 'app.public.common.my_wallet' }}</a></li>
|
2020-04-27 17:28:11 +02:00
|
|
|
<li class="divider" ng-if="isAuthorized(['admin', 'manager'])"></li>
|
|
|
|
<li><a class="text-black pointer" ng-click="help($event)" ng-if="isAuthorized(['admin', 'manager'])"><i class="fa fa-question-circle"></i> <span translate>{{ 'app.public.common.help' }}</span> </a></li>
|
2015-05-05 03:10:25 +02:00
|
|
|
<li class="divider"></li>
|
2019-12-16 16:54:40 +01:00
|
|
|
<li><a class="text-black pointer" ng-click="logout($event)"><i class="fa fa-power-off"></i> {{ 'app.public.common.sign_out' | translate }}</a></li>
|
2015-05-05 03:10:25 +02:00
|
|
|
</ul>
|
|
|
|
</li>
|
2022-01-04 15:27:58 +01:00
|
|
|
<li ng-if="!isAuthenticated() && registrationEnabled()"><a class="font-sbold label text-md pointer" ng-click="signup($event)"><i class="fa fa-rocket"></i> {{ 'app.public.common.sign_up' | translate }}</a></li>
|
2019-10-02 14:37:47 +02:00
|
|
|
<li ng-if="!isAuthenticated()">
|
2019-12-16 16:54:40 +01:00
|
|
|
<a class="font-sbold label text-md pointer" ng-click="login($event)"><i class="fa fa-sign-in"></i> {{ 'app.public.common.sign_in' | translate }}</a>
|
2019-10-02 14:37:47 +02:00
|
|
|
</li>
|
2015-10-06 12:03:46 +02:00
|
|
|
</ul>
|