forked from axeloz/redmine-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
234 lines (221 loc) · 6.54 KB
/
index.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
<!DOCTYPE HTML>
<html>
<head>
<title>Redmine Client</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="assets/css/main.css" />
</head>
<body>
<nav class="nav header">
<div class="nav-left">
<a class="nav-item">
<img src="assets/img/logo.png" alt="Redmine logo">
<strong class="app_title">Redmine Client</strong>
</a>
</div>
<div class="nav-right nav-menu">
<span class="nav-item">
<a class="button is-primary is-small redmine" href="#" title="Go to your Redmine instance">
<span>Go to Redmine</span>
</a>
</span>
<span class="nav-item">
<a class="nav-item" href="settings.html" title="Access to the application settings">
<span class="icon">
<i class="fa fa-cogs"></i>
</span>
</a>
</span>
</div>
</nav>
<section id="main-section" class="section">
<div class="tickets-filter tabs is-centered">
<ul>
<li data-filter="assigned_to_id" class="is-active">
<a>
<span class="icon is-small"><i class="fa fa-inbox"></i></span>
<span>Assigned to me</span>
</a>
</li>
<li data-filter="author_id" class="created-by-me">
<a>
<span class="icon is-small"><i class="fa fa-paper-plane-o"></i></span>
<span>Created by me</span>
</a>
</li>
<li data-filter="watcher_id" >
<a>
<span class="icon is-small"><i class="fa fa-eye"></i></span>
<span>Watched by me</span>
</a>
</li>
<li data-filter="all" >
<a>
<span class="icon is-small"><i class="fa fa-globe"></i></span>
<span>All issues</span>
</a>
</li>
</ul>
</div>
<div class="filters control is-grouped">
<form id="filter_frm" method="post" action="#">
<div class="control">
<div class="select">
<select id="projects_list" data-filter="project_id">
<option value="0">-- Any project --</option>
</select>
</div>
<div class="select">
<select id="trackers_list" data-filter="tracker_id">
<option value="0">-- Any tracker --</option>
</select>
</div>
<div class="select" style="height: 30px;">
<select id="statuses_list" data-filter="status_id">
<option value="0">-- Any status --</option>
</select>
</div>
<div class="select">
<select id="priorities_list" data-filter="priority_id">
<option value="0">-- Any priority --</option>
</select>
</div>
<input class="button is-primary is-small" type="submit" value="Filter" />
<!--<a class="button is-light is-small filters-reset">Reset</a>-->
</div>
</form>
</div>
<section class="tickets">
<div class="container tickets-for-me">
</div>
</section>
</div>
<script id="tickets-list" type="text/x-handlebars-template">
<!--<h2 class="title">Showing {{issues.length}} out of {{total_count}} issues</h2>-->
{{#if issues}}
{{#each issues}}
<div class="ticket ticket_{{id}} card" style="margin-bottom: 30px" data-id="{{id}}">
<header class="card-header">
<h3 class="card-header-title private-{{is_private}}">
<a href="{{../redmine_host}}/issues/{{id}}">{{subject}}</a>
</h3>
<a class="card-header-icon">
<span class="icon">
<i class="fa fa-angle-up"></i>
</span>
</a>
</header>
<div class="card-content hidden">
<div class="content">
<div class="columns is-multiline">
<div class="column is-1 label">
ID:
</div>
<div class="column is-3">
{{id}}
</div>
<div class="column is-1 label">
Project:
</div>
<div class="column is-3">
<a href="{{../redmine_host}}/projects/{{project.id}}">
{{project.name}}
</a>
</div>
<div class="column is-1 label">
Tracker:
</div>
<div class="column is-3">
{{tracker.name}}
</div>
<div class="column is-1 label">
Author:
</div>
<div class="column is-3">
<a href="{{../redmine_host}}/users/{{author.id}}">
{{author.name}}
</a>
</div>
<div class="column is-1 label">
Assignee:
</div>
<div class="column is-3">
<a href="{{../redmine_host}}/users/{{assigned_to.id}}">
{{assigned_to.name}}
</a>
</div>
<div class="column is-1 label">
Created:
</div>
<div class="column is-3">
{{nicetime created_on}}
</div>
<div class="column is-1 label">
Updated:
</div>
<div class="column is-3">
{{nicetime updated_on}}
</div>
<div class="column is-1 label">
Status:
</div>
<div class="column is-3">
<span class="tag status-{{status.id}}" status="{{status.id}}">{{status.name}}</span>
</div>
<div class="column is-1 label">
Priority:
</div>
<div class="column is-3">
<span class="tag priority-{{priority.id}}">{{priority.name}}</span>
</div>
<div class="column is-1 label">
Done:
</div>
<div class="column is-3">
<progress class="progress is-warning" value="{{done_ratio}}" max="100">{{done_ratio}}</progress>
</div>
<div class="column is-1 label">
<u>T</u>ime entries:
</div>
<div class="column is-1">
<span class="time tag priority-info">
{{#if prettyTime}}
{{prettyTime}}
{{else}}
New
{{/if}}
</span>
</div>
</div>
<div class="ticket-description">
{{{description}}}
</div>
</div>
</div>
<footer class="card-footer">
<!--<a class="card-footer-item">Save</a>
<a class="card-footer-item">Edit</a>
<a class="card-footer-item">Delete</a>-->
</footer>
</div>
{{/each}}
{{else}}
<div class="no-result-found notification">
We could not find any result, change your filters.
</div>
{{/if}}
</div>
</script>
<script>
window.$ = window.jQuery = require('./assets/js/jquery.min.js');
</script>
<script src="assets/js/config.js"></script>
<script src="assets/js/main.js"></script>
<script src="http://localhost:35729/livereload.js"></script>
</body>
</html>