summaryrefslogtreecommitdiff
path: root/views/staff/media/show.ejs
blob: 9d05cb91d81a733ec77ad14b12abfb3e707807d5 (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
39
40
[[ include ../_header ]]

	<h1>Media: [[- media.type ]]</h1>

[[ include ../_nav ]]
  
  <hr>

  <center>
    <div id="media-embed" data-type="[[- media.type ]]" data-token="[[- media.token ]]" data-url="[[- media.url ]]" data-width="[[- media.width ]]" data-height="[[- media.height ]]" style="width: [[- media.width ]]px; height: [[- media.height ]]px">
    </div>
  </center>
  
  <table>
    <tr>
      <td>
        uploaded by
      </td>
      <td>
        [[ if (media.user.photo) { ]]
          <a href="/staff/users/[[- media.user.username ]]"><div style="background-image:url([[- media.user.photo ]])" class="avatar"></div></a>
        [[ } ]]
      </td>
      <td>
        <a href="/staff/users/[[- media.user.username ]]">[[- media.user.username ]]</a>
      </td>
      <td>
        [[- media.user.displayName ]]
      </td>
      <td class="editLinks">
        <a href="/profile/[[- media.user.username ]]">[view profile]</a>
      </td>
    </tr>
  </table>

  <div class="json">
    [[- mediaJSON ]]
  </div>

[[ include ../_footer ]]