summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
Diffstat (limited to 'views')
-rw-r--r--views/staff/media/show.ejs31
1 files changed, 31 insertions, 0 deletions
diff --git a/views/staff/media/show.ejs b/views/staff/media/show.ejs
index 8257307..76dcd32 100644
--- a/views/staff/media/show.ejs
+++ b/views/staff/media/show.ejs
@@ -11,4 +11,35 @@
<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 ]]