summaryrefslogtreecommitdiff
path: root/views/staff
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-09-05 13:27:48 -0400
committerJules Laplace <jules@okfoc.us>2014-09-05 13:27:48 -0400
commit4c3720f1ac1ce86fd54fcd4887aab6d31bcd68c2 (patch)
treee230671b1ae6ef373f07d9f74278c57dac409a05 /views/staff
parentcccacd39a49f48a9aefe39e0e0bb33529ca80410 (diff)
media view
Diffstat (limited to 'views/staff')
-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 ]]