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
f36a699d
Commit
f36a699d
authored
Oct 27, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sidebar icons for menu items
parent
718a96bb
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
9 deletions
+12
-9
directives.js
app/shared/directives.js
+7
-7
sidebar.html
app/shared/templates/directives/sidebar.html
+5
-2
No files found.
app/shared/directives.js
View file @
f36a699d
...
@@ -32,12 +32,12 @@ app.directive('headerNotification', function ($http, $interval, RESTURL) {
...
@@ -32,12 +32,12 @@ app.directive('headerNotification', function ($http, $interval, RESTURL) {
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.get(RESTURL.url+"notify").success(function (data) {
$http
.
get
(
RESTURL
.
url
+
"notify"
).
success
(
function
(
data
)
{
//
$scope.notifications = data;
$scope
.
notifications
=
data
;
//
});
});
//
}, 15000);
},
15000
);
}
}
};
};
});
});
...
@@ -146,7 +146,7 @@ app.directive('sidebar', ['$location', function () {
...
@@ -146,7 +146,7 @@ app.directive('sidebar', ['$location', function () {
$
(
'#side-menu'
).
metisMenu
();
$
(
'#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
=
{
"generic"
:
data
.
other
}
;
$scope
.
menuItems
=
data
;
// $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/templates/directives/sidebar.html
View file @
f36a699d
...
@@ -14,13 +14,16 @@
...
@@ -14,13 +14,16 @@
<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)"
>
<a
href=
""
ng-click=
"check($index+1)"
>
<i
class=
"fa fa-fw fa-cogs"
<i
class=
"fa fa-fw fa-cogs"
ng-class=
"{generic: 'fa fa-fw fa-wrench', ogrenci: 'fa fa-fw fa-book'}[key]"
></i>
ng-class=
"{
'other': 'fa fa-fw fa-wrench',
'ogrenci': 'fa fa-fw fa-university',
'personel': 'fa fa-fw fa-users'}[key]"
></i>
<span
class=
"menu-text"
ng-class=
"{hidden: $root.collapsed}"
>
{{ key }}
</span>
<span
class=
"menu-text"
ng-class=
"{hidden: $root.collapsed}"
>
{{ key }}
</span>
<span
class=
"fa arrow"
ng-class=
"{hidden: $root.collapsed}"
></span>
<span
class=
"fa arrow"
ng-class=
"{hidden: $root.collapsed}"
></span>
</a>
</a>
<ul
class=
"nav nav-second-level"
ng-class=
"{hidden: $root.collapsed}"
>
<ul
class=
"nav nav-second-level"
ng-class=
"{hidden: $root.collapsed}"
>
<li
ng-repeat=
"v in item"
>
<li
ng-repeat=
"v in item"
>
<a
ng-href=
"#{{v.url}}
/
?{{v.param}}={{$root.selectedUser.key}}"
<a
ng-href=
"#{{v.url}}?{{v.param}}={{$root.selectedUser.key}}"
ng-click=
"breadcrumb([key, v.text])"
>
{{v.text}}
</a>
ng-click=
"breadcrumb([key, v.text])"
>
{{v.text}}
</a>
</li>
</li>
</ul>
</ul>
...
...
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