Commit 1610ed77 authored by Evren Kutar's avatar Evren Kutar

menu bugfix

header user name + surname
parent 58260ab2
...@@ -384,7 +384,7 @@ app.directive('logout', function ($http, $location, RESTURL) { ...@@ -384,7 +384,7 @@ app.directive('logout', function ($http, $location, RESTURL) {
//menu['other'] = $scope.allMenuItems.other; //menu['other'] = $scope.allMenuItems.other;
$scope.selectedMenuItems = $scope.prepareMenu(menu); $scope.selectedMenuItems = $scope.prepareMenu(menu);
$timeout(function () { $timeout(function () {
sidebarmenu.metisMenu(); //sidebarmenu.metisMenu();
sidebarUserMenu.metisMenu(); sidebarUserMenu.metisMenu();
}); });
}); });
...@@ -425,7 +425,7 @@ app.directive('logout', function ($http, $location, RESTURL) { ...@@ -425,7 +425,7 @@ app.directive('logout', function ($http, $location, RESTURL) {
function (newindex, oldindex) { function (newindex, oldindex) {
if (newindex > -1) { if (newindex > -1) {
$scope.menuItems = [$scope.allMenuItems[newindex]]; $scope.menuItems = [$scope.allMenuItems[newindex]];
$scope.collapseVar = 1; $scope.collapseVar = 0;
} }
}); });
......
...@@ -85,7 +85,7 @@ ...@@ -85,7 +85,7 @@
<li class="dropdown"> <li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-user fa-fw" tooltip-placement="bottom" <i class="fa fa-user fa-fw" tooltip-placement="bottom"
uib-tooltip="Profil"></i>&nbsp;{{$root.current_user.username}}&nbsp;<i uib-tooltip="Profil"></i>&nbsp;{{$root.current_user.name}}&nbsp;{{$root.current_user.surname}}&nbsp;<i
class="fa fa-caret-down"></i> class="fa fa-caret-down"></i>
</a> </a>
<ul class="dropdown-menu dropdown-user"> <ul class="dropdown-menu dropdown-user">
......
...@@ -37,8 +37,8 @@ ...@@ -37,8 +37,8 @@
data-intro="seçilen personele veya öğrenciye göre ilgili menüler yer almaktadır. yapılacak işlemi buradan seçebilirsiniz."> data-intro="seçilen personele veya öğrenciye göre ilgili menüler yer almaktadır. yapılacak işlemi buradan seçebilirsiniz.">
<li ng-repeat="(key, item) in selectedMenuItems" ng-class="{active: collapseVar == $index+1}">{{dropDown}} <li ng-repeat="(key, item) in selectedMenuItems" ng-class="{active: collapseVar == $index+100}">{{dropDown}}
<a href="" ng-click="check($index+1)"> <a href="" ng-click="check($index+100)">
<i class="fa fa-fw" <i class="fa fa-fw"
ng-class="{ ng-class="{
'Admin': 'fa fa-fw fa-terminal', 'Admin': 'fa fa-fw fa-terminal',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment