|
<ion-side-menus enable-menu-with-back-views="false">
|
|
<ion-side-menu-content>
|
|
<ion-nav-bar class="bar-calm" ng-show="storageuser">
|
|
<ion-nav-back-button>
|
|
</ion-nav-back-button>
|
|
|
|
<ion-nav-buttons side="left">
|
|
<button class="button button-icon button-clear ion-navicon" menu-toggle="left">
|
|
</button>
|
|
</ion-nav-buttons>
|
|
</ion-nav-bar>
|
|
<ion-nav-view name="menuContent"></ion-nav-view>
|
|
<!-- menu footer -->
|
|
<div class="tabs tabs-icon-left" ng-controller="FooterMenuCtrl" ng-show="storageuser" ng-hide="location=='message'">
|
|
<a class="tab-item" ng-href="#/app/notifications">
|
|
<i class="icon ion-android-notifications-none"></i> Notifications
|
|
</a>
|
|
<a class="tab-item" ng-href="#/app/main">
|
|
<i class="icon ion-home"></i> Home
|
|
</a>
|
|
<a ng-href="#/app/newPublication" class="tab-item">
|
|
<i class="icon ion-paper-airplane"></i> New publication
|
|
</a>
|
|
</div>
|
|
<!-- /menu footer -->
|
|
</ion-side-menu-content>
|
|
|
|
<ion-side-menu side="left">
|
|
<ion-header-bar class="bar-positive">
|
|
<h1 class="title">{{'Menu' | translate }}</h1>
|
|
</ion-header-bar>
|
|
<ion-content>
|
|
<ion-list>
|
|
<a class="item item-icon-left" menu-close href="#/app/main">
|
|
<i class="icon ion-home"></i> {{'Main' | translate }}
|
|
</a>
|
|
<a class="item item-icon-left" menu-close href="#/app/users/{{storageuser}}" ng-show="storageuser">
|
|
<i class="icon ion-person"></i> {{storageuser.username}}
|
|
</a>
|
|
<a class="item item-icon-left" menu-close href="#/app/travels">
|
|
<i class="icon ion-android-car"></i> {{'Travels' | translate }}
|
|
</a>
|
|
<a class="item item-icon-left" menu-close href="#/app/users">
|
|
<i class="icon ion-person-stalker"></i> {{'Users' | translate }}
|
|
</a>
|
|
<a class="item item-icon-left" menu-close href="#/app/notifications" ng-show="storageuser">
|
|
<i class="icon ion-android-notifications-none"></i> {{'Notifications' | translate }}
|
|
<span class="badge badge-positive">{{userdata.notifications.length}}</span>
|
|
</a>
|
|
<a class="item item-icon-left" menu-close href="#/app/settings">
|
|
<i class="icon ion-settings"></i> {{'Settings' | translate }}
|
|
</a>
|
|
<a class="item item-icon-left" menu-close href="#/app/help">
|
|
<i class="icon ion-ios-help-outline"></i> {{'Help' | translate }}
|
|
</a>
|
|
<a class="item item-icon-left" menu-close ng-click="logout()" ng-show="storageuser">
|
|
<i class="icon ion-home"></i> {{'Logout' | translate }}
|
|
</a>
|
|
</ion-list>
|
|
</ion-content>
|
|
</ion-side-menu>
|
|
</ion-side-menus>
|