-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
170 lines (160 loc) · 6.91 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
<!DOCTYPE html>
<html>
<head>
<title>Git Down</title>
<meta http-equiv="content-type" content="text/html;charset=utf-8"/>
<!--Styling-->
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css">
<link rel="stylesheet" type="text/css" href="css/bootstrap-theme.min.css">
<link rel="stylesheet" type="text/css" href="css/datepicker.css">
<link rel="stylesheet" type="text/css" href="css/app.css">
<!--Javascript-->
<script type="text/javascript" src="js/jquery.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/bootstrap-datepicker.js"></script>
<script type="text/javascript" src="js/underscore-min.js"></script>
<script type="text/javascript" src="js/backbone-min.js"></script>
<script type="text/javascript" src="js/backbone.stickit.js"></script>
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="js/downloadify.min.js"></script>
<script type="text/javascript" src="js/app.js"></script>
</head>
<body>
<div id="wrap">
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="#">GitDown</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<div id="rate_view">
<ul class="nav navbar-nav">
<li><a id="rate" target="_blank" href="http://developer.github.com/v3/#rate-limiting"></a></li>
</ul>
</div>
<div class="navbar-right"><div id="user_view" class="pull-right"></div></div>
</div>
</div>
</nav>
<div class="container theme-showcase">
<div id="msg_view"></div>
<div id="error_view"></div>
<div id="motd" class="jumbotron">
<p>Git Down allows you to download GitHub issues in a comma seperated format for any repository that you
are a member of.</p>
<p>To get started, simply enter your GitHub login credentials above and any issues will be ready
for export!</p>
<h4>Please Note: All communication occurs strictly between the GitHub API and your browser. Absolutely no
information is sent to any 3rd parties. GitHub limits ordinary users to 5000 API requests per hour. Since the
below information is retrieved entirely from requests to the GitHub API, you could potentially reach
that limit with sufficient use.</h4>
</div>
<div id="filters" class="row">
<div id="repos_view" class="col-sm-2">
<h4>Repositories</h4>
<select id="repos_select" class="form-control">
<option disabled="disabled">None Available</option>
</select>
</div>
<div id="status_view" class="col-sm-2">
<h4>Status</h4>
<select id="status_select" class="form-control">
</select>
</div>
<div class="col-sm-2">
<p id="downloadify">
You must have Flash installed to download this file.
</p>
</div>
<!--<div class="span1">-->
<!--<h4>From</h4>-->
<!--<div class="input-append date">-->
<!--<input id="from_view" class="span1" type="text" data-date-format="mm/dd/yy">-->
<!--<span class="add-on"><i class="icon-remove"></i></span>-->
<!--</div>-->
<!--</div>-->
<!--<div class="span1">-->
<!--<h4>To</h4>-->
<!--<div class="input-append date">-->
<!--<input id="to_view" class="span1" type="text" data-date-format="mm/dd/yy">-->
<!--<span class="add-on"><i class="icon-remove"></i></span>-->
<!--</div>-->
<!--</div>-->
</div><br>
<div id="issues_view">
<h2>Issues</h2>
<table id="issues_table" class="table table-striped table-hover table-bordered">
<thead>
<tr>
<th class="nowrap">Issue #</th>
<th>Name</th>
<th>Assignee</th>
<th>State</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</div>
</div>
<div id="push"></div>
</div>
<div id="footer">
<div class="container">
<p class="muted credit">Created by <a target="_blank" href="https://github.com/jamesdh">James Hardwick</a> | <a href="https://github.com/jamesdh/git-down" target="_blank">github.com/jamesdh/git-down</a></p>
</div>
</div>
<!--LOGIN TEMPLATE-->
<script type="text/template" id="userlogin_template">
<div class="navbar-form">
<div class="form-group">
<input id="username" class="login span2 form-control" type="text" placeholder="GitHub Username">
</div>
<div class="form-group">
<input id="password" class="login span2 form-control" type="password" placeholder="GitHub Password">
</div>
<button id="login" type="submit" class="btn btn-default">Go!</button>
</div>
</script>
<!--USER TEMPLATE-->
<script type="text/template" id="loggedin_template">
<div>
<ul class="nav navbar-nav">
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false"><%= name %><span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a target="_blank" href="<%= html_url %>">GitHub Profile</a></li>
<li><a id="logout" href="#">Logout</a></li>
</ul>
</li>
</ul>
</div>
</script>
<!--INFO TEMPLATE-->
<script type="text/template" id="msg_template">
<div class="alert alert-info">
<button id="msg-close" type="button" class="close" data-dismiss="alert">×</button>
<strong>Info: </strong><%= error %>
</div>
</script>
<!--ERROR TEMPLATE-->
<script type="text/template" id="error_template">
<div class="alert alert-error">
<button id="error-close" type="button" class="close" data-dismiss="alert">×</button>
<strong>Woops: </strong><%= error %>
</div>
</script>
<!--ISSUE TEMPLATE-->
<script type="text/template" id="issue_template">
<tr>
<td><%= number %></td>
<td><%= title %></td>
<td class="nowrap">
<% if(assignee && assignee.avatar_url != null) { %>
<img src="<%= assignee.avatar_url %>"/>
<% } if(assignee) {print(assignee.login);} %></td>
<td><%= state %></td>
</tr>
</script>
</body>
</html>