-
Notifications
You must be signed in to change notification settings - Fork 4
/
index2.html
212 lines (169 loc) · 9.34 KB
/
index2.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
<!DOCTYPE html>
<html ng-app="twitterCrisis">
<head>
<meta charset="utf-8">
<meta name="description" content="">
<meta name="author" content="">
<link rel="shortcut icon" href="assets/ico/favicon.ico" type="image/x-icon">
<link rel="icon" href="assets/ico/favicon.ico" type="image/x-icon">
<title>CrisisCuration</title>
<link href="css/bootstrap.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet">
<link href="css/popover.css" rel="stylesheet">
<link href="css/colorpicker.css" rel="stylesheet">
<link rel="stylesheet" type="text/css" href="css/layout.css">
<link rel="stylesheet" type="text/css" href="css/styles.css">
<script type="text/javascript" src="js/angular.min.js"></script>
<script type="text/javascript" src="js/angular-route.js"></script>
<script type="text/javascript" src="js/ui-bootstrap-tpls-0.10.0.js"></script>
<script type="text/javascript" src="js/jquery-2.0.3.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/angular-local-storage.js"></script>
<script type="text/javascript" src="js/moment.js"></script>
<script type="text/javascript" src="js/angular-moment.js"></script>
<script type="text/javascript" src="js/angular-sanitize.js"></script>
<script type="text/javascript" src="js/config.js"></script>
<script type="text/javascript" src="js/tweets.js"></script>
<script type="text/javascript" src="js/userInfo.js"></script>
<script type="text/javascript" src="js/tags.js"></script>
<script type="text/javascript" src="js/directives.js"></script>
<script type="text/javascript" src="js/colorpicker.js"></script>
</head>
<body ng-controller="Ctrl" ng-init="withoutCollaborateTools=true">
<!-- Left menu bar -->
<div class="left-menu">
<div class="fix-banner">
<!-- App Name -->
<h4>{{currentCrisis}}</h4>
<div id="user-info">
<p>Welcome {{getUsername()}}!<a ng-click="logout()" class="pull-right logout">Logout</a></p>
</div>
<!-- Add Column button-->
<div class="add-column-area">
<form class="add-column">
<button class="btn btn-primary add-column btn-block btn-huge" ng-click="newColumnSearch()"><i
class="fa fa-search"></i>Add Column
</button>
</form>
</div>
</div>
<div class="pre-scrollable" resize-left-column ng-hide="withoutCollaborateTools">
<!--Tags-->
<div class="tag-list">
<a href="#" ng-click="collapseTag()"><p class="left-menu-title ">Tags
<span class="looksCollapsable">
<i class="pull-right fa fa-chevron-right" ng-show="tagsIsCollapse"></i>
<i class="pull-right fa fa-chevron-down" ng-show="!tagsIsCollapse"></i>
</span>
</p></a>
<!--Form for add tags-->
<div collapse="tagsIsCollapse">
<form ng-submit="TAGS.saveTag(TAGS.tag.newTagName, false); TAGS.tag.newTagName = '' " role='form'>
<div class='form-group'>
<i class="fa fa-circle" style="color: {{TAGS.tag.color}};" colorpicker class="span2" type="text"
ng-model="TAGS.tag.color"></i>
<label class='sr-only' for='new-tag-name'>Tag Name</label>
<input type='text' ng-model="TAGS.tag.newTagName" class='form-control' id='new-tag-name'
placeholder='Enter tag name'>
<button type='submit' class='btn btn-default'>Add</button>
</div>
</form>
<ul class="nav nav-pills nav-stacked dropdown-relative" id="id-tag-list">
<li ng-repeat="tag in TAGS.tags" tag-id="{{tag._id.$oid}}">
<!--enable edit tag-->
<a href="#" ng-dblclick="startEditing(tag);">
<!--color picker-->
<i class="fa fa-circle" style="color: {{tag.color}};" colorpicker
ng-model="TAGS.tags[tag._id.$oid].color"
ng-change="TAGS.editTagColor(tag, TAGS.tags[tag._id.$oid].color)"></i>
<span ng-hide="tag.editing">{{tag.tag_name}}</span>
<form ng-submit="doneEditing('tag',tag)" ng-show="tag.editing" class="edit-tag">
<input ng-model="tag.tag_name" ng-blur="doneEditing('tag', tag)"
ng-focus="tag == editedItem"
id="editTagInputBox" type="text"
class="form-control">
</form>
<span class="badge right">{{ tag.num_instances }}</span>
</a>
<a class="modify-tag right-23" href="#" ng-click="newSearchByTagColumn(tag, 'tags')"
>Search</a>
<a class="modify-tag" href="#" ng-click="checkDeletable(tag, 'tags')"><i
class="fa fa-times"></i></a>
</li>
</ul>
</div>
</div>
<!--User list-->
<div class="user-list">
<a href="#" ng-click="collapseUserlist()"><p class="left-menu-title">User Lists
<span class="looksCollapsable">
<i class="pull-right fa fa-chevron-right" ng-show="UserlistIsCollapse"></i>
<i class="pull-right fa fa-chevron-down" ng-show="!UserlistIsCollapse"></i>
</span>
</p></a>
<!--Form to add user lists-->
<div collapse="UserlistIsCollapse">
<form ng-submit="USER_TAGS.saveTag(USER_TAGS.tag.newTagName, false); USER_TAGS.tag.newTagName = ''"
role='form'>
<div class='form-group'>
<i class="fa fa-stop" style="color: {{USER_TAGS.tag.color}};" colorpicker class="span2"
type="text"
ng-model="USER_TAGS.tag.color"></i>
<label class='sr-only' for='new-userlist-name'>User List Name</label>
<input type='text' ng-model="USER_TAGS.tag.newTagName" class='form-control'
id='new-userlist-name'
placeholder='Enter list name'>
<button type='submit' class='btn btn-default'>Add</button>
</div>
</form>
<ul class="nav nav-pills nav-stacked dropdown-relative" id="id-user-list">
<li ng-repeat="tag in USER_TAGS.tags" tag-id="{{tag._id.$oid}}">
<!--enable edit tag-->
<a href="#" ng-dblclick="startEditing(tag);">
<!--color picker-->
<i class="fa fa-stop" style="color: {{tag.color}};" colorpicker
ng-model="USER_TAGS.tags[tag._id.$oid].color"
ng-change="USER_TAGS.editTagColor(tag, USER_TAGS.tags[tag._id.$oid].color)"></i>
<span ng-hide="tag.editing">{{tag.tag_name}}</span>
<form ng-submit="doneEditing('userList',tag)" ng-show="tag.editing" class="edit-tag">
<input ng-model="tag.tag_name" ng-blur="doneEditing('userList', tag)"
ng-focus="tag == editedItem"
id="editUserListInputBox" type="text"
class="form-control">
</form>
</a>
<!--<a class="modify-tag right-80" href="#" ng-click="openUserListModal(tag)">See List</a>-->
<a class="modify-tag right-23" href="#"
ng-click="newSearchByTagColumn(tag, 'user_tags')">Search</a>
<a class="modify-tag" href="#" ng-click="checkDeletable(tag, 'user_tags')"><i
class="fa fa-times"></i></a>
<!--; deleteLocalTag('userList',tag)-->
</li>
</ul>
</div>
</div>
<!-- Collaborator List -->
<div class="collab">
<a href="#" ng-click="collapseCollab()"><p class="left-menu-title">Collaborators
<span class="looksCollapsable">
<i class="pull-right fa fa-chevron-right" ng-show="CollabIsCollapse"></i>
<i class="pull-right fa fa-chevron-down" ng-show="!CollabIsCollapse"></i>
</span>
</p></a>
<div collapse="CollabIsCollapse">
<ul ng-repeat="user in clients" class="nav nav-pills nav-stacked" id="collab-list">
<li><a>{{user.Name}} - active</a></li>
</ul>
</div>
</div>
</div>
</div>
<!-- End of: Left menu bar-->
<!-- Content: Tweet stream columns -->
<div class="content">
<column-stream colname="all" col-id=0></column-stream>
<!-- Check column.html and tweet.html -->
</div>
<!-- End of: Tweet stream columns -->
</body>
</html>