-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtag.html
More file actions
243 lines (227 loc) · 14.7 KB
/
tag.html
File metadata and controls
243 lines (227 loc) · 14.7 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
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
<!DOCTYPE html>
<html lang="pt-BR">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Nya Chan</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.5.0/css/font-awesome.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/jasny-bootstrap/3.1.3/css/jasny-bootstrap.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/angular-loading-bar/0.9.0/loading-bar.min.css" type="text/css" media="all" />
<link rel="stylesheet" href="../lib/Bootstrap-multiselect/bootstrap-multiselect.css" type="text/css"/>
<link rel="stylesheet" href="https://unpkg.com/angular-toastr/dist/angular-toastr.css" />
<link rel="stylesheet" href="../lib/file-input/fileinput.min.css" media="all" type="text/css" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.9.0/css/lightbox.min.css" integrity="sha256-iU/Wh1HMAs/NgpurDAu14e7S3FkllcJ5aPnpPDdnO6c=" crossorigin="anonymous" />
<!-- Meu CSS -->
<link href="../css/struct.css" rel="stylesheet" type="text/css">
<link href="../css/styles.css" rel="stylesheet" type="text/css">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
.alert
{
position: relative;
z-index: 99;
}
</style>
</head>
<body ng-app = "nya-chan" ng-controller= "tagController" data-ng-init="init()" ng-cloak>
<div id="loading-bar-container"></div>
<nav class="navbar navbar-default navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<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="http://nyachan-server.herokuapp.com/">Nya Chan</a>
</div>
<div id="navbar" class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<li id="newThreadButton" class="btn" data-toggle="modal" data-target="#newThreadModal"><a>New Thread <i class="fa fa-plus"></i></a></li>
<li class="btn dropdown-toggle" ng-if="isUserLogged" type="button" id="dropdownMenu1" data-toggle="dropdown" aria-haspopup="true" aria-expanded="true"><a><img ng-src="{{userImage}}" class="img-circle" height="20px"/> <span class="caret"></span></a></li>
<ul class="dropdown-menu" aria-labelledby="dropdownMenu1">
<li><a href="#">Signed in as:</a></li>
<li><a href="#">{{userName}}</a></li>
<li role="separator" class="divider"></li>
<li><a href="/profile">Profile</a></li>
<li><a ng-click="logoutUser()" href="#">Logout</a></li>
</ul>
</ul>
</div>
</div>
</nav>
<div class="container">
<h1 class="" id="tagTitle" value="{{tag}}"><a ng-href="http://nyachan-server.herokuapp.com/archived/{{tag}}"><i class="fa fa-archive"></i></a> {{tagName}}</h1>
<div>
<div ng-repeat="t in threads">
<div class="panel panel-default">
<div class="panel-heading">
<h3 class="panel-title">
{{t.subject}} ~ <span class="label id"><a ng-href="http://nyachan-server.herokuapp.com/thread/{{t._id}}">{{t._id}}</a> by {{t.userName}} on {{ t.date | date: 'MMM d, y H:mm:ss' : 'time_zone' }}</span>
<a ng-repeat="a in t.tags" ng-href="http://nyachan-server.herokuapp.com/tag/{{a}}"><span class="label label-nya">{{a}}</span></a>
<button type="button" ng-if="isUserAdmin" class="btn btn-danger pull-right" title="Delete Thread" ng-click="deleteThread(t._id)"><i class="fa fa-trash-o"></i></button>
<button type="button" class="btn btn-danger pull-right" title="Report Post" ng-click="reportPost(t._id, null)"><i class="fa fa-exclamation-circle"></i></button>
</h3>
</div>
<div class="panel-body">
<div class="col-md-4 image-body" ng-show="t.file[0] !== undefined">
<carousel>
<slide ng-repeat="f in t.file" active="slide.active">
<a href="{{f.source}}" data-title="{{f.name}}" data-lightbox="{{t._id}}">
<img ng-src="{{f.thumb}}" class="img-responsive some-image"/>
</a>
</slide>
</carousel>
</div>
<div class="content-body" ng-class="t.file[0] === undefined ? 'col-md-12' : 'col-md-8'">
<button type="button" title="Download Files" ng-show="t.file[0] !== undefined" class="btn btn-danger pull-right" ng-click="downloadFiles(t.file)"><i class="fa fa-download"></i></button>
{{t.body}}
</div>
</div>
<div class="panel-footer">
<ul class="list-group">
<li class="list-group-item panel" ng-repeat="p in t.post" id="{{p.idPost}}">
<div class="panel-heading">{{p.title}} - <span class="label id">{{p.idPost}} by {{p.userName}} on {{ p.date | date: 'MMM d, y H:mm:ss' : 'time_zone' }}</span>
</div>
<div class="panel-body">
<div class="col-md-3 image-body" ng-show="p.file[0] !== undefined">
<carousel>
<slide ng-repeat="f in p.file" active="slide.active">
<a href="{{f.source}}" data-title="{{f.name}}" data-lightbox="{{p.idPost}}">
<img ng-src="{{f.thumb}}" class="img-responsive some-image"/>
</a>
</slide>
</carousel>
</div>
<div class="content-body" ng-class="p.file[0] === undefined ? 'col-md-12' : 'col-md-9'">
<button type="button" title="Download Files" ng-show="p.file[0] !== undefined" class="btn btn-danger pull-right" ng-click="downloadFiles(p.file)"><i class="fa fa-download"></i></button>
<button type="button" class="btn btn-danger pull-right" title="Report Post" ng-click="reportPost(p.threadid, p.idPost)"><i class="fa fa-exclamation-circle"></i></button>
{{p.body}}
</div>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>
</div>
<footer class="footer text-center">
<div class="btn-group" role="group">
<button type="button" class="btn btn-default btn-board"><a href="https://nyachan-server.herokuapp.com/tag/a">#a</a></button>
<button type="button" class="btn btn-default btn-board"><a href="https://nyachan-server.herokuapp.com/tag/b">#b</a></button>
<button type="button" class="btn btn-default btn-board"><a href="https://nyachan-server.herokuapp.com/tag/c">#c</a></button>
<button type="button" class="btn btn-default btn-board"><a href="https://nyachan-server.herokuapp.com/tag/g">#g</a></button>
<button type="button" class="btn btn-default btn-board"><a href="https://nyachan-server.herokuapp.com/tag/h">#h</a></button>
<button type="button" class="btn btn-default btn-board"><a href="https://nyachan-server.herokuapp.com/tag/m">#m</a></button>
<button type="button" class="btn btn-default btn-board"><a href="https://nyachan-server.herokuapp.com/tag/p">#p</a></button>
<button type="button" class="btn btn-default btn-board"><a href="https://nyachan-server.herokuapp.com/tag/t">#t</a></button>
<button type="button" class="btn btn-default btn-board"><a href="https://nyachan-server.herokuapp.com/tag/tv">#tv</a></button>
<button type="button" class="btn btn-default btn-board"><a href="https://nyachan-server.herokuapp.com/tag/v">#v</a></button>
</div>
</footer>
<div class="modal fade" id="newThreadModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div id="task-modal" class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title">Create Thread</h4>
</div>
<div class="modal-body">
<div class="progress">
<div id="loader" class="progress-bar progress-bar-striped active" role="progressbar" style="width: 0%;" aria-valuenow="25" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<form id="comment-form" name="comment-form" class="form-horizontal" method="post" enctype="multipart/form-data">
<div class="form-group">
<label class="col-sm-2 control-label">Subject</label>
<div class="col-sm-10">
<input type="text" class="form-control" ng-model="post.title" placeholder="Subject" id="title">
</div>
</div>
<div class="form-group" id="comment-group">
<label class="col-sm-2 control-label">Comment</label>
<div class="col-sm-10">
<textarea class="form-control" rows="3" placeholder="Comment" ng-model="post.body" id="body" name="comment" id="comment-area" required></textarea>
</div>
</div>
<div class="form-group" id="file-group">
<label class="col-sm-2 control-label">File</label>
<div class="fileinput fileinput-new" data-provides="fileinput">
<span class="btn btn-default btn-file">
<span class="fileinput-new">
Select file
</span>
<span class="fileinput-exists">
Change
</span>
<input type="file" name="..." ng-model="post.file" id="file" name="file[]" class="file file-loading" multiple accept="image/gif, image/jpg, image/png, image/bmp, image/jpeg, application/pdf, video/webm">
</span>
<span class="fileinput-filename"></span>
<a href="#" class="close fileinput-exists" data-dismiss="fileinput" style="float: none">×</a>
</div>
</div>
<div>
<select id="selectTags" multiple="multiple" required>
<option value="a">Anime & Mangá</option>
<option value="c">Quadrinhos & Desenhos Animados</option>
<option value="g">Gif & Webm</option>
<option value="h">História e Ciências Humanas</option>
<option value="m">Música</option>
<option value="t">Tecnologia</option>
<option value="tv">Televisão & Filmes</option>
<option value="v">Vídeo Games</option>
<option value="b">Aleatório</option>
<option value="p">Politicamente Incorreto</option>
</select>
</div>
<div
vc-recaptcha
theme="'light'"
key="model.key"
on-create="setWidgetId(widgetId)"
on-success="setResponse(response)"
on-expire="cbExpiration()"
></div>
</form>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
<button type="submit" ng-click="createThread(post)" class="btn btn-nya post-button">Post</button>
</div>
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<!-- Angular JS -->
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.5.0/angular-cookies.js"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js" integrity="sha384-0mSbJDEHialfmuBBQP6A4Qrprq5OVfW37PRR3j5ELqxss1yVqOtnepnHVP9aJ7xS" crossorigin="anonymous"></script>
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/angular-loading-bar/0.9.0/loading-bar.min.js"></script>
<script type="text/javascript" src="../lib/Bootstrap-multiselect/bootstrap-multiselect.js"></script>
<script src="https://unpkg.com/angular-toastr/dist/angular-toastr.tpls.js"></script>
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/angular-ui-bootstrap/0.10.0/ui-bootstrap-tpls.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lightbox2/2.9.0/js/lightbox.min.js" integrity="sha256-9r7DHolfe5aoH+bUj4FEqRBq2tmaIXBxOYUZFalCjSE=" crossorigin="anonymous"></script>
<!-- Kartik -->
<script src="../lib/file-input/fileinput.min.js"></script>
<!--FileSavers-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/FileSaver.js/1.3.3/FileSaver.min.js" integrity="sha256-FPJJt8nA+xL4RU6/gsriA8p8xAeLGatoyTjldvQKGdE=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip/3.1.3/jszip.min.js" integrity="sha256-RbP/rbx4XeYJH6eYUniR63Jk5NEV48Gjestg49cNSWY=" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jszip-utils/0.0.2/jszip-utils.min.js" integrity="sha256-AIk6chbus7IS5RVpqSNV1X7Qihbi1YC0lOLuUXQZ+mw=" crossorigin="anonymous"></script>
<script src="../js/app.js"></script>
<script src="../js/tag.js"></script>
<script src="../js/script.js"></script>
<script src="../js/kartik-script.js"></script>
<script src="../js/angular-recaptcha.min.js"></script>
</body>
</html>