-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
140 lines (116 loc) · 4.52 KB
/
index.html
File metadata and controls
140 lines (116 loc) · 4.52 KB
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Issues</title>
<!-- TODO: Use Bower for dependency management -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap-theme.min.css">
<link rel="stylesheet" href="css/issues.css">
<script src="https://code.jquery.com/jquery-2.1.1.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.5.2/underscore-min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.0.0/backbone-min.js"></script>
</head>
<!-- Underscore Template for List of issues -->
<script type="text/template" id="template-issues">
<table style="width: auto;" class="table table-hover">
<thead>
<tr>
<th>Issue No.</th>
<th>Reporter</th>
<th>Assigned</th>
<th>Labels</th>
<th>Title</th>
</tr>
</thead>
<tbody>
<% _.each(collection, function(issue) { %>
<tr id="issue_<%= issue._id %>" class="issue_row bth-hover" data-issue-no="<%= issue._id%>">
<td class="">
<img src="img/glyphicons_360_bug.png" alt="bug"> <%= issue._id.substring((issue._id.length-7)) %>
</td>
<td class="">
<%= issue.reporter %>
</td>
<td class="">
<%= issue.assignedTo %>
</td>
<td class="">
<% _.each(issue.tags, function(tag) { %>
<span class="label label-primary"><%= tag %></span>
<% }); %>
</td>
<td class=""><%= issue.description %></td>
</tr>
<% }); %>
</tbody>
</table>
<sub>Icons courtesy of <a title="" target="" href="http://glyphicons.com/">Glyphicons</a></sub>
</script>
<!-- Underscore Template for an Issue Detail -->
<script type="text/template" id="template-issue-detail">
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title"> <%= _id.substring((_id.length-7)) %>: <%= description %></h2>
</div>
<div class="panel-body">
<div class="row">
<div class="col-md-12">
<div class="row">
<div class="col-md-2">
<div class="thumbnail">
<img width="100" height="100" src="img/sam.jpeg" alt="">
<div class="caption">
Reporter: <%= reporter %>
</div>
</div>
</div>
<div class="col-md-10">
<div class="row">
<div class="col-md-12">
<strong>State:</strong> active
</div>
</div>
<div class="row">
<div class="col-md-12">
<strong>Labels:</strong>
<% _.each(tags, function(tag) { %>
<span class="label label-primary"><%= tag %></span>
<% }); %>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div>
<strong>Description:</strong>
<p> <pre><%= body %></pre> </p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<nav>
<ul class="pager">
<li><a id="close_issue" href="#">Close</a></li>
</ul>
</nav>
</script>
<!-- The body of the html page. Single DIV we'll replace with backbone -->
<body>
<div class="issues">
<div class="page-header">
<h1>Issues Tracking</h1>
</div>
<!-- ----------------------------- -->
<!-- Spot on the page we'll update -->
<!-- ----------------------------- -->
<div id="issues-app-target"></div>
</div>
<script src="js/issues.js"></script>
</body>
</html>