forked from evrenvarol/outlook-taskboard
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathkanban.html
303 lines (278 loc) · 28.7 KB
/
kanban.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
<!doctype html>
<html ng-app="taskboardApp">
<head>
<title>Outlook Task Board</title>
<meta http-equiv="X-UA-Compatible" content="IE=11">
<link rel="stylesheet" href="css/bootstrap.min.css">
<link rel="stylesheet" href="css/taskboard.css">
<!-- scripts -->
<script src="lib/jquery.min.js"></script>
<script src="lib/jquery-ui.min.js"></script>
<script src="lib/angular.js"></script>
<script src="lib/sortable.min.js"></script>
<script src="lib/moment.min.js"></script>
<script src="lib/minify.json.js"></script>
<script src="lib/deep-diff-0.3.8.min.js"></script>
<script src="js/app.js"></script>
</head>
<!-- Pass a unique string to the init() function below to address independent configurations! -->
<body ng-controller="taskboardController" ng-init="init('')" ng-class="{ 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<div class="taskboard container-fluid">
<!-- filter bar -->
<section id="filterbar" class="row">
<div class="col-md-12">
<div class="input-group">
<div class="input-group-addon"><strong>Outlook Taskboard</strong></div>
<div class="input-group-addon">
<button id="refreshbutton" class="btn btn-default btn-xs" aria-label="Refresh" type="button" ng-click="initTasks();"><span class="glyphicon glyphicon-refresh" aria-hidden="true"></span></button>
</div>
<div ng-show="(search != '')" class="input-group-addon">
<button class="btn btn-default btn-xs" aria-label="Clear" type="button" ng-click="search = ''"><span class="glyphicon glyphicon-remove" aria-hidden="true"></span></button>
</div>
<input type="text" name="search" ng-model="search" class="form-control" placeholder="Filter" />
<div class="input-group-addon">
<button class="btn btn-default btn-xs" aria-label="Report" type="button" ng-click="createReport();"><span class="glyphicon glyphicon-list-alt" aria-hidden="true"></span></button>
</div>
<div ng-show="(usePrivate && private == true)" class="input-group-addon">
<button class="btn btn-default btn-xs" ng-model="private" aria-label="Private" type="button" ng-click="private = !private"><span class="glyphicon glyphicon-lock" aria-hidden="true"></span></button>
</div>
<div ng-show="(usePrivate && private == false)" class="input-group-addon">
<button class="btn btn-default btn-xs" ng-model="private" aria-label="Public" type="button" ng-click="private = !private"><span class="glyphicon glyphicon-globe" aria-hidden="true"></span></button>
</div>
<div class="input-group-addon">
<button class="btn btn-default btn-xs" aria-label="Config" type="button" ng-click="editConfig();"><span class="glyphicon glyphicon-wrench" aria-hidden="true"></span></button>
</div>
<div class="input-group-addon">
<button class="btn btn-default btn-xs" aria-label="Help" ng-click="displayHelp();"><strong>?</strong></button>
</div>
</div>
</div>
</section>
<!-- tasklanes section -->
<section class="row">
<!-- backlog lane -->
<div ng-if="( config.BACKLOG_FOLDER.ACTIVE )" class="tasklane col-md-3 col-sm-4 col-xs-6" ng-class=" { 'col-lg-100' : numfolders === 1, 'col-lg-50' : numfolders === 2, 'col-lg-33' : numfolders === 3, 'col-lg-25': numfolders === 4, 'col-lg-20': numfolders === 5, 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<div class="panel panel-default" ng-class="{ 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<header class="lane-header" ng-class="{ 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<h5>{{ config.BACKLOG_FOLDER.TITLE }}
<span class="pull-right">
<button class="btn btn-default btn-xs" aria-label="Add" type="button" ng-click="addTask('backlog');"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></button>
<span class="label label-info">{{ backlogTasks.length }}</span>
</span>
</h5>
</header>
<ul id="backlogList" ui-sortable="sortableOptions" ng-model="filteredBacklogTasks" class="panel-body tasklist list-unstyled" ng-class="{ 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<li ng-repeat="task in filteredBacklogTasks" class="task panel" ng-class=" { 'task-low' : task.priority === 0, 'task-medium' : task.priority === 1, 'task-high' : task.priority === 2, 'task-private': task.sensitivity === 2 }"
ng-dblclick="editTask(task)">
<header class="panel-heading">
{{ task.subject }}
<span ng-show="(task.duedate | date:'yyyy' ) != '4501'" ng-class="isOverdue(task.duedate,task.startdate)" class="pull-right">(Due: {{ task.duedate | date:config.DATE_FORMAT }}) </span>
<span ng-show="(task.startdate | date: 'yyyy' ) != '4501'" ng-class="isOverdue(task.duedate,task.startdate)" class="pull-right">(Start: {{ task.startdate | date:(config.DATE_FORMAT) }}) </span>
<span ng-show="task.reminderSet" ng-class="isOverdue(task.duedate,task.startdate)" class="pull-right">(Reminder: {{ task.reminderTime | date:(config.DATE_FORMAT + " " + config.TIME_FORMAT) }}) </span>
</header>
<div class="panel-body">
<span ng-if=" ( config.EXCERPT_PARSE ) " ng-bind-html="trust(task.notes)"></span>
<span ng-if=" ( !config.EXCERPT_PARSE ) " ng-bind="task.notes"></span>
</div>
<footer class="text-right" ng-style="getFooterStyle(task.categories)">
<div ng-if="(task.categories != '')" class="pull-left"><span class="glyphicon glyphicon-tag"></span>
<span ng-repeat="cat in task.categories"><strong ng-style="cat.style">{{ cat.label }}</strong> </span>
</div>
<div>
<span ng-if="( config.BACKLOG_FOLDER.DISPLAY_PROPERTIES.OWNER )"><span class="glyphicon glyphicon-user"></span> {{ task.owner }} </span>
<span ng-if="( config.BACKLOG_FOLDER.DISPLAY_PROPERTIES.TOTALWORK && task.totalwork != 0 )" ><span class="glyphicon glyphicon-time"></span> <span ng-if="( task.actualwork != 0 )" >{{ task.actualwork / 60 }}/</span>{{ task.totalwork / 60 }}h </span>
<span ng-if="( config.BACKLOG_FOLDER.DISPLAY_PROPERTIES.PERCENT && task.percent != 0 )"><span class="glyphicon glyphicon-briefcase"></span> {{ task.percent }}% </span>
<span class="btn-group btn-group-xs">
<button ng-if="(task.oneNoteURL != '')" class="btn btn-default btn-xs" aria-label="OneNote" type="button" ng-click="openOneNoteURL(task.oneNoteURL)"><span class="glyphicon glyphicon-book" aria-hidden="true" ng-style="getFooterStyle(task.categories)"></span></button>
<button class="btn btn-default btn-xs" aria-label="Edit" type="button" ng-click="editTask(task)"><span class="glyphicon glyphicon-edit" aria-hidden="true" ng-style="getFooterStyle(task.categories)"></span></button>
<button class="btn btn-default btn-xs" aria-label="Delete" type="button" ng-click="deleteTask(task,backlogTasks,filteredBacklogTasks, true)"><span class="glyphicon glyphicon-trash" aria-hidden="true" ng-style="getFooterStyle(task.categories)"></span></button>
</span>
</div>
</footer>
</li>
</ul>
</div>
</div>
<!-- backlog lane -->
<!-- next lane -->
<div ng-if="( config.NEXT_FOLDER.ACTIVE )" class="tasklane col-md-3 col-sm-4 col-xs-6" ng-class=" { 'col-lg-100' : numfolders === 1, 'col-lg-50' : numfolders === 2, 'col-lg-33' : numfolders === 3, 'col-lg-25': numfolders === 4, 'col-lg-20': numfolders === 5, 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<div class="panel panel-default" ng-class="{ 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<header class="lane-header" ng-class="{ 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<h5>{{ config.NEXT_FOLDER.TITLE }}
<span class="pull-right">
<button ng-if="( config.NEXT_FOLDER.LIMIT == 0 || nextTasks.length < config.NEXT_FOLDER.LIMIT )" class="btn btn-default btn-xs" aria-label="Add" type="button" ng-click="addTask('next');"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></button>
<span class="label label-info">{{ nextTasks.length }}</span>
<span ng-if="( config.NEXT_FOLDER.LIMIT > 0 )" class="label label-primary">{{ config.NEXT_FOLDER.LIMIT }}</span>
</span>
</h5>
</header>
<ul id="nextList" ui-sortable="sortableOptions" ng-model="filteredNextTasks" class="panel-body tasklist list-unstyled" ng-class="{ 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<li ng-repeat="task in filteredNextTasks" class="task panel" ng-class=" { 'task-low' : task.priority === 0, 'task-medium' : task.priority === 1, 'task-high' : task.priority === 2, 'task-private': task.sensitivity === 2 }"
ng-dblclick="editTask(task)">
<header class="panel-heading">
{{ task.subject }}
<span ng-show="(task.duedate | date:'yyyy' ) != '4501'" ng-class="isOverdue(task.duedate,task.startdate)" class="pull-right">(Due: {{ task.duedate | date:config.DATE_FORMAT }}) </span>
<span ng-show="(task.startdate | date: 'yyyy' ) != '4501'" ng-class="isOverdue(task.duedate,task.startdate)" class="pull-right">(Start: {{ task.startdate | date:(config.DATE_FORMAT) }}) </span>
<span ng-show="task.reminderSet" ng-class="isOverdue(task.duedate,task.startdate)" class="pull-right">(Reminder: {{ task.reminderTime | date:(config.DATE_FORMAT + " " + config.TIME_FORMAT) }}) </span>
</header>
<div class="panel-body">
<span ng-if=" ( config.EXCERPT_PARSE ) " ng-bind-html="trust(task.notes)"></span>
<span ng-if=" ( !config.EXCERPT_PARSE ) " ng-bind="task.notes"></span>
</div>
<footer class="text-right" ng-style="getFooterStyle(task.categories)">
<div ng-if="(task.categories != '')" class="pull-left"><span class="glyphicon glyphicon-tag"></span>
<span ng-repeat="cat in task.categories"><strong ng-style="cat.style">{{ cat.label }}</strong> </span>
</div>
<div>
<span ng-if="( config.NEXT_FOLDER.DISPLAY_PROPERTIES.OWNER )"><span class="glyphicon glyphicon-user"></span> {{ task.owner }} </span>
<span ng-if="( config.NEXT_FOLDER.DISPLAY_PROPERTIES.TOTALWORK && task.totalwork != 0 )" ><span class="glyphicon glyphicon-time"></span> <span ng-if="( task.actualwork != 0 )" >{{ task.actualwork / 60 }}/</span>{{ task.totalwork / 60 }}h </span>
<span ng-if="( config.NEXT_FOLDER.DISPLAY_PROPERTIES.PERCENT && task.percent != 0 )"><span class="glyphicon glyphicon-briefcase"></span> {{ task.percent }}% </span>
<span class="btn-group btn-group-xs">
<button ng-if="(task.oneNoteURL != '')" class="btn btn-default btn-xs" aria-label="OneNote" type="button" ng-click="openOneNoteURL(task.oneNoteURL)"><span class="glyphicon glyphicon-book" aria-hidden="true" ng-style="getFooterStyle(task.categories)"></span></button>
<button class="btn btn-default btn-xs" aria-label="Edit" type="button" ng-click="editTask(task)"><span class="glyphicon glyphicon-edit" aria-hidden="true" ng-style="getFooterStyle(task.categories)"></span></button>
<button class="btn btn-default btn-xs" aria-label="Delete" type="button" ng-click="deleteTask(task,nextTasks,filteredNextTasks, true)"><span class="glyphicon glyphicon-trash" aria-hidden="true" ng-style="getFooterStyle(task.categories)"></span></button>
</span>
</div>
</footer>
</li>
</ul>
</div>
</div>
<!-- next lane -->
<!-- inprogress lane -->
<div ng-if="( config.INPROGRESS_FOLDER.ACTIVE )" class="tasklane col-md-3 col-sm-4 col-xs-6" ng-class=" { 'col-lg-100' : numfolders === 1, 'col-lg-50' : numfolders === 2, 'col-lg-33' : numfolders === 3, 'col-lg-25': numfolders === 4, 'col-lg-20': numfolders === 5, 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<div class="panel panel-default" ng-class="{ 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<header class="lane-header" ng-class="{ 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<h5>{{ config.INPROGRESS_FOLDER.TITLE }}
<span class="pull-right">
<button ng-if="( config.INPROGRESS_FOLDER.LIMIT == 0 || inprogressTasks.length < config.INPROGRESS_FOLDER.LIMIT )" class="btn btn-default btn-xs" aria-label="Add" type="button" ng-click="addTask('inprogress');"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></button>
<span class="label label-info">{{ inprogressTasks.length }}</span>
<span ng-if="( config.INPROGRESS_FOLDER.LIMIT > 0 )" class="label label-primary">{{ config.INPROGRESS_FOLDER.LIMIT }}</span>
</span>
</h5>
</header>
<ul id="inprogressList" ui-sortable="sortableOptions" ng-model="filteredInprogressTasks" class="panel-body tasklist list-unstyled" ng-class="{ 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<li ng-repeat="task in filteredInprogressTasks" class="task panel" ng-class=" { 'task-low' : task.priority === 0, 'task-medium' : task.priority === 1, 'task-high' : task.priority === 2, 'task-private': task.sensitivity === 2 }"
ng-dblclick="editTask(task)">
<header class="panel-heading">
{{ task.subject }}
<span ng-show="(task.duedate | date:'yyyy' ) != '4501'" ng-class="isOverdue(task.duedate,task.startdate)" class="pull-right">(Due: {{ task.duedate | date:config.DATE_FORMAT }}) </span>
<span ng-show="(task.startdate | date: 'yyyy' ) != '4501'" ng-class="isOverdue(task.duedate,task.startdate)" class="pull-right">(Start: {{ task.startdate | date:(config.DATE_FORMAT) }}) </span>
<span ng-show="task.reminderSet" ng-class="isOverdue(task.duedate,task.startdate)" class="pull-right">(Reminder: {{ task.reminderTime | date:(config.DATE_FORMAT + " " + config.TIME_FORMAT) }}) </span>
<!-- <span ng-show="( config.INPROGRESS_FOLDER.DISPLAY_PROPERTIES.OWNER )" class="pull-right"><span class="glyphicon glyphicon-user"></span> {{ task.owner }} </span> -->
</header>
<div class="panel-body">
<span ng-if=" ( config.EXCERPT_PARSE ) " ng-bind-html="trust(task.notes)"></span>
<span ng-if=" ( !config.EXCERPT_PARSE ) " ng-bind="task.notes"></span>
</div>
<footer class="text-right" ng-style="getFooterStyle(task.categories)">
<div ng-if="(task.categories != '')" class="pull-left"><span class="glyphicon glyphicon-tag"></span>
<span ng-repeat="cat in task.categories"><strong ng-style="cat.style">{{ cat.label }}</strong> </span>
</div>
<div>
<span ng-if="( config.INPROGRESS_FOLDER.DISPLAY_PROPERTIES.OWNER )"><span class="glyphicon glyphicon-user"></span> {{ task.owner }} </span>
<span ng-if="( config.INPROGRESS_FOLDER.DISPLAY_PROPERTIES.TOTALWORK && task.totalwork != 0 )" ><span class="glyphicon glyphicon-time"></span> <span ng-if="( task.actualwork != 0 )" >{{ task.actualwork / 60 }}/</span>{{ task.totalwork / 60 }}h </span>
<span ng-if="( config.INPROGRESS_FOLDER.DISPLAY_PROPERTIES.PERCENT && task.percent != 0 )"><span class="glyphicon glyphicon-briefcase"></span> {{ task.percent }}% </span>
<span class="btn-group btn-group-xs">
<button ng-if="(task.oneNoteURL != '')" class="btn btn-default btn-xs" aria-label="OneNote" type="button" ng-click="openOneNoteURL(task.oneNoteURL)"><span class="glyphicon glyphicon-book" aria-hidden="true" ng-style="getFooterStyle(task.categories)"></span></button>
<button class="btn btn-default btn-xs" aria-label="Edit" type="button" ng-click="editTask(task)"><span class="glyphicon glyphicon-edit" aria-hidden="true" ng-style="getFooterStyle(task.categories)"></span></button>
<button class="btn btn-default btn-xs" aria-label="Delete" type="button" ng-click="deleteTask(task,inprogressTasks,filteredInprogressTasks, true)"><span class="glyphicon glyphicon-trash" aria-hidden="true" ng-style="getFooterStyle(task.categories)"></span></button>
</span>
</div>
</footer>
</li>
</ul>
</div>
</div>
<!-- inprogress lane -->
<div class="clearfix visible-sm-block"></div>
<!-- waiting lane -->
<div ng-if="( config.WAITING_FOLDER.ACTIVE )" class="tasklane col-md-3 col-sm-4 col-xs-6" ng-class=" { 'col-lg-100' : numfolders === 1, 'col-lg-50' : numfolders === 2, 'col-lg-33' : numfolders === 3, 'col-lg-25': numfolders === 4, 'col-lg-20': numfolders === 5, 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<div class="panel panel-default" ng-class="{ 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<header class="lane-header" ng-class="{ 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<h5>{{ config.WAITING_FOLDER.TITLE }}
<span class="pull-right">
<button ng-if="( config.WAITING_FOLDER.LIMIT == 0 || waitingTasks.length < config.WAITING_FOLDER.LIMIT )" class="btn btn-default btn-xs" aria-label="Add" type="button" ng-click="addTask('waiting');"><span class="glyphicon glyphicon-plus" aria-hidden="true"></span></button>
<span class="label label-info">{{ waitingTasks.length }}</span>
<span ng-if="( config.WAITING_FOLDER.LIMIT > 0 )" class="label label-primary">{{ config.WAITING_FOLDER.LIMIT }}</span>
</span>
</h5>
</header>
<ul id="waitingList" ui-sortable="sortableOptions" ng-model="filteredWaitingTasks" class="panel-body tasklist list-unstyled" ng-class="{ 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<li ng-repeat="task in filteredWaitingTasks" class="task panel" ng-class=" { 'task-low' : task.priority === 0, 'task-medium' : task.priority === 1, 'task-high' : task.priority === 2, 'task-private': task.sensitivity === 2 }"
ng-dblclick="editTask(task)">
<header class="panel-heading">
{{ task.subject }}
<span ng-show="(task.duedate | date:'yyyy' ) != '4501'" ng-class="isOverdue(task.duedate,task.startdate)" class="pull-right">(Due: {{ task.duedate | date:config.DATE_FORMAT }}) </span>
<span ng-show="(task.startdate | date: 'yyyy' ) != '4501'" ng-class="isOverdue(task.duedate,task.startdate)" class="pull-right">(Start: {{ task.startdate | date:(config.DATE_FORMAT) }}) </span>
<span ng-show="task.reminderSet" ng-class="isOverdue(task.duedate,task.startdate)" class="pull-right">(Reminder: {{ task.reminderTime | date:(config.DATE_FORMAT + " " + config.TIME_FORMAT) }}) </span>
</header>
<div class="panel-body">
<span ng-if=" ( config.EXCERPT_PARSE ) " ng-bind-html="trust(task.notes)"></span>
<span ng-if=" ( !config.EXCERPT_PARSE ) " ng-bind="task.notes"></span>
</div>
<footer class="text-right" ng-style="getFooterStyle(task.categories)">
<div ng-if="(task.categories != '')" class="pull-left"><span class="glyphicon glyphicon-tag"></span>
<span ng-repeat="cat in task.categories"><strong ng-style="cat.style">{{ cat.label }}</strong> </span>
</div>
<div>
<span ng-if="( config.WAITING_FOLDER.DISPLAY_PROPERTIES.OWNER )"><span class="glyphicon glyphicon-user"></span> {{ task.owner }} </span>
<span ng-if="( config.WAITING_FOLDER.DISPLAY_PROPERTIES.TOTALWORK && task.totalwork != 0 )" ><span class="glyphicon glyphicon-time"></span> <span ng-if="( task.actualwork != 0 )" >{{ task.actualwork / 60 }}/</span>{{ task.totalwork / 60 }}h </span>
<span ng-if="( config.WAITING_FOLDER.DISPLAY_PROPERTIES.PERCENT && task.percent != 0 )"><span class="glyphicon glyphicon-briefcase"></span> {{ task.percent }}% </span>
<span class="btn-group btn-group-xs">
<button ng-if="(task.oneNoteURL != '')" class="btn btn-default btn-xs" aria-label="OneNote" type="button" ng-click="openOneNoteURL(task.oneNoteURL)"><span class="glyphicon glyphicon-book" aria-hidden="true" ng-style="getFooterStyle(task.categories)"></span></button>
<button class="btn btn-default btn-xs" aria-label="Edit" type="button" ng-click="editTask(task)"><span class="glyphicon glyphicon-edit" aria-hidden="true" ng-style="getFooterStyle(task.categories)"></span></button>
<button class="btn btn-default btn-xs" aria-label="Delete" type="button" ng-click="deleteTask(task,waitingTasks,filteredWaitingTasks, true)"><span class="glyphicon glyphicon-trash" aria-hidden="true" ng-style="getFooterStyle(task.categories)"></span></button>
</span>
</div>
</footer>
</li>
</ul>
</div>
</div>
<!-- waiting lane -->
<!-- completed lane -->
<div ng-if="( config.COMPLETED_FOLDER.ACTIVE )" class="tasklane col-md-3 col-sm-4 col-xs-6" ng-class=" { 'col-lg-100' : numfolders === 1, 'col-lg-50' : numfolders === 2, 'col-lg-33' : numfolders === 3, 'col-lg-25': numfolders === 4, 'col-lg-20': numfolders === 5, 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<div class="panel panel-default" ng-class="{ 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<header class="lane-header" ng-class="{ 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<h5>{{ config.COMPLETED_FOLDER.TITLE }}
<span class="pull-right">
<span class="label label-info">{{ completedTasks.length }}</span>
</span>
</h5>
</header>
<ul id="completedList" ui-sortable="sortableOptions" ng-model="completedTasks" class="panel-body tasklist list-unstyled" ng-class="{ 'light' : !config.DARK_MODE, 'dark' : config.DARK_MODE }">
<li ng-repeat="task in filteredCompletedTasks | filter:search" class="task panel task-completed" ng-dblclick="editTask(task)">
<header class="panel-heading">
{{ task.subject }}
<span class="pull-right">(Completed: {{ task.completeddate | date:config.DATE_FORMAT }}) </span>
</header>
<div class="panel-body">
<span ng-if=" ( config.EXCERPT_PARSE ) " ng-bind-html="trust(task.notes)"></span>
<span ng-if=" ( !config.EXCERPT_PARSE ) " ng-bind="task.notes"></span>
</div>
<footer class="text-right" ng-style="getFooterStyle(task.categories)">
<div ng-if="(task.categories != '')" class="pull-left"><span class="glyphicon glyphicon-tag"></span>
<span ng-repeat="cat in task.categories"><strong ng-style="cat.style">{{ cat.label }}</strong> </span>
</div>
<div>
<span ng-if="( config.COMPLETED_FOLDER.DISPLAY_PROPERTIES.OWNER )"><span class="glyphicon glyphicon-user"></span> {{ task.owner }} </span>
<span ng-if="( config.COMPLETED_FOLDER.DISPLAY_PROPERTIES.TOTALWORK && task.totalwork != 0 )" ><span class="glyphicon glyphicon-time"></span> <span ng-if="( task.actualwork != 0 )" >{{ task.actualwork / 60 }}/</span>{{ task.totalwork / 60 }}h </span>
<span ng-if="( config.COMPLETED_FOLDER.DISPLAY_PROPERTIES.PERCENT && task.percent != 0 )"><span class="glyphicon glyphicon-briefcase"></span> {{ task.percent }}% </span>
<span class="btn-group btn-group-xs">
<button ng-if="(task.oneNoteURL != '')" class="btn btn-default btn-xs" aria-label="OneNote" type="button" ng-click="openOneNoteURL(task.oneNoteURL)"><span class="glyphicon glyphicon-book" aria-hidden="true" ng-style="getFooterStyle(task.categories)"></span></button>
<button class="btn btn-default btn-xs" aria-label="Archive" type="button" ng-click="archiveTask(task,completedTasks,filteredCompletedTasks)"><span class="glyphicon glyphicon-ok" aria-hidden="true" ng-style="getFooterStyle(task.categories)"></span></button>
<button ng-if="( config.COMPLETED_FOLDER.EDITABLE )" class="btn btn-default btn-xs" aria-label="Edit" type="button" ng-click="editTask(task)"><span class="glyphicon glyphicon-edit" aria-hidden="true" ng-style="getFooterStyle(task.categories)"></span></button>
<button class="btn btn-default btn-xs" aria-label="Delete" type="button" ng-click="deleteTask(task,completedTasks,filteredCompletedTasks, true)"><span class="glyphicon glyphicon-trash" aria-hidden="true" ng-style="getFooterStyle(task.categories)"></span></button>
</span>
</div>
</footer>
</li>
</ul>
</div>
</div>
<!-- completed lane -->
</section>
</div>
</body>
</html>