1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-04 15:24:23 +01:00
fab-manager/app/assets/templates/shared/leftnav.html.erb

96 lines
5.1 KiB
Plaintext
Raw Normal View History

2015-05-05 03:10:25 +02:00
2016-03-23 18:39:41 +01:00
<section class="vbox bg-red" >
2015-05-05 03:10:25 +02:00
<section class="w-f scrollable">
<div class="slim-scroll" data-height="auto" data-disable-fade-out="true" data-distance="0" data-size="10px" data-railOpacity="0.2">
<!-- nav -->
<nav class="nav-primary hidden-xs">
2016-03-23 18:39:41 +01:00
<ul class="nav nav-main m-t-xs" data-ride="collapse">
<!-- Disconnected user menu for small devices -->
<li class="hidden-sm hidden-md hidden-lg" ng-if-start="!isAuthenticated()">
<a class="auto pointer" ng-click="signup($event)">
2019-12-17 18:06:56 +01:00
<i class="fa fa-rocket"></i> <span translate>{{ 'app.public.common.sign_up' }}</span>
2016-03-23 18:39:41 +01:00
</a>
</li>
<li class="hidden-sm hidden-md hidden-lg" ng-if-end>
<a class="auto pointer" ng-click="login($event)">
2019-12-17 18:06:56 +01:00
<i class="fa fa-sign-in"></i> <span translate>{{ 'app.public.common.sign_in' }}</span>
2016-03-23 18:39:41 +01:00
</a>
</li>
<!-- Connected user menu for small devices -->
<li class="notification-open hidden-sm hidden-md hidden-lg" ng-if-start="isAuthenticated()">
<a ui-sref="app.logged.notifications">
2016-03-23 18:39:41 +01:00
<i>
<i class="fa fa-bell fa-2x black"></i> <span class="menu-badge badge" ng-class="{'bg-red': notifications.length > 0}">{{notifications.length}}</span>
</i>
2019-12-17 18:06:56 +01:00
<span translate>{{ 'app.public.common.notifications' }}</span>
2016-03-23 18:39:41 +01:00
</a>
</li>
<li class="hidden-sm hidden-md hidden-lg">
<a class="pointer" ng-click="logout($event)">
2019-12-17 18:06:56 +01:00
<i class="fa fa-power-off"></i> <span translate>{{ 'app.public.common.sign_out' }}</span>
2016-03-23 18:39:41 +01:00
</a>
</li>
<li class="hidden-sm hidden-md hidden-lg" >
<a ui-sref="app.logged.dashboard.profile">
2019-12-17 18:06:56 +01:00
<i class="fa fa-user"></i> <span translate>{{ 'app.public.common.my_profile' }}</span>
</a>
</li>
<li class="hidden-sm hidden-md hidden-lg" >
<a ui-sref="app.logged.dashboard.settings">
2019-12-17 18:06:56 +01:00
<i class="fa fa-user"></i> <span translate>{{ 'app.public.common.my_settings' }}</span>
2016-03-23 18:39:41 +01:00
</a>
</li>
<li class="hidden-sm hidden-md hidden-lg">
<a ui-sref="app.logged.dashboard.projects">
2019-12-17 18:06:56 +01:00
<i class="fa fa-puzzle-piece"></i> <span translate>{{ 'app.public.common.my_projects' }}</span>
2016-03-23 18:39:41 +01:00
</a>
</li>
<li class="hidden-sm hidden-md hidden-lg">
<a ui-sref="app.logged.dashboard.trainings">
2019-12-17 18:06:56 +01:00
<i class="fa fa-graduation-cap"></i> <span translate>{{ 'app.public.common.my_trainings' }}</span>
2016-03-23 18:39:41 +01:00
</a>
</li>
<li class="hidden-sm hidden-md hidden-lg">
<a ui-sref="app.logged.dashboard.events">
2019-12-17 18:06:56 +01:00
<i class="fa fa-calendar-o"></i> <span translate>{{ 'app.public.common.my_events' }}</span>
2016-03-23 18:39:41 +01:00
</a>
</li>
<li class="hidden-sm hidden-md hidden-lg" ng-hide="fablabWithoutInvoices" ng-if-end>
<a ui-sref="app.logged.dashboard.invoices">
2019-12-17 18:06:56 +01:00
<i class="fa fa-file-pdf-o"></i> <span translate>{{ 'app.public.common.my_invoices' }}</span>
2016-03-23 18:39:41 +01:00
</a>
</li>
<!-- Common menu entries -->
2020-01-28 18:15:11 +01:00
<li class="{{navLink.class}}" ng-repeat="navLink in navLinks">
2015-05-05 03:10:25 +02:00
<a ng-click="toggleNavSize($event)" ui-sref="{{navLink.state}}" ui-sref-active="active" class="auto" data-toggle="class:nav-off-screen" data-target="#nav">
<i class="fa fa-{{navLink.linkIcon}} fa-lg"></i>
2016-03-23 18:39:41 +01:00
<span>{{navLink.linkText | translate}}</span>
2015-05-05 03:10:25 +02:00
</a>
</li>
</ul>
<!-- Admin entries -->
2015-05-05 03:10:25 +02:00
<div class="line-s bg-red-dark dk " ng-if="isAuthorized('admin')"></div>
<div class="text-xs font-bold text-bordeau hidden-nav-xs padder m-t-lg m-b-sm admin-section" ng-if="isAuthorized('admin')" translate>{{ 'app.public.common.admin' }}</div>
2015-05-05 03:10:25 +02:00
<ul class="nav" ng-if="isAuthorized('admin')">
<li class="" ng-repeat="navLink in adminNavLinks">
<a ng-click="toggleNavSize($event)" ga ui-sref="{{navLink.state}}" ui-sref-active="active" class="auto" data-toggle="class:nav-off-screen" data-target="#nav">
<i class="fa fa-{{navLink.linkIcon}} fa-lg"></i>
2016-03-23 18:39:41 +01:00
<span>{{navLink.linkText | translate}}</span>
2015-05-05 03:10:25 +02:00
</a>
</li>
</ul>
</nav>
<!-- / nav -->
</div>
</section>
<footer class="footer hidden-xs no-padder text-center-nav-xs">
2016-03-23 18:39:41 +01:00
<a data-link="#nav" data-toggle="class:nav-xs" class="btn btn-theme btn-block no-b btn-icon icon-muted btn-inactive no-radius wrapper" ng-click="toggleNavSize($event)">
2019-12-17 18:06:56 +01:00
<i class="fa fa-long-arrow-left text"></i> <span class="text text-sm" translate>{{ 'app.public.common.reduce_panel' }}</span>
2015-05-05 03:10:25 +02:00
<i class="fa fa-long-arrow-right text-active"></i>
</a>
</footer>
2016-03-23 18:39:41 +01:00
</section>