-
Notifications
You must be signed in to change notification settings - Fork 2
/
home.html
82 lines (78 loc) · 3.23 KB
/
home.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
<div class="window-header" style="-webkit-app-region: drag">
<span class="title" style="-webkit-app-region: drag">TimeTrakr</span>
<span class="header-btn exit pull-right" style="-webkit-app-region: no-drag" ng-click="closeWindow()">
<i class="glyphicon glyphicon-remove"></i>
</span>
<span class="header-btn minimize pull-right" style="-webkit-app-region: no-drag" ng-click="minimizeWindow()">
<i class="glyphicon glyphicon-minus"></i>
</span>
<span class="header-btn settings pull-right" style="-webkit-app-region: no-drag" ng-click="openSettings()">
<i class="glyphicon glyphicon-cog"></i>
</span>
</div>
<div class="create-task-container">
<span id="create-task" class="pull-right btn btn-primary btn-lg" ng-click="newTask()">
<i class="glyphicon glyphicon-play"></i>
</span>
<div class="input-wrapper">
<input type="text" id="new-task" placeholder="Do..." />
</div>
</div>
<div class="all-tasks-container">
<div class="running-tasks-container">
<div class="running-task" ng-repeat="task in RunningTasks" data-task-id="task.id">
<span class="status" ng-click="toggleTaskStatus(task.id)">
<i class="glyphicon" ng-class="{'glyphicon-pause':task.running, 'glyphicon-play':!task.running}"></i>
</span>
<span class="name" ng-bind-template="{{task.title}}"></span>
<span class="seconds-elapsed pull-right" ng-if="!Settings.hideSeconds" ng-bind-template="{{':' + task.seconds}}"></span>
<span class="time-elapsed pull-right" ng-bind-template="{{task.hours + ':' + task.minutes}}"></span>
<span class="mark-as-done pull-right hidden" ng-click="markAsDone(task.id)">Done</span>
</div>
</div>
<div class="container-title" ng-if="!Settings.hideDoneTasks && DoneTasks.length > 0">
Done
</div>
<div class="done-tasks-container" ng-if="!Settings.hideDoneTasks">
<div class="done-task" ng-repeat="task in DoneTasks" data-task-id="task.id">
<span class="strikethrough"></span>
<span class="name" ng-bind-template="{{task.title}}"></span>
<span class="time-elapsed pull-right" ng-bind-template="{{task.timeElapsed}}"></span>
<span class="remove-task pull-right hidden" ng-click="removeTask(task.id)">
<i class="glyphicon glyphicon-remove"></i>
</span>
</div>
</div>
</div>
<div class="backdrop hidden"></div>
<div class="settings-window-container hidden">
<div class="window">
<div class="title">SETTINGS</div>
<div class="settings-form">
<div class="field">
<input type="checkbox" id="always-on-top">
<span>Always on top</span>
</div>
<div class="field">
<input type="checkbox" id="hide-seconds">
<span>Hide seconds</span>
</div>
<div class="field">
<input type="checkbox" id="stop-tasks-on-close">
<span>Stop all tasks when closing</span>
</div>
<div class="field">
<input type="checkbox" id="run-task-immediately">
<span>Start running task when created</span>
</div>
<div class="field">
<input type="checkbox" id="hide-done">
<span>Hide tasks marked done</span>
</div>
</div>
<div class="form-actions">
<span class="btn btn-default" ng-click="closeSettings()">Cancel</span>
<span class="btn btn-primary" ng-click="saveSettings()">Save</span>
</div>
</div>
</div>