summaryrefslogtreecommitdiff
path: root/views/partials/files.ejs
blob: ec61fe2489e037bdf615ce8632e099fcc1c9f3a5 (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
<table class="files" id="files">
  <script class="template" type="text/html">
    <tr class="file">
      <td>
        <a href="{{link}}" title="{{id}}" class="file">{{filename}}</a>
      </td>
      <td class="{{date_class}}">
        {{date}}
      </td>
      <td class="{{date_class}}">
        {{time}}
      </td>
      <td>
        {{size}}
      </td>
      <td class="user">
        <a href="/profile/{{username}}">{{username}}</a>
      </td>
    </tr>
  </script>
  <script class="templateTotal" type="text/html">
    <tr class="total">
      <td colspan="5">
        <div>
          <span>
            <i>sort by</i>
            <a href="#" class="{{nameClass}}" id="sortByName">name</a>
            <a href="#" class="{{dateClass}}" id="sortByDate">date</a>
          </span>
          <span>
            total size: <span class="{{size_class}}">{{size}}</span>
          </span>
        </div>
      </td>
    </tr>
  </script>
</table>