summaryrefslogtreecommitdiff
path: root/views/partials/comments.ejs
blob: 14bb9bfa50af574ecc329a4c28e70c6f34e17ebb (plain)
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
<table id="comments">
  <script class="template" type="text/html">
    <tr>
      <td class="user">
        <a href="/profile/{{username}}"><div class="avatar" style="background-image:url(/data/profile/{{username}}.jpg)"></div></a>
        <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>

<table id="comment_form">
  <tr>
    <td>
      <form>
        <textarea required name="comment" placeholder="Enter your comment"></textarea>
        <div class="inputs">
          <input name="files" type="file" multiple>
          <input type="submit" value="POST" />
        </div>
        <div class='errors'></div>
      </form>
    </td>
  </tr>
</table>