Revisión | a4f0202d1cfc5bdfb16ed9d60216b5b9e13b4b6d (tree) |
---|---|
Tiempo | 2014-11-21 12:37:51 |
Autor | himatani_cafe <fumifumi@yasu...> |
Commiter | himatani_cafe |
Little Modification (without tickets)
@@ -1,27 +1,28 @@ | ||
1 | 1 | 'use strict'; |
2 | 2 | |
3 | 3 | angular.module('zephyrApp') |
4 | - .directive('navbar', function () { | |
4 | +.directive('navbar', function () { | |
5 | 5 | return { |
6 | - templateUrl: 'app/directive/navbar/navbar.html', | |
7 | - restrict: 'EA', | |
8 | - link: function (scope, element, attrs) { | |
9 | - }, | |
10 | - contoroller: function($scope){ | |
6 | + templateUrl: 'app/directive/navbar/navbar.html', | |
7 | + restrict: 'EA', | |
8 | + link: function (scope, element, attrs) { | |
9 | + } | |
10 | + /* | |
11 | + contoroller: function($scope){ | |
11 | 12 | $scope.links = { |
12 | - dashboard: "active", | |
13 | - command: false, | |
14 | - workspace: false, | |
15 | - activity: false | |
16 | - }; | |
13 | + dashboard: true, | |
14 | + command: false, | |
15 | + workspace: false, | |
16 | + activity: false | |
17 | + } | |
17 | 18 | |
18 | - $scope.activate = function(active) { | |
19 | + $scope.activate = function(active) { | |
19 | 20 | $angular.forEach($scope.links, function(link) { |
20 | - link = false; | |
21 | + link = false; | |
21 | 22 | }; |
22 | 23 | $scope.links[active] = "active"; |
23 | - }; | |
24 | - } | |
25 | - | |
26 | - }; | |
27 | - }); | |
24 | + }; | |
25 | + } | |
26 | + */ | |
27 | + } | |
28 | +}); |
@@ -244,7 +244,7 @@ | ||
244 | 244 | <a ng-class="{{links.workspace}}" href="workspacePage"><i class="fa fa-table fa-fw"></i> WorkSpace</a> |
245 | 245 | </li> |
246 | 246 | <li> |
247 | - <a ng-class="{{.activity}}" href="activityLogPage"><i class="fa fa-edit fa-fw"></i> Activity Log</a> | |
247 | + <a ng-class="{{links.activity}}" href="activityLogPage"><i class="fa fa-edit fa-fw"></i> Activity Log</a> | |
248 | 248 | </li> |
249 | 249 | </ul> |
250 | 250 | </div> |
@@ -4,6 +4,6 @@ angular.module('zephyrApp') | ||
4 | 4 | .controller('RouteCtrl', function ($scope, $location, directivePath, api, modalService) { |
5 | 5 | $scope.navbar = directivePath.navbar; |
6 | 6 | //$location.path('/workspacePage'); |
7 | - console.log(api('workspace/update')); | |
7 | + //console.log(api('workspace/update')); | |
8 | 8 | $scope.workspaces = api('workspace/read'); |
9 | 9 | }); |
@@ -1,5 +1,4 @@ | ||
1 | -<div ng-include="navbar"></div> | |
2 | - | |
1 | +<navbar></navbar> | |
3 | 2 | <div id="page-wrapper"> |
4 | 3 | <div class="page-header"> |
5 | 4 | <div class="row"> |
@@ -9,7 +8,6 @@ | ||
9 | 8 | <!-- /.col-lg-12 --> |
10 | 9 | </div> |
11 | 10 | <div class="row"> |
12 | - unnko | |
13 | 11 | </div> |
14 | 12 | </div> |
15 | 13 |