Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
U
ulakbus-ui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ulakbus
ulakbus-ui
Commits
0df8d88b
Commit
0df8d88b
authored
Oct 25, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unimportant comment uncomment
parent
bebf4879
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
17 deletions
+22
-17
directives.js
app/shared/directives.js
+10
-8
theme.js
app/shared/scripts/theme.js
+5
-5
sidebar.html
app/shared/templates/directives/sidebar.html
+7
-4
No files found.
app/shared/directives.js
View file @
0df8d88b
...
@@ -31,14 +31,14 @@ app.directive('headerNotification', function ($http, $interval, RESTURL) {
...
@@ -31,14 +31,14 @@ app.directive('headerNotification', function ($http, $interval, RESTURL) {
templateUrl
:
'shared/templates/directives/header-notification.html'
,
templateUrl
:
'shared/templates/directives/header-notification.html'
,
restrict
:
'E'
,
restrict
:
'E'
,
replace
:
true
,
replace
:
true
,
//
link: function ($scope) {
link
:
function
(
$scope
)
{
//
$interval(function () {
//
$interval(function () {
//
// todo: change url to backend
//
// todo: change url to backend
// $http.post(RESTURL+"crud
").success(function (data) {
// $http.get(RESTURL.url+"notify
").success(function (data) {
//
$scope.notifications = data;
//
$scope.notifications = data;
//
});
//
});
//
}, 15000);
//
}, 15000);
//
}
}
};
};
});
});
...
@@ -141,9 +141,11 @@ app.directive('sidebar', ['$location', function () {
...
@@ -141,9 +141,11 @@ app.directive('sidebar', ['$location', function () {
replace
:
true
,
replace
:
true
,
scope
:
{},
scope
:
{},
controller
:
function
(
$scope
,
$rootScope
,
$http
,
RESTURL
,
$location
,
$timeout
)
{
controller
:
function
(
$scope
,
$rootScope
,
$http
,
RESTURL
,
$location
,
$timeout
)
{
$
(
'#side-menu'
).
metisMenu
();
$http
.
get
(
RESTURL
.
url
+
'menu/'
).
success
(
function
(
data
)
{
$http
.
get
(
RESTURL
.
url
+
'menu/'
).
success
(
function
(
data
)
{
//$scope.allMenuItems = angular.copy(data.generic);
//$scope.allMenuItems = angular.copy(data.generic);
$scope
.
menuItems
=
data
;
$scope
.
menuItems
=
data
;
debugger
;
// $scope.menuItems = []; // angular.copy($scope.allMenuItems);
// $scope.menuItems = []; // angular.copy($scope.allMenuItems);
// at start define breadcrumblinks for breadcrumb
// at start define breadcrumblinks for breadcrumb
...
...
app/shared/scripts/theme.js
View file @
0df8d88b
...
@@ -5,11 +5,11 @@
...
@@ -5,11 +5,11 @@
* (GPLv3). See LICENSE.txt for details.
* (GPLv3). See LICENSE.txt for details.
*/
*/
//
$(function() {
$
(
function
()
{
//
//
$('#side-menu').metisMenu();
$
(
'#side-menu'
).
metisMenu
();
//
//
});
});
//Loads the correct sidebar on window load,
//Loads the correct sidebar on window load,
//collapses the sidebar on window resize.
//collapses the sidebar on window resize.
...
...
app/shared/templates/directives/sidebar.html
View file @
0df8d88b
...
@@ -12,11 +12,14 @@
...
@@ -12,11 +12,14 @@
</li>
</li>
<li
ng-repeat=
"(key, item) in menuItems"
ng-class=
"{active: collapseVar == $index+1}"
>
{{dropDown}}
<li
ng-repeat=
"(key, item) in menuItems"
ng-class=
"{active: collapseVar == $index+1}"
>
{{dropDown}}
<a
href=
""
ng-click=
"check($index+1)"
><i
class=
"fa fa-wrench fa-fw"
></i>
{{ key }}
<span
<a
href=
""
ng-click=
"check($index+1)"
>
class=
"fa arrow"
></span></a>
<i
class=
"fa fa-wrench fa-fw"
ng-class=
"{'fa-user': key == 'personel'}"
></i>
<span
class=
"menu-text"
>
{{ key }}
</span>
</a>
<ul
class=
"nav nav-second-level"
>
<ul
class=
"nav nav-second-level"
>
<li
ng-repeat=
"v in item"
><a
ng-href=
"#/{{v[1]}}"
<li
ng-repeat=
"v in item"
>
ng-click=
"breadcrumb([key, v[0]])"
>
{{v[0]}}
</a></li>
<a
ng-href=
"#/{{v[1]}}"
ng-click=
"breadcrumb([key, v[0]])"
>
{{v[0]}}
</a>
</li>
</ul>
</ul>
<!-- /.nav-second-level -->
<!-- /.nav-second-level -->
</li>
</li>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment