File: //var/dev/farhangmoaser/web/views/admin.ejs
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"/>
<title>فرهنگ معاصر | مدیریت</title>
<link rel="stylesheet" href="<%= client.hostname %>/css/font-awesome.min.css">
<link rel="stylesheet" href="<%= client.hostname %>/css/bootstrap.css">
<link rel="stylesheet" href="<%= client.hostname %>/css/bootstrap-rtl.css">
<link rel="stylesheet" href="<%= client.hostname %>/css/ladda-themeless.css">
<link rel="stylesheet" href="<%= client.hostname %>/css/ADM-dateTimePicker.min.css">
<link rel="stylesheet" href="<%= client.hostname %>/css/hack.css">
<link rel="stylesheet" href="<%= client.hostname %>/css/layout.css">
<script src="<%= client.hostname %>/js/lib/jquery-2.1.4.min.js"></script>
<script src="<%= client.hostname %>/js/lib/bootstrap.min.js"></script>
<script src="<%= client.hostname %>/js/lib/angular.min.js"></script>
<script src="<%= client.hostname %>/js/lib/angular-resource.min.js"></script>
<script src="<%= client.hostname %>/js/lib/angular-route.min.js"></script>
<script src="<%= client.hostname %>/js/lib/angular-sanitize.min.js"></script>
<script src="<%= client.hostname %>/js/lib/angular-filefield.js"></script>
<script src="<%= client.hostname %>/js/lib/ui-bootstrap-tpls-0.14.3.min.js"></script>
<script src="<%= client.hostname %>/js/lib/spin.js"></script>
<script src="<%= client.hostname %>/js/lib/ladda.js"></script>
<script src="<%= client.hostname %>/js/lib/ladda.jquery.js"></script>
<script src="<%= client.hostname %>/js/lib/persian-date-0.1.8.js"></script>
<script src="<%= client.hostname %>/js/lib/crosstab.js"></script>
<script src="<%= client.hostname %>/js/lib/qrcode.min.js"></script>
<script src="<%= client.hostname %>/js/lib/fl-components.js"></script>
<script src="<%= client.hostname %>/js/ckeditor/ckeditor.js"></script>
<script src="<%= client.hostname %>/js/pages/admin.js"></script>
<script src="<%= client.hostname %>/js/app/filters.js"></script>
<script src="<%= client.hostname %>/js/app/admin-cont.js"></script>
<script src="<%= client.hostname %>/js/app/admin-cont-user.js"></script>
<script src="<%= client.hostname %>/js/app/admin-cont-entry.js"></script>
<script src="<%= client.hostname %>/js/app/admin-cont-dic.js"></script>
<script src="<%= client.hostname %>/js/app/admin-cont-voucher.js"></script>
<script src="<%= client.hostname %>/js/app/admin-cont-settings.js"></script>
<script src="<%= client.hostname %>/js/app/admin-route.js"></script>
<script src="<%= client.hostname %>/js/app/admin.js"></script>
<script src="<%= client.hostname %>/js/app/services.js"></script>
<script src="<%= client.hostname %>/js/lib/ADM-dateTimePicker.min.js"></script>
<script src="<%= client.hostname %>/js/global.js"></script>
<script>
var config = <%- JSON.stringify(client) %>;
var consts = <%- JSON.stringify(clientConsts) %>;
<% if(userdata) {%>
var userdata = {
user: <%- JSON.stringify(userdata.data) %>,
token: '<%= userdata.token %>'
};
<% } else { %>
var userdata = false;
var _user = window.localStorage.getItem('user');
var _token = window.localStorage.getItem('token');
if(_user && _token && !userdata.user) {
userdata = {
user: JSON.parse(_user),
token: _token
};
}
<% } %>
</script>
</head>
<body ng-app="adminApp">
<nav class="navbar navbar-default" ng-controller="MenuCtr">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#OHAdmin-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">فم</a>
</div>
<div class="collapse navbar-collapse" id="OHAdmin-navbar-collapse-1">
<ul class="nav navbar-nav">
<li ng-class="{active: section=='dashboard'}"><a href="#/dashboard">داشبورد</a></li>
<li ng-class="{active: section=='settings'}"><a href="#/settings">تنظیمات</a></li>
<li class="dropdown" ng-class="{active: has(section, 'user')}">
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="caret"></span> کاربر</a>
<ul class="dropdown-menu">
<li ng-class="{active: has(section, 'userPeopleList')}"><a href="#/user/people">فهرست کاربران</a></li>
<li ng-class="{active: has(section, 'userPeopleNew')}"><a href="#/user/people/new">افزودن کاربر</a></li>
<li ng-class="{active: has(section, 'userPeopleGroup')}"><a href="#/user/people/role">نقشهای کاربری</a></li>
<li ng-class="{active: has(section, 'userACL')}"><a href="#/user/access">دسترسیها</a></li>
<li ng-class="{active: has(section, 'userKeyList')}"><a href="#/user/key">فهرست API Key</a></li>
<li ng-class="{active: has(section, 'userKeyNew')}"><a href="#/user/key/new">افزودن API Key</a></li>
</ul>
</li>
<li class="dropdown" ng-class="{active: has(section, 'voucher')}">
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="caret"></span> حواله</a>
<ul class="dropdown-menu">
<li ng-class="{active: has(section, 'voucherList')}"><a href="#/voucher">فهرست</a></li>
<li ng-class="{active: has(section, 'voucherCats')}"><a href="#/voucher/print">چاپ</a></li>
<li ng-class="{active: has(section, 'voucherNew')}"><a href="#/voucher/new">افزودن حواله</a></li>
</ul>
</li>
<li class="dropdown" ng-class="{active: has(section, 'dictionary')}">
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="caret"></span> فرهنگ</a>
<ul class="dropdown-menu">
<li ng-class="{active: has(section, 'dictionaryList')}"><a href="#/dictionary">فهرست</a></li>
<li ng-class="{active: has(section, 'dictionaryCats')}"><a href="#/dictionary/cats">دستهبندی</a></li>
<li ng-class="{active: has(section, 'dictionaryNew')}"><a href="#/dictionary/new">افزودن فرهنگ</a></li>
</ul>
</li>
<li class="dropdown" ng-class="{active: has(section, 'entry')}">
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false"><span class="caret"></span> مدخل</a>
<ul class="dropdown-menu">
<li ng-class="{active: has(section, 'entryList')}"><a href="#/entry">فهرست</a></li>
<li ng-class="{active: has(section, 'entryNew')}"><a href="#/entry/new">افزودن مدخل</a></li>
</ul>
</li>
</ul>
<form class="navbar-form navbar-left" role="search">
<div class="input-group">
<input type="text" class="form-control" placeholder="جستجو به دنبال ...">
<span class="input-group-btn">
<button class="btn btn-default" type="button"><span class="glyphicon glyphicon-search"></span></button>
</span>
</div>
<a ng-show="!loggedin" class="btn btn-primary" href="#/login" data-toggle="modal" data-target="#login-box">ورود</a>
<a ng-show="loggedin" class="btn btn-primary" href="#/logout" ng-click="logout();">خروج</a>
</form>
</div>
</div>
</nav>
<div id="content" ng-view></div>
<footer></footer>
</body>
</html>