diff --git a/src/app/boards/controller/boards_list_controller.js b/src/app/boards/controller/boards_list_controller.js new file mode 100644 index 00000000..bc11ba44 --- /dev/null +++ b/src/app/boards/controller/boards_list_controller.js @@ -0,0 +1,27 @@ +/* + * Copyright (c) 2016 Codethink Limited + * + * Licensed under the Apache License, Version 2.0 (the "License"); you may + * not use this file except in compliance with the License. You may obtain + * a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT + * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the + * License for the specific language governing permissions and limitations + * under the License. + */ + +/** + * A controller that manages a view of all worklists and boards. + */ +angular.module('sb.board').controller('BoardsListController', + function ($scope) { + 'use strict'; + + $scope.boardResourceTypes = ['Board']; + $scope.worklistResourceTypes = ['Worklist']; + + }); diff --git a/src/app/boards/module.js b/src/app/boards/module.js index 9afc7c99..aa466602 100644 --- a/src/app/boards/module.js +++ b/src/app/boards/module.js @@ -37,5 +37,10 @@ angular.module('sb.board', ['ui.router', 'sb.services', 'sb.util', url: '/{boardID:[0-9]+}', controller: 'BoardDetailController', templateUrl: 'app/boards/template/detail.html' + }) + .state('sb.board.list', { + url: '/list', + controller: 'BoardsListController', + templateUrl: 'app/boards/template/list.html' }); }); diff --git a/src/app/boards/template/list.html b/src/app/boards/template/list.html new file mode 100644 index 00000000..46cf4f69 --- /dev/null +++ b/src/app/boards/template/list.html @@ -0,0 +1,166 @@ + +
+
+
+

Worklists and Boards

+
+
+
+
+ + + + + + + + +
+
+
+ + + +
+ + + + + + + +
Worklists
+

+ + {{worklist.title}} + +

+ + + {{worklist.items.length}} + Items + +
+ + No worklists found. + +
+ +
+
+ +
+ + + + + + + + +
+
+
+ + + +
+ + + + + + + +
Boards
+

+ + {{board.title}} + +

+ + + {{lane.worklist.items.length}} + {{lane.worklist.title}} +   + +
+ + No boards found. + +
+ +
+
+
diff --git a/src/app/storyboard/template/side_menu.html b/src/app/storyboard/template/side_menu.html index a5a58955..4564486a 100644 --- a/src/app/storyboard/template/side_menu.html +++ b/src/app/storyboard/template/side_menu.html @@ -42,6 +42,13 @@ About +
  • + + + + Worklists & Boards + +