summaryrefslogtreecommitdiff
path: root/views/partials/comments.ejs
diff options
context:
space:
mode:
Diffstat (limited to 'views/partials/comments.ejs')
-rw-r--r--views/partials/comments.ejs23
1 files changed, 23 insertions, 0 deletions
diff --git a/views/partials/comments.ejs b/views/partials/comments.ejs
new file mode 100644
index 0000000..97d4cea
--- /dev/null
+++ b/views/partials/comments.ejs
@@ -0,0 +1,23 @@
+<table id="comments" width="450">
+ <script class="template" type="text/html">
+ <tr>
+ <td class="user">
+ <a href="/profile/{{username}}"><img src="//www.carbonpictures.com/bucky/data/profile/.thumb/al.{{username}}.jpg"></a><br>
+ <a href="/profile/{{username}}">{{username}}</a>
+ </td>
+ <td colspan="2" class="comment">
+ <div>
+ {{comment}}
+ </div>
+ <span class="date">
+ {{date}} {{time}}
+ </span>
+ <span class="edit-links">
+ <a href="/comment/{{id}}/edit">edit</a> &middot;
+ <a href="/comment/{{id}}/remove">remove</a> &middot;
+ <a href="/comment/{{id}}/reply">reply</a>
+ </span>
+ </td>
+ </tr>
+ </script>
+</table> \ No newline at end of file