We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef4737a commit 6488d87Copy full SHA for 6488d87
views/posts/show.ejs
@@ -26,11 +26,13 @@
26
</div>
27
28
29
-
30
- <%if(post.comments.length!=0){%>
31
- <h5>Comments</h5>
32
- <%for(var i=0;i<post.comments.length;i++){%>
33
- <%if(post.comments[i].parents.length === 1){%>
+</div>
+
+<%if(post.comments.length!=0){%>
+ <h5 class="center-align">Comments</h5>
+ <%for(var i=0;i<post.comments.length;i++){%>
34
+ <%if(post.comments[i].parents.length === 1){%>
35
+ <div class="container">
36
<div class="row">
37
<div class="col s12">
38
<div class="card">
@@ -93,13 +95,11 @@
93
95
94
96
<%}%>
97
98
99
- </div>
+ </div>
100
101
102
- <%}%>
103
104
-</div>
+<%}%>
105
<%-include("../partials/footer.ejs")%>
0 commit comments