-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
248 lines (234 loc) · 9.4 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
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no" />
<link rel="stylesheet" href="assets/css/ol.css" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css" />
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css" />
<title>theindiapp</title>
<style type="text/css">
body { overflow: hidden; }
.navbar-offset { margin-top: 50px; }
#map { position: absolute; top: 50px; bottom: 0px; left: 0px; right: 0px; }
#map .ol-zoom { font-size: 1.2em; }
.zoom-top-opened-sidebar { margin-top: 5px; }
.zoom-top-collapsed { margin-top: 45px; }
.mini-submenu{
display:none;
background-color: rgba(255, 255, 255, 0.46);
border: 1px solid rgba(0, 0, 0, 0.9);
border-radius: 4px;
padding: 9px;
/*position: relative;*/
width: 42px;
text-align: center;
}
.mini-submenu-left {
position: absolute;
top: 60px;
left: .5em;
z-index: 50;
}
#map { z-index: 35; }
.sidebar { z-index: 45; }
.main-row { position: relative; top: 0; }
.mini-submenu:hover{
cursor: pointer;
}
#sidebar { overflow-y: auto; }
.slide-submenu{
background: rgba(0, 0, 0, 0.45);
display: inline-block;
padding: 0 8px;
border-radius: 4px;
cursor: pointer;
}
.search {
padding:8px 15px;
background:rgba(50, 50, 50, 0.2);
border:0px solid #dbdbdb;
}
</style>
<script id="home" type="template" data-title="Home">
</script>
<script id="search" type="template" data-title="Search">
</script>
<script id="issuelist" type="template" data-title="Issues">
</script>
<script id="issuedetails" type="template" data-title="Issue Details">
</script>
<script type="text/javascript" src="assets/js/ol.js"></script>
<script type="text/javascript" src="//code.jquery.com/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min.js"></script>
<script type="text/javascript" src="assets/js/parse-1.3.2.min.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.8.4/moment.js"></script>
<script type="text/javascript" src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script>
<script type="text/javascript" src="app/app.js"></script>
<script id="issue-list" type="template">
<h3>Search Results (<%= issues.length %>)</h3>
<div class="list-group">
<% for(var i = 0; i < issues.length; i++) { %>
<div class="list-group-item issue-item" data-issue-id="<%= issues[i].id %>" data-issue-title="<%= issues[i].get('title') %>" data-issue-content="<%= issues[i].get('content') %>">
<div class="media">
<% var title = issues[i].titleShort() %>
<% if (title != null) { %>
<strong class="media-left"> <%= title %> </strong>
<% } else { %>
<strong class="media-left">(Untitled)</strong>
<% } %>
<p class="media-right"> <%= issues[i].getTimeSince() %> </p>
</div>
<p> <%= issues[i].descShort() %> </p>
</div>
<% } %>
</div>
</script>
<script id="issue-comment" type="template">
<input type="button" onclick="" value="< Go Back" />
<% var title = issue.titleShort() %>
<% if (title != null) { %>
<h2 class="media-left"> <%= title %> </h2>
<% } else { %>
<h2 class="media-left">(Untitled)</h2>
<% } %>
<p class="media-right"> <%= issue.getTimeSince() %> </p>
<p><%= issue.get('content') %></p>
<% if(comments.length > 0) { %>
<h3>Comments (<%= comments.length %>)</h3>
<div class="list-group">
<% for(var i = 0; i < comments.length; i++) { %>
<div class="list-group-item">
<div class="media">
<p><%= comments[i].get("comment") %></p>
</div>
</div>
<% } %>
</div>
<% } else { %>
<h3> Comments </h3>
<p> There are no comments. </p>
<% } %>
<% if(issue.isLoggedIn()) { %>
<form class="form-horizontal">
<fieldset>
</div>
<!-- Textarea -->
<div class="form-group">
<label class="col-md-4 control-label" for="txtComment">Comment</label>
<div class="col-md-4">
<textarea class="form-control" id="txtComment" name="txtComment"></textarea>
</div>
</div>
<!-- Button -->
<div class="form-group">
<label class="col-md-4 control-label" for="btnMakeComment"></label>
<div class="col-md-4">
<button id="btnMakeComment" name="btnMakeComment" class="btn btn-primary">Make Comment</button>
</div>
</div>
</fieldset>
</form>
<% } else { %>
You must be logged in to make a comment.
<% } %>
</script>
</head>
<body>
<div class="container">
<nav class="navbar navbar-fixed-top navbar-default navbar-inverse" role="navigation">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">TheIndiApp</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Link</a></li>
<li><a href="#">Link</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
<li class="divider"></li>
<li><a href="#">One more separated link</a></li>
</ul>
</li>
</ul>
<form class="navbar-form navbar-left" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
<ul class="nav navbar-nav navbar-right">
<li><a href="#">Link</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href="#">Action</a></li>
<li><a href="#">Another action</a></li>
<li><a href="#">Something else here</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</li>
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
</div>
</nav>
<div class="navbar-offset"></div>
<div id="map">
</div>
<div class="row main-row">
<div class="col-sm-4 col-md-3 sidebar sidebar-left pull-left">
<div class="panel-group sidebar-body" id="accordion-left">
<div class="panel panel-default">
<div class="panel-heading">
<h4 class="panel-title">
<a data-toggle="collapse" href="#layers">
<i class="fa fa-list-alt"></i>
Layers
</a>
<span class="pull-right slide-submenu">
<i class="fa fa-chevron-left"></i>
</span>
</h4>
</div>
<div id="sidebar" class="panel-body">
<!-- Select Multiple -->
<div class="form-group">
<label class="col-md-4 control-label" for="qryIssueTags">Tags</label>
<div class="col-md-8">
<select id="qryIssueTags" name="qryIssueTags" class="form-control issue-tag-list" multiple="multiple">
</select>
</div>
</div>
<button id="btnSearch" value="Search...">Search</button>
<div id="issuesDiv" class="panel-collapse collapse in">
</div>
</div>
</div>
</div>
</div>
</div>
<div class="mini-submenu mini-submenu-left pull-left">
<i class="fa fa-list-alt"></i>
</div>
</div>
</body>
</html>