-
Notifications
You must be signed in to change notification settings - Fork 4
/
popup.html
65 lines (65 loc) · 2.55 KB
/
popup.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
<!doctype html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="styles.css" />
<script type="text/html" id="repository-row">
<li data-id="{{name}}">
<p>
<a href="{{git_host}}/{{name}}" target="_blank">{{name}}</a><span class="remove">x</span>
</p>
<ul class="prs">{{pullRequests}}</ul>
</li>
</script>
<script type="text/html" id="pull-request-row">
<li class="pr" data-id="{{id}}">
<p class="avatar"><a href="{{user_url}}" target="_blank"><img src="{{user_avatar}}"/></a></p>
<p><a href="{{html_url}}" target="_blank" class="pr-link">{{title}}</a></p>
<p>{{created_at}} <span class="hide">x</span></p>
</li>
</script>
<script src="jquery-2.0.3.min.js"></script>
<script src="coffee-script.js"></script>
<script src="underscore-min.js"></script>
<script src="moment.min.js"></script>
<script type="text/coffeescript" src="app.coffee"></script>
</head>
<body>
<header>
<section>
<a href="{{git_host}}" target="_blank"><img src="github-120.png" width="32" height="32"/></a>
<h1>Pull Request Notifier</h1>
<p class="version"></p>
</section>
</header>
<p class="add-repo">
Add <span class="title"></span>?
<button class="add">Yes</button>
</p>
<ul id="repositories"></ul>
<p class='empty'>Please add your favorite repositories!</p>
<p class='empty'>Just click on this popup under your repo's github page.</p>
<div class="welcome">
<p>Welcome stranger!</p>
<p>Please enter your <a href="{{git_host}}/settings/applications" target="_blank">personal access token</a> below to get started:</p>
<p>
<input type="text" name="access-token" id="access-token" placeholder="Personal Access Token"/>
</p>
<p>
<label for="github-host">Github Host</label>
</p>
<p>
<input type="text" name="github-host" id="github-host" placeholder="https://github.com"/>
</p>
<p>
<label for="github-apihost">Github API Host</label>
</p>
<p>
<input type="text" name="github-apihost" id="github-apihost" placeholder="https://api.github.com"/>
</p>
<p>
<input type="submit" value="Save" class="save-token" />
</p>
<small>ps. Your token is needed for accessing the Github API. It will not be shared! You can <a href="https://github.com/nuc-gr/pull-request-notifier" target="_blank">check the source code</a> if you're suspicious (you should!).</small>
</div>
</body>
</html>