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
dee87179
Commit
dee87179
authored
Sep 28, 2015
by
Evren Kutar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
v0.0.3.1
breadcrumb fix
parent
9bd2ef29
Changes
4
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
11 additions
and
16 deletions
+11
-16
directives.js
app/shared/directives.js
+6
-13
sidebar.html
app/shared/templates/directives/sidebar.html
+2
-1
app.js
dist/app.js
+1
-1
templates.js
dist/templates.js
+2
-1
No files found.
app/shared/directives.js
View file @
dee87179
...
...
@@ -49,18 +49,11 @@ app.directive('headerSubMenu', function () {
}
});
app
.
directive
(
'headerBreadcrumb'
,
function
(
$location
)
{
app
.
directive
(
'headerBreadcrumb'
,
function
()
{
return
{
templateUrl
:
'shared/templates/directives/header-breadcrumb.html'
,
restrict
:
'E'
,
replace
:
true
,
link
:
function
(
$scope
,
$rootScope
){
//$scope.$watch('$routeUpdate', function(){
// todo: create actual links
//$scope.links = $location.path().split('/');
//$scope.links = $rootScope.links;
//});
}
replace
:
true
}
});
...
...
@@ -80,6 +73,8 @@ app.directive('sidebar', ['$location', function () {
angular
.
forEach
(
value
[
1
],
function
(
v
,
k
)
{
if
(
v
[
1
]
==
$location
.
path
().
split
(
'/'
)[
1
]){
$rootScope
.
breadcrumblinks
=
[
value
[
0
],
v
[
0
]];
}
else
{
$rootScope
.
breadcrumblinks
=
[
'Panel'
];
}
});
});
...
...
@@ -93,7 +88,7 @@ app.directive('sidebar', ['$location', function () {
},
2000
);
$scope
.
selectedMenu
=
$location
.
path
();
$scope
.
collapseVar
=
0
;
$scope
.
collapseVar
=
1
;
$scope
.
multiCollapseVar
=
0
;
$scope
.
check
=
function
(
x
)
{
...
...
@@ -117,9 +112,7 @@ app.directive('sidebar', ['$location', function () {
else
$scope
.
multiCollapseVar
=
y
;
};
},
link
:
function
(){
$
(
'#side-menu'
).
metisMenu
();
}
}
}]);
...
...
app/shared/templates/directives/sidebar.html
View file @
dee87179
...
...
@@ -6,7 +6,8 @@
<ul
class=
"nav in sidebarscroll"
id=
"side-menu"
ng-class=
"{hidden: $root.loggedInUser != true}"
>
<!--<sidebar-search></sidebar-search>-->
<li
ui-sref-active=
"active"
>
<a
href=
"#/dashboard"
><i
class=
"fa fa-dashboard fa-fw"
></i>
Panel
</a>
<a
href=
"#/dashboard"
ng-click=
"breadcrumb(['Panel'])"
><i
class=
"fa fa-dashboard fa-fw"
></i>
Panel
</a>
</li>
<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>
{{ item[0] }}
<span
...
...
dist/app.js
View file @
dee87179
This diff is collapsed.
Click to expand it.
dist/templates.js
View file @
dee87179
...
...
@@ -942,7 +942,8 @@ angular.module("shared/templates/directives/sidebar.html", []).run(["$templateCa
" <ul class=
\"
nav in sidebarscroll
\"
id=
\"
side-menu
\"
ng-class=
\"
{hidden: $root.loggedInUser != true}
\"
>
\n
"
+
" <!--<sidebar-search></sidebar-search>-->
\n
"
+
" <li ui-sref-active=
\"
active
\"
>
\n
"
+
" <a href=
\"
#/dashboard
\"
><i class=
\"
fa fa-dashboard fa-fw
\"
></i> Panel</a>
\n
"
+
" <a href=
\"
#/dashboard
\"
ng-click=
\"
breadcrumb(['Panel'])
\"
><i class=
\"
fa fa-dashboard fa-fw
\"
></i>
\n
"
+
" Panel</a>
\n
"
+
" </li>
\n
"
+
" <li ng-repeat=
\"
(key, item) in menuItems
\"
ng-class=
\"
{active: collapseVar == $index+1}
\"
>{{dropDown}}
\n
"
+
" <a href=
\"\"
ng-click=
\"
check($index+1)
\"
><i class=
\"
fa fa-wrench fa-fw
\"
></i> {{ item[0] }}<span
\n
"
+
...
...
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