From d0a22e1b22a2e1ac62bb29b6ec336967c673e0aa Mon Sep 17 00:00:00 2001 From: Zara Date: Fri, 12 Feb 2016 18:05:27 +0000 Subject: [PATCH] 'All Boards and Worklists' Page This is a page to view all boards/worklists. Currently, a user can only find a board/worklist for which they are explicitly listed as an owner or user, or for which they know the url. This makes it hard for users to know that the feature exists, or to see or demo examples. Hopefully, the 'move search icon' patch can be merged soon after this, to stop the sidebar from getting too full of icons. Change-Id: I12def9cb762e8270ce918ee1da961347836b3576 --- .../controller/boards_list_controller.js | 27 +++ src/app/boards/module.js | 5 + src/app/boards/template/list.html | 166 ++++++++++++++++++ src/app/storyboard/template/side_menu.html | 7 + 4 files changed, 205 insertions(+) create mode 100644 src/app/boards/controller/boards_list_controller.js create mode 100644 src/app/boards/template/list.html 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 + +