• R/O
  • HTTP
  • SSH
  • HTTPS

zephyr: Commit

This repository is for zephyr, which is implemented for a GUI of Eos.


Commit MetaInfo

Revisione81903672a5e54aa49e533972da188b319f469a2 (tree)
Time2016-02-25 22:06:09
Authorhimetani_cafe <fumifumi@yasu...>
Commiterhimetani_cafe

Log Message

Bind HeaderMenuController to HeaderMenu directive

I enabled some actions which are transit state, label activation, etc...

Change Summary

Incremental Difference

--- a/front-end/app/scripts/App.ts
+++ b/front-end/app/scripts/App.ts
@@ -52,6 +52,7 @@ namespace app {
5252 zephyr.controller('commandController', directives.CommandController);
5353 zephyr.controller('optionController', directives.OptionController);
5454 zephyr.controller('directoryController', directives.DirectoryController);
55+ zephyr.controller('HeaderMenuController', directives.HeaderMenuController);
5556
5657 zephyr.directive('headerMenu', directives.HeaderMenu.Factory());
5758 zephyr.directive('command', directives.Command.Factory());
--- a/front-end/app/scripts/directives/HeaderMenu.ts
+++ b/front-end/app/scripts/directives/HeaderMenu.ts
@@ -5,6 +5,9 @@ namespace app.directives {
55 public restrict: string;
66 public replace: boolean;
77 public templateUrl: string;
8+ public controller: string;
9+ public controllerAs: string;
10+ public scope: boolean;
811
912 /**
1013 * constructor
@@ -15,6 +18,9 @@ namespace app.directives {
1518 this.restrict = 'E';
1619 this.replace = true;
1720 this.templateUrl = 'templates/header-menu.html';
21+ this.controller = 'HeaderMenuController';
22+ this.controllerAs = 'hmc';
23+ this.scope = true;
1824 }
1925
2026 /**
@@ -24,9 +30,28 @@ namespace app.directives {
2430 */
2531 public static Factory(): ng.IDirectiveFactory {
2632 var directive = () => {
27- return new HeaderMenu();
33+ return new HeaderMenu();
2834 };
2935 return directive;
3036 }
3137 }
38+
39+ export class HeaderMenuController {
40+
41+ public static $inject = ['$state'];
42+
43+ private isExecution: boolean;
44+ private isWorkspace: boolean;
45+ private isHistory: boolean;
46+
47+ constructor(private $state: ng.ui.IStateService) {
48+ this.isExecution = this.$state.current.name === 'execution';
49+ this.isWorkspace = this.$state.current.name === 'workspace';
50+ this.isHistory = this.$state.current.name === 'history';
51+ }
52+
53+ private transit(state:string) {
54+ this.$state.go(state);
55+ }
56+ }
3257 }
--- a/front-end/app/templates/header-menu.html
+++ b/front-end/app/templates/header-menu.html
@@ -1,13 +1,12 @@
1-<nav class="nav navbar-default">
1+<nav class="nav navbar navbar-static-top navbar-inverse">
22 <div class="navbar-header">
33 <a class="navbar-brand" href="">Zephyr</a>
44 </div>
55 <div class="navbar-collapse collapse navbar-responsive-collapse">
66 <ul class="nav navbar-nav">
7- <li ng-class="{active: isBoard}"><a ng-href="{{boardRef}}">Execution</a></li>
8- <li ng-class="{active: isWorkspace}"><a ng-href="{{workspaceRef}}">Workspace</a></li>
9- <li ng-class="{active: isNotes}"><a ng-href="{{notesRef}}">History</a></li>
10- <li ng-class="{active: isAdmin}" ng-show="isAdminRole"><a ng-href="{{adminPath}}">Admin Page</a></li>
7+ <li ng-class="{active: hmc.isExecution}"><a ng-click="hmc.transit('execution')" href="/execution">Execution</a></li>
8+ <li ng-class="{active: hmc.isWorkspace}"><a ng-click="hmc.transit('workspace')" href="/workspace">Workspace</a></li>
9+ <li ng-class="{active: hmc.isHistory}"><a ng-click="hmc.transit('history')" href="/history">History</a></li>
1110 </ul>
1211
1312 <!--
--- a/front-end/app/templates/history.html
+++ b/front-end/app/templates/history.html
@@ -1 +1,3 @@
1-{{page}}
1+<header-menu></header-menu>
2+<div class="container">
3+</div>
--- a/front-end/dist/bundle.js
+++ b/front-end/dist/bundle.js
@@ -41295,6 +41295,9 @@
4129541295 this.restrict = 'E';
4129641296 this.replace = true;
4129741297 this.templateUrl = 'templates/header-menu.html';
41298+ this.controller = 'HeaderMenuController';
41299+ this.controllerAs = 'hmc';
41300+ this.scope = true;
4129841301 }
4129941302 HeaderMenu.Factory = function () {
4130041303 var directive = function () {
@@ -41305,6 +41308,20 @@
4130541308 return HeaderMenu;
4130641309 })();
4130741310 directives.HeaderMenu = HeaderMenu;
41311+ var HeaderMenuController = (function () {
41312+ function HeaderMenuController($state) {
41313+ this.$state = $state;
41314+ this.isExecution = this.$state.current.name === 'execution';
41315+ this.isWorkspace = this.$state.current.name === 'workspace';
41316+ this.isHistory = this.$state.current.name === 'history';
41317+ }
41318+ HeaderMenuController.prototype.transit = function (state) {
41319+ this.$state.go(state);
41320+ };
41321+ HeaderMenuController.$inject = ['$state'];
41322+ return HeaderMenuController;
41323+ })();
41324+ directives.HeaderMenuController = HeaderMenuController;
4130841325 })(directives = app.directives || (app.directives = {}));
4130941326 })(app || (app = {}));
4131041327 var app;
@@ -41612,6 +41629,7 @@
4161241629 app.zephyr.controller('commandController', app.directives.CommandController);
4161341630 app.zephyr.controller('optionController', app.directives.OptionController);
4161441631 app.zephyr.controller('directoryController', app.directives.DirectoryController);
41632+ app.zephyr.controller('HeaderMenuController', app.directives.HeaderMenuController);
4161541633 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4161641634 app.zephyr.directive('command', app.directives.Command.Factory());
4161741635 app.zephyr.directive('option', app.directives.Option.Factory());
@@ -41917,6 +41935,9 @@
4191741935 this.restrict = 'E';
4191841936 this.replace = true;
4191941937 this.templateUrl = 'templates/header-menu.html';
41938+ this.controller = 'HeaderMenuController';
41939+ this.controllerAs = 'hmc';
41940+ this.scope = true;
4192041941 }
4192141942 HeaderMenu.Factory = function () {
4192241943 var directive = function () {
@@ -41927,6 +41948,20 @@
4192741948 return HeaderMenu;
4192841949 })();
4192941950 directives.HeaderMenu = HeaderMenu;
41951+ var HeaderMenuController = (function () {
41952+ function HeaderMenuController($state) {
41953+ this.$state = $state;
41954+ this.isExecution = this.$state.current.name === 'execution';
41955+ this.isWorkspace = this.$state.current.name === 'workspace';
41956+ this.isHistory = this.$state.current.name === 'history';
41957+ }
41958+ HeaderMenuController.prototype.transit = function (state) {
41959+ this.$state.go(state);
41960+ };
41961+ HeaderMenuController.$inject = ['$state'];
41962+ return HeaderMenuController;
41963+ })();
41964+ directives.HeaderMenuController = HeaderMenuController;
4193041965 })(directives = app.directives || (app.directives = {}));
4193141966 })(app || (app = {}));
4193241967 var app;
@@ -42234,6 +42269,7 @@
4223442269 app.zephyr.controller('commandController', app.directives.CommandController);
4223542270 app.zephyr.controller('optionController', app.directives.OptionController);
4223642271 app.zephyr.controller('directoryController', app.directives.DirectoryController);
42272+ app.zephyr.controller('HeaderMenuController', app.directives.HeaderMenuController);
4223742273 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4223842274 app.zephyr.directive('command', app.directives.Command.Factory());
4223942275 app.zephyr.directive('option', app.directives.Option.Factory());
@@ -42539,6 +42575,9 @@
4253942575 this.restrict = 'E';
4254042576 this.replace = true;
4254142577 this.templateUrl = 'templates/header-menu.html';
42578+ this.controller = 'HeaderMenuController';
42579+ this.controllerAs = 'hmc';
42580+ this.scope = true;
4254242581 }
4254342582 HeaderMenu.Factory = function () {
4254442583 var directive = function () {
@@ -42549,6 +42588,20 @@
4254942588 return HeaderMenu;
4255042589 })();
4255142590 directives.HeaderMenu = HeaderMenu;
42591+ var HeaderMenuController = (function () {
42592+ function HeaderMenuController($state) {
42593+ this.$state = $state;
42594+ this.isExecution = this.$state.current.name === 'execution';
42595+ this.isWorkspace = this.$state.current.name === 'workspace';
42596+ this.isHistory = this.$state.current.name === 'history';
42597+ }
42598+ HeaderMenuController.prototype.transit = function (state) {
42599+ this.$state.go(state);
42600+ };
42601+ HeaderMenuController.$inject = ['$state'];
42602+ return HeaderMenuController;
42603+ })();
42604+ directives.HeaderMenuController = HeaderMenuController;
4255242605 })(directives = app.directives || (app.directives = {}));
4255342606 })(app || (app = {}));
4255442607 var app;
@@ -42856,6 +42909,7 @@
4285642909 app.zephyr.controller('commandController', app.directives.CommandController);
4285742910 app.zephyr.controller('optionController', app.directives.OptionController);
4285842911 app.zephyr.controller('directoryController', app.directives.DirectoryController);
42912+ app.zephyr.controller('HeaderMenuController', app.directives.HeaderMenuController);
4285942913 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4286042914 app.zephyr.directive('command', app.directives.Command.Factory());
4286142915 app.zephyr.directive('option', app.directives.Option.Factory());
@@ -43161,6 +43215,9 @@
4316143215 this.restrict = 'E';
4316243216 this.replace = true;
4316343217 this.templateUrl = 'templates/header-menu.html';
43218+ this.controller = 'HeaderMenuController';
43219+ this.controllerAs = 'hmc';
43220+ this.scope = true;
4316443221 }
4316543222 HeaderMenu.Factory = function () {
4316643223 var directive = function () {
@@ -43171,6 +43228,20 @@
4317143228 return HeaderMenu;
4317243229 })();
4317343230 directives.HeaderMenu = HeaderMenu;
43231+ var HeaderMenuController = (function () {
43232+ function HeaderMenuController($state) {
43233+ this.$state = $state;
43234+ this.isExecution = this.$state.current.name === 'execution';
43235+ this.isWorkspace = this.$state.current.name === 'workspace';
43236+ this.isHistory = this.$state.current.name === 'history';
43237+ }
43238+ HeaderMenuController.prototype.transit = function (state) {
43239+ this.$state.go(state);
43240+ };
43241+ HeaderMenuController.$inject = ['$state'];
43242+ return HeaderMenuController;
43243+ })();
43244+ directives.HeaderMenuController = HeaderMenuController;
4317443245 })(directives = app.directives || (app.directives = {}));
4317543246 })(app || (app = {}));
4317643247 var app;
@@ -43478,6 +43549,7 @@
4347843549 app.zephyr.controller('commandController', app.directives.CommandController);
4347943550 app.zephyr.controller('optionController', app.directives.OptionController);
4348043551 app.zephyr.controller('directoryController', app.directives.DirectoryController);
43552+ app.zephyr.controller('HeaderMenuController', app.directives.HeaderMenuController);
4348143553 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4348243554 app.zephyr.directive('command', app.directives.Command.Factory());
4348343555 app.zephyr.directive('option', app.directives.Option.Factory());
@@ -43783,6 +43855,9 @@
4378343855 this.restrict = 'E';
4378443856 this.replace = true;
4378543857 this.templateUrl = 'templates/header-menu.html';
43858+ this.controller = 'HeaderMenuController';
43859+ this.controllerAs = 'hmc';
43860+ this.scope = true;
4378643861 }
4378743862 HeaderMenu.Factory = function () {
4378843863 var directive = function () {
@@ -43793,6 +43868,20 @@
4379343868 return HeaderMenu;
4379443869 })();
4379543870 directives.HeaderMenu = HeaderMenu;
43871+ var HeaderMenuController = (function () {
43872+ function HeaderMenuController($state) {
43873+ this.$state = $state;
43874+ this.isExecution = this.$state.current.name === 'execution';
43875+ this.isWorkspace = this.$state.current.name === 'workspace';
43876+ this.isHistory = this.$state.current.name === 'history';
43877+ }
43878+ HeaderMenuController.prototype.transit = function (state) {
43879+ this.$state.go(state);
43880+ };
43881+ HeaderMenuController.$inject = ['$state'];
43882+ return HeaderMenuController;
43883+ })();
43884+ directives.HeaderMenuController = HeaderMenuController;
4379643885 })(directives = app.directives || (app.directives = {}));
4379743886 })(app || (app = {}));
4379843887 var app;
@@ -44100,6 +44189,7 @@
4410044189 app.zephyr.controller('commandController', app.directives.CommandController);
4410144190 app.zephyr.controller('optionController', app.directives.OptionController);
4410244191 app.zephyr.controller('directoryController', app.directives.DirectoryController);
44192+ app.zephyr.controller('HeaderMenuController', app.directives.HeaderMenuController);
4410344193 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4410444194 app.zephyr.directive('command', app.directives.Command.Factory());
4410544195 app.zephyr.directive('option', app.directives.Option.Factory());
@@ -44405,6 +44495,9 @@
4440544495 this.restrict = 'E';
4440644496 this.replace = true;
4440744497 this.templateUrl = 'templates/header-menu.html';
44498+ this.controller = 'HeaderMenuController';
44499+ this.controllerAs = 'hmc';
44500+ this.scope = true;
4440844501 }
4440944502 HeaderMenu.Factory = function () {
4441044503 var directive = function () {
@@ -44415,6 +44508,20 @@
4441544508 return HeaderMenu;
4441644509 })();
4441744510 directives.HeaderMenu = HeaderMenu;
44511+ var HeaderMenuController = (function () {
44512+ function HeaderMenuController($state) {
44513+ this.$state = $state;
44514+ this.isExecution = this.$state.current.name === 'execution';
44515+ this.isWorkspace = this.$state.current.name === 'workspace';
44516+ this.isHistory = this.$state.current.name === 'history';
44517+ }
44518+ HeaderMenuController.prototype.transit = function (state) {
44519+ this.$state.go(state);
44520+ };
44521+ HeaderMenuController.$inject = ['$state'];
44522+ return HeaderMenuController;
44523+ })();
44524+ directives.HeaderMenuController = HeaderMenuController;
4441844525 })(directives = app.directives || (app.directives = {}));
4441944526 })(app || (app = {}));
4442044527 var app;
@@ -44722,6 +44829,7 @@
4472244829 app.zephyr.controller('commandController', app.directives.CommandController);
4472344830 app.zephyr.controller('optionController', app.directives.OptionController);
4472444831 app.zephyr.controller('directoryController', app.directives.DirectoryController);
44832+ app.zephyr.controller('HeaderMenuController', app.directives.HeaderMenuController);
4472544833 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4472644834 app.zephyr.directive('command', app.directives.Command.Factory());
4472744835 app.zephyr.directive('option', app.directives.Option.Factory());
@@ -45027,6 +45135,9 @@
4502745135 this.restrict = 'E';
4502845136 this.replace = true;
4502945137 this.templateUrl = 'templates/header-menu.html';
45138+ this.controller = 'HeaderMenuController';
45139+ this.controllerAs = 'hmc';
45140+ this.scope = true;
4503045141 }
4503145142 HeaderMenu.Factory = function () {
4503245143 var directive = function () {
@@ -45037,6 +45148,20 @@
4503745148 return HeaderMenu;
4503845149 })();
4503945150 directives.HeaderMenu = HeaderMenu;
45151+ var HeaderMenuController = (function () {
45152+ function HeaderMenuController($state) {
45153+ this.$state = $state;
45154+ this.isExecution = this.$state.current.name === 'execution';
45155+ this.isWorkspace = this.$state.current.name === 'workspace';
45156+ this.isHistory = this.$state.current.name === 'history';
45157+ }
45158+ HeaderMenuController.prototype.transit = function (state) {
45159+ this.$state.go(state);
45160+ };
45161+ HeaderMenuController.$inject = ['$state'];
45162+ return HeaderMenuController;
45163+ })();
45164+ directives.HeaderMenuController = HeaderMenuController;
4504045165 })(directives = app.directives || (app.directives = {}));
4504145166 })(app || (app = {}));
4504245167 var app;
@@ -45344,6 +45469,7 @@
4534445469 app.zephyr.controller('commandController', app.directives.CommandController);
4534545470 app.zephyr.controller('optionController', app.directives.OptionController);
4534645471 app.zephyr.controller('directoryController', app.directives.DirectoryController);
45472+ app.zephyr.controller('HeaderMenuController', app.directives.HeaderMenuController);
4534745473 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4534845474 app.zephyr.directive('command', app.directives.Command.Factory());
4534945475 app.zephyr.directive('option', app.directives.Option.Factory());
@@ -45649,6 +45775,9 @@
4564945775 this.restrict = 'E';
4565045776 this.replace = true;
4565145777 this.templateUrl = 'templates/header-menu.html';
45778+ this.controller = 'HeaderMenuController';
45779+ this.controllerAs = 'hmc';
45780+ this.scope = true;
4565245781 }
4565345782 HeaderMenu.Factory = function () {
4565445783 var directive = function () {
@@ -45659,6 +45788,20 @@
4565945788 return HeaderMenu;
4566045789 })();
4566145790 directives.HeaderMenu = HeaderMenu;
45791+ var HeaderMenuController = (function () {
45792+ function HeaderMenuController($state) {
45793+ this.$state = $state;
45794+ this.isExecution = this.$state.current.name === 'execution';
45795+ this.isWorkspace = this.$state.current.name === 'workspace';
45796+ this.isHistory = this.$state.current.name === 'history';
45797+ }
45798+ HeaderMenuController.prototype.transit = function (state) {
45799+ this.$state.go(state);
45800+ };
45801+ HeaderMenuController.$inject = ['$state'];
45802+ return HeaderMenuController;
45803+ })();
45804+ directives.HeaderMenuController = HeaderMenuController;
4566245805 })(directives = app.directives || (app.directives = {}));
4566345806 })(app || (app = {}));
4566445807 var app;
@@ -45966,6 +46109,7 @@
4596646109 app.zephyr.controller('commandController', app.directives.CommandController);
4596746110 app.zephyr.controller('optionController', app.directives.OptionController);
4596846111 app.zephyr.controller('directoryController', app.directives.DirectoryController);
46112+ app.zephyr.controller('HeaderMenuController', app.directives.HeaderMenuController);
4596946113 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4597046114 app.zephyr.directive('command', app.directives.Command.Factory());
4597146115 app.zephyr.directive('option', app.directives.Option.Factory());
@@ -46271,6 +46415,9 @@
4627146415 this.restrict = 'E';
4627246416 this.replace = true;
4627346417 this.templateUrl = 'templates/header-menu.html';
46418+ this.controller = 'HeaderMenuController';
46419+ this.controllerAs = 'hmc';
46420+ this.scope = true;
4627446421 }
4627546422 HeaderMenu.Factory = function () {
4627646423 var directive = function () {
@@ -46281,6 +46428,20 @@
4628146428 return HeaderMenu;
4628246429 })();
4628346430 directives.HeaderMenu = HeaderMenu;
46431+ var HeaderMenuController = (function () {
46432+ function HeaderMenuController($state) {
46433+ this.$state = $state;
46434+ this.isExecution = this.$state.current.name === 'execution';
46435+ this.isWorkspace = this.$state.current.name === 'workspace';
46436+ this.isHistory = this.$state.current.name === 'history';
46437+ }
46438+ HeaderMenuController.prototype.transit = function (state) {
46439+ this.$state.go(state);
46440+ };
46441+ HeaderMenuController.$inject = ['$state'];
46442+ return HeaderMenuController;
46443+ })();
46444+ directives.HeaderMenuController = HeaderMenuController;
4628446445 })(directives = app.directives || (app.directives = {}));
4628546446 })(app || (app = {}));
4628646447 var app;
@@ -46588,6 +46749,7 @@
4658846749 app.zephyr.controller('commandController', app.directives.CommandController);
4658946750 app.zephyr.controller('optionController', app.directives.OptionController);
4659046751 app.zephyr.controller('directoryController', app.directives.DirectoryController);
46752+ app.zephyr.controller('HeaderMenuController', app.directives.HeaderMenuController);
4659146753 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4659246754 app.zephyr.directive('command', app.directives.Command.Factory());
4659346755 app.zephyr.directive('option', app.directives.Option.Factory());
@@ -46893,6 +47055,9 @@
4689347055 this.restrict = 'E';
4689447056 this.replace = true;
4689547057 this.templateUrl = 'templates/header-menu.html';
47058+ this.controller = 'HeaderMenuController';
47059+ this.controllerAs = 'hmc';
47060+ this.scope = true;
4689647061 }
4689747062 HeaderMenu.Factory = function () {
4689847063 var directive = function () {
@@ -46903,6 +47068,20 @@
4690347068 return HeaderMenu;
4690447069 })();
4690547070 directives.HeaderMenu = HeaderMenu;
47071+ var HeaderMenuController = (function () {
47072+ function HeaderMenuController($state) {
47073+ this.$state = $state;
47074+ this.isExecution = this.$state.current.name === 'execution';
47075+ this.isWorkspace = this.$state.current.name === 'workspace';
47076+ this.isHistory = this.$state.current.name === 'history';
47077+ }
47078+ HeaderMenuController.prototype.transit = function (state) {
47079+ this.$state.go(state);
47080+ };
47081+ HeaderMenuController.$inject = ['$state'];
47082+ return HeaderMenuController;
47083+ })();
47084+ directives.HeaderMenuController = HeaderMenuController;
4690647085 })(directives = app.directives || (app.directives = {}));
4690747086 })(app || (app = {}));
4690847087 var app;
@@ -47210,6 +47389,7 @@
4721047389 app.zephyr.controller('commandController', app.directives.CommandController);
4721147390 app.zephyr.controller('optionController', app.directives.OptionController);
4721247391 app.zephyr.controller('directoryController', app.directives.DirectoryController);
47392+ app.zephyr.controller('HeaderMenuController', app.directives.HeaderMenuController);
4721347393 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4721447394 app.zephyr.directive('command', app.directives.Command.Factory());
4721547395 app.zephyr.directive('option', app.directives.Option.Factory());
@@ -47515,6 +47695,9 @@
4751547695 this.restrict = 'E';
4751647696 this.replace = true;
4751747697 this.templateUrl = 'templates/header-menu.html';
47698+ this.controller = 'HeaderMenuController';
47699+ this.controllerAs = 'hmc';
47700+ this.scope = true;
4751847701 }
4751947702 HeaderMenu.Factory = function () {
4752047703 var directive = function () {
@@ -47525,6 +47708,20 @@
4752547708 return HeaderMenu;
4752647709 })();
4752747710 directives.HeaderMenu = HeaderMenu;
47711+ var HeaderMenuController = (function () {
47712+ function HeaderMenuController($state) {
47713+ this.$state = $state;
47714+ this.isExecution = this.$state.current.name === 'execution';
47715+ this.isWorkspace = this.$state.current.name === 'workspace';
47716+ this.isHistory = this.$state.current.name === 'history';
47717+ }
47718+ HeaderMenuController.prototype.transit = function (state) {
47719+ this.$state.go(state);
47720+ };
47721+ HeaderMenuController.$inject = ['$state'];
47722+ return HeaderMenuController;
47723+ })();
47724+ directives.HeaderMenuController = HeaderMenuController;
4752847725 })(directives = app.directives || (app.directives = {}));
4752947726 })(app || (app = {}));
4753047727 var app;
@@ -47832,6 +48029,7 @@
4783248029 app.zephyr.controller('commandController', app.directives.CommandController);
4783348030 app.zephyr.controller('optionController', app.directives.OptionController);
4783448031 app.zephyr.controller('directoryController', app.directives.DirectoryController);
48032+ app.zephyr.controller('HeaderMenuController', app.directives.HeaderMenuController);
4783548033 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4783648034 app.zephyr.directive('command', app.directives.Command.Factory());
4783748035 app.zephyr.directive('option', app.directives.Option.Factory());
@@ -48137,6 +48335,9 @@
4813748335 this.restrict = 'E';
4813848336 this.replace = true;
4813948337 this.templateUrl = 'templates/header-menu.html';
48338+ this.controller = 'HeaderMenuController';
48339+ this.controllerAs = 'hmc';
48340+ this.scope = true;
4814048341 }
4814148342 HeaderMenu.Factory = function () {
4814248343 var directive = function () {
@@ -48147,6 +48348,20 @@
4814748348 return HeaderMenu;
4814848349 })();
4814948350 directives.HeaderMenu = HeaderMenu;
48351+ var HeaderMenuController = (function () {
48352+ function HeaderMenuController($state) {
48353+ this.$state = $state;
48354+ this.isExecution = this.$state.current.name === 'execution';
48355+ this.isWorkspace = this.$state.current.name === 'workspace';
48356+ this.isHistory = this.$state.current.name === 'history';
48357+ }
48358+ HeaderMenuController.prototype.transit = function (state) {
48359+ this.$state.go(state);
48360+ };
48361+ HeaderMenuController.$inject = ['$state'];
48362+ return HeaderMenuController;
48363+ })();
48364+ directives.HeaderMenuController = HeaderMenuController;
4815048365 })(directives = app.directives || (app.directives = {}));
4815148366 })(app || (app = {}));
4815248367 var app;
@@ -48454,6 +48669,7 @@
4845448669 app.zephyr.controller('commandController', app.directives.CommandController);
4845548670 app.zephyr.controller('optionController', app.directives.OptionController);
4845648671 app.zephyr.controller('directoryController', app.directives.DirectoryController);
48672+ app.zephyr.controller('HeaderMenuController', app.directives.HeaderMenuController);
4845748673 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4845848674 app.zephyr.directive('command', app.directives.Command.Factory());
4845948675 app.zephyr.directive('option', app.directives.Option.Factory());
@@ -48759,6 +48975,9 @@
4875948975 this.restrict = 'E';
4876048976 this.replace = true;
4876148977 this.templateUrl = 'templates/header-menu.html';
48978+ this.controller = 'HeaderMenuController';
48979+ this.controllerAs = 'hmc';
48980+ this.scope = true;
4876248981 }
4876348982 HeaderMenu.Factory = function () {
4876448983 var directive = function () {
@@ -48769,6 +48988,20 @@
4876948988 return HeaderMenu;
4877048989 })();
4877148990 directives.HeaderMenu = HeaderMenu;
48991+ var HeaderMenuController = (function () {
48992+ function HeaderMenuController($state) {
48993+ this.$state = $state;
48994+ this.isExecution = this.$state.current.name === 'execution';
48995+ this.isWorkspace = this.$state.current.name === 'workspace';
48996+ this.isHistory = this.$state.current.name === 'history';
48997+ }
48998+ HeaderMenuController.prototype.transit = function (state) {
48999+ this.$state.go(state);
49000+ };
49001+ HeaderMenuController.$inject = ['$state'];
49002+ return HeaderMenuController;
49003+ })();
49004+ directives.HeaderMenuController = HeaderMenuController;
4877249005 })(directives = app.directives || (app.directives = {}));
4877349006 })(app || (app = {}));
4877449007 var app;
@@ -49076,6 +49309,7 @@
4907649309 app.zephyr.controller('commandController', app.directives.CommandController);
4907749310 app.zephyr.controller('optionController', app.directives.OptionController);
4907849311 app.zephyr.controller('directoryController', app.directives.DirectoryController);
49312+ app.zephyr.controller('HeaderMenuController', app.directives.HeaderMenuController);
4907949313 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4908049314 app.zephyr.directive('command', app.directives.Command.Factory());
4908149315 app.zephyr.directive('option', app.directives.Option.Factory());
@@ -49381,6 +49615,9 @@
4938149615 this.restrict = 'E';
4938249616 this.replace = true;
4938349617 this.templateUrl = 'templates/header-menu.html';
49618+ this.controller = 'HeaderMenuController';
49619+ this.controllerAs = 'hmc';
49620+ this.scope = true;
4938449621 }
4938549622 HeaderMenu.Factory = function () {
4938649623 var directive = function () {
@@ -49391,6 +49628,20 @@
4939149628 return HeaderMenu;
4939249629 })();
4939349630 directives.HeaderMenu = HeaderMenu;
49631+ var HeaderMenuController = (function () {
49632+ function HeaderMenuController($state) {
49633+ this.$state = $state;
49634+ this.isExecution = this.$state.current.name === 'execution';
49635+ this.isWorkspace = this.$state.current.name === 'workspace';
49636+ this.isHistory = this.$state.current.name === 'history';
49637+ }
49638+ HeaderMenuController.prototype.transit = function (state) {
49639+ this.$state.go(state);
49640+ };
49641+ HeaderMenuController.$inject = ['$state'];
49642+ return HeaderMenuController;
49643+ })();
49644+ directives.HeaderMenuController = HeaderMenuController;
4939449645 })(directives = app.directives || (app.directives = {}));
4939549646 })(app || (app = {}));
4939649647 var app;
@@ -49698,6 +49949,7 @@
4969849949 app.zephyr.controller('commandController', app.directives.CommandController);
4969949950 app.zephyr.controller('optionController', app.directives.OptionController);
4970049951 app.zephyr.controller('directoryController', app.directives.DirectoryController);
49952+ app.zephyr.controller('HeaderMenuController', app.directives.HeaderMenuController);
4970149953 app.zephyr.directive('headerMenu', app.directives.HeaderMenu.Factory());
4970249954 app.zephyr.directive('command', app.directives.Command.Factory());
4970349955 app.zephyr.directive('option', app.directives.Option.Factory());
--- a/front-end/dist/templates/header-menu.html
+++ b/front-end/dist/templates/header-menu.html
@@ -1,13 +1,12 @@
1-<nav class="nav navbar-default">
1+<nav class="nav navbar navbar-static-top navbar-inverse">
22 <div class="navbar-header">
33 <a class="navbar-brand" href="">Zephyr</a>
44 </div>
55 <div class="navbar-collapse collapse navbar-responsive-collapse">
66 <ul class="nav navbar-nav">
7- <li ng-class="{active: isBoard}"><a ng-href="{{boardRef}}">Execution</a></li>
8- <li ng-class="{active: isWorkspace}"><a ng-href="{{workspaceRef}}">Workspace</a></li>
9- <li ng-class="{active: isNotes}"><a ng-href="{{notesRef}}">History</a></li>
10- <li ng-class="{active: isAdmin}" ng-show="isAdminRole"><a ng-href="{{adminPath}}">Admin Page</a></li>
7+ <li ng-class="{active: hmc.isExecution}"><a ng-click="hmc.transit('execution')" href="/execution">Execution</a></li>
8+ <li ng-class="{active: hmc.isWorkspace}"><a ng-click="hmc.transit('workspace')" href="/workspace">Workspace</a></li>
9+ <li ng-class="{active: hmc.isHistory}"><a ng-click="hmc.transit('history')" href="/history">History</a></li>
1110 </ul>
1211
1312 <!--
--- a/front-end/dist/templates/history.html
+++ b/front-end/dist/templates/history.html
@@ -1 +1,3 @@
1-{{page}}
1+<header-menu></header-menu>
2+<div class="container">
3+</div>
Show on old repository browser