-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
199 lines (183 loc) · 7.44 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<title>GitLab Dashboard</title>
<link rel="shortcut icon" type="image/png" href="favicon.png" id="favicon" data-original-href="favicon.png" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"/>
<link rel="stylesheet" href="css/style.css"/>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-timeago/1.6.3/jquery.timeago.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.12/handlebars.min.js"></script>
<script id="merge-request-list-template" type="text/x-handlebars-template">
<div class="card-list">
{{#each merge_requests}}
{{> merge-request}}
{{/each}}
</div>
</script>
<script id="merge-request-template" type="text/x-handlebars-template">
<div class="card {{ ci.status }}">
<div class="content">
<a class="title small" target="_blank" href="{{ project.url }}/..">
{{ project.namespace }}
</a>
<a class="title" target="_blank" href="{{ project.url }}">
{{ project.name }}
</a>
<span class="branch">
<i class="fa fa-random"></i>
<a target="_blank" href="{{ project.url }}/tree/{{ source_branch }}">
{{ source_branch }}
</a>
to
<a target="_blank" href="{{ project.url }}/tree/{{ target_branch }}">
{{ target_branch }}
</a>
</span>
<a target="_blank" href="{{ url }}">
<i class="fa fa-hashtag"></i> {{ id }} - {{ title }}
</a>
</div>
<div class="spacer"></div>
<div class="info">
<span>
<i class="fa fa-list-ul"></i>
{{ notes }}
</span>
<span>
<i class="fa fa-thumbs-up"></i>
{{ upvotes }}
</span>
<span>
<i class="fa fa-thumbs-down"></i>
{{ downvotes }}
</span>
<div class="spacer"></div>
<span>
<i class="fa fa-calendar-o"></i>
<time class="timeago" datetime="{{ create_date }}"/>
</span>
<span>
<i class="fa fa-calendar-plus-o"></i>
<time class="timeago" datetime="{{ update_date }}"/>
</span>
<span>
<i class="fa fa-user"></i>
<a target="_blank" href="{{ author.url }}">{{ author.name }}</a>
</span>
</div>
</div>
</script>
<script id="pipeline-list-template" type="text/x-handlebars-template">
<div class="card-list">
{{#each pipelines}}
{{> pipeline}}
{{/each}}
</div>
</script>
<script id="pipeline-template" type="text/x-handlebars-template">
<div class="card {{ status }}">
<div class="content">
<a class="title small" target="_blank" href="{{ project.url }}/..">
{{ project.namespace }}
</a>
<a class="title" target="_blank" href="{{ project.url }}">
{{ project.name }}
</a>
<a class="branch" target="_blank" href="{{ project.url }}/tree/{{ branch }}">
<i class="fa fa-random"></i> {{ branch }}
</a>
<div class="pipeline">
<a class="pipeline-id" target="_blank" href="{{ url }}">
<i class="fa fa-hashtag"></i> {{ id }}
</a>
<div class="jobs">
{{#each jobs}}
{{> pipeline-job}}
{{/each}}
</div>
<span class="duration">
<i class="fa fa-clock-o"></i>
{{ duration duration }}
</span>
</div>
</div>
<div class="spacer"></div>
<div class="info">
<div class="spacer"></div>
<span>
<i class="fa fa-calendar-o"></i>
<time class="timeago" datetime="{{ create_date }}"/>
</span>
<span>
<i class="fa fa-user"></i>
<a target="_blank" href="{{ author.url }}">
{{ author.name }}
</a>
</span>
</div>
</div>
</script>
<script id="pipeline-job-template" type="text/x-handlebars-template">
<a class="job" target="_blank" href="{{ web_url }}">
<div class="job-circle {{ status }}">
{{ name }}
</div>
<div class="pipe"></div>
</a>
</script>
<script src="js/utils.js"></script>
<script>
var host = get_url_param('host', 'gitlab.com');
var token = get_url_param('token', '');
var account_type = get_url_param('account_type', 'user');
var account_id = get_url_param('account_id', '');
var refresh_interval = get_url_param('refresh_interval', 10);
</script>
<script src="js/gitlab.js"></script>
<script src="js/app.js"></script>
</head>
<body>
<div id="home">
<div id="merge-requests">
<div id="pipelines">
<div id="settings">
<ul id="menu">
<a href="#home">
<li class="icon fa fa-gitlab" id="hme"></li>
</a>
<a href="#merge-requests">
<li class="icon fa fa-code" id="mr"></li>
</a>
<a href="#pipelines">
<li class="icon fa fa-rocket" id="pipe"></li>
</a>
<a href="#settings">
<li class="icon fa fa-cogs" id="cfg"></li>
</a>
</ul>
<div class="page" id="home-page">
<section class="icon fa fa-gitlab">
<span class="title">Gitlab Dashboard</span>
</section>
</div>
<div class="page" id="merge-requests-page">
<section/>
</div>
<div class="page" id="pipelines-page">
<section/>
</div>
<div class="page" id="settings-page">
<section class="icon fa fa-cogs">
<span class="title">Settings</span>
</section>
</div>
</div>
</div>
</div>
</div>
</body>
</html>