refactor(dashboard): Restructured front-end dashboard code.

This commit is contained in:
Ed Rooth
2014-02-04 11:13:18 -08:00
parent 8a172322ff
commit 06f990236c
27 changed files with 1048 additions and 1100 deletions

View File

@ -0,0 +1,13 @@
'use strict';
angular.module('etcdControlPanel')
.directive('highlight', function() {
return {
restrict: 'A',
link: function(scope, element, attrs) {
if('#' + scope.etcdPath === attrs.href) {
element.parent().parent().addClass('etcd-selected');
}
}
};
});