-
Notifications
You must be signed in to change notification settings - Fork 123
/
single.html
executable file
·46 lines (46 loc) · 1.72 KB
/
single.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
<div class="row projects">
<div class="col-sm-12">
<h2>{{post.title.rendered}}</h2>
</div>
</div>
<div class="row">
<div class="col-sm-8" ng-bind-html="post.content.rendered | to_trusted"></div>
</div>
<div class="row">
<div class="col-sm-8">
<div class="row-fliud">
<div class="col-sm-12">
<div ng-hide="post.comments.length">
<h3>No Comments</h3>
</div>
<h3 ng-show="post.comments.length">Comments</h3>
<article ng-repeat="comment in post.comments" class="comment">
<blockquote>
<p ng-bind-html="comment.comment_content | to_trusted "></p>
</blockquote>
<span class="author">- {{comment.comment_author}} </span>
</article>
</div>
</div>
</div>
<div class="col-sm-4 sidebar">
<section>
<h4>Add Comment</h4>
<form ng-submit="savecomment()" name="CommentForm" id="comment-form">
<div class="form-group">
<input type="text" id="name" name="name" ng-model="openComment.author_name" placeholder="Name" required/>
<span ng-show="CommentForm.name.$error.required" class="help-block">Required</span>
</div>
<div class="form-group">
<input type="email" name="email" id="email" ng-model="openComment.author_email" placeholder="Email Address" required />
<span ng-show="CommentForm.email.$error.required" class="help-block">Required</span>
</div>
<div class="form-group">
<textarea required name="comment" ng-model="openComment.content" placeholder="Your Comment..."></textarea><br/>
<span ng-show="CommentForm.comment.$error.required" class="help-block">Required</span>
</div>
<input class="btn btn-primary" type="submit" value="Add Comment" />
</form>
</section>
</div>
</div>