diff options
| author | Jules Laplace <jules@okfoc.us> | 2014-09-10 09:26:36 -0400 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2014-09-10 09:26:36 -0400 |
| commit | fcc74fbe841d542da252d5688e7b90b1e2799224 (patch) | |
| tree | 5a6cee797637fa4cf3ca2dd57e5cbb0669cecd57 /views/staff/users | |
| parent | 6663ede5b27c2d4aa0caa1072463b97af8de8b57 (diff) | |
| parent | 6d2746ad8a24f1ac3da5e9cb2ed452b73da20b71 (diff) | |
merge
Diffstat (limited to 'views/staff/users')
| -rw-r--r-- | views/staff/users/index.ejs | 18 | ||||
| -rw-r--r-- | views/staff/users/media.ejs | 18 | ||||
| -rw-r--r-- | views/staff/users/show.ejs | 103 | ||||
| -rw-r--r-- | views/staff/users/show_404.ejs | 13 |
4 files changed, 152 insertions, 0 deletions
diff --git a/views/staff/users/index.ejs b/views/staff/users/index.ejs new file mode 100644 index 0000000..f14d666 --- /dev/null +++ b/views/staff/users/index.ejs @@ -0,0 +1,18 @@ +[[ include ../_header ]] + + <h1>Users</h1> + + <nav> + <a href="/staff">home</a> + <a href="/staff/users">users</a> + <a href="/staff/projects">projects</a> + <a href="/staff/media">media</a> + </nav> + + <hr> + +[[ include ../_pagination ]] +[[ include ../_users ]] +[[ include ../_pagination ]] + +[[ include ../_footer ]] diff --git a/views/staff/users/media.ejs b/views/staff/users/media.ejs new file mode 100644 index 0000000..b13e5fb --- /dev/null +++ b/views/staff/users/media.ejs @@ -0,0 +1,18 @@ +[[ include ../_header ]] + + <h1>Users</h1> + + <nav> + <a href="/staff">home</a> + <a href="/staff/users">users</a> + <a href="/staff/projects">projects</a> + <a href="/staff/media">media</a> + </nav> + + <hr> + +[[ include ../_pagination ]] +[[ include ../_media ]] +[[ include ../_pagination ]] + +[[ include ../_footer ]] diff --git a/views/staff/users/show.ejs b/views/staff/users/show.ejs new file mode 100644 index 0000000..8e9b447 --- /dev/null +++ b/views/staff/users/show.ejs @@ -0,0 +1,103 @@ +[[ include ../_header ]] + <h1>User: [[- profile.username ]]</h1> + + <nav> + <a href="/staff">home</a> + <a href="/staff/users">users</a> + <a href="/staff/projects">projects</a> + <a href="/staff/media">media</a> + </nav> + + <hr> + + <table id="users"> + <tr> + <td rowspan="999" valign="top"> + <a href="/staff/users/[[- profile.username ]]"><div style="background-image:url([[- profile.photo ]])" class="avatar"></div></a> + </td> + <td> + <a href="/staff/users/[[- profile.username ]]">[[- profile.username ]]</a> + </td> + <td> + [[- profile.displayName ]] + </td> + <td class="editLinks"> + <a href="/profile/[[- profile.username ]]">[view profile]</a> + <a href="/staff/users/[[- profile.username ]]/media">[view media]</a> + </td> + </tr> + </table> + + <h2>Profile</h2> + + <table> + <tr> + <th> + location + </th> + <td> + [[- profile.location ]] + </td> + </tr> + <tr> + <th> + last seen + </th> + <td> + [[- profile.last_seen ]] + </td> + </tr> + <tr> + <th> + projects + </th> + <td> + [[- profile.projectCount ]] + </td> + </tr> + <tr> + <th> + media + </th> + <td> + [[- profile.mediaCount ]] <a href="/staff/users/[[- profile.username ]]/media">[show]</a> + </td> + </tr> + <tr> + <th> + ip addresses + </th> + <td> + [[- profile.created_ip ]] + [[- profile.last_ip ]] + </td> + </tr> + <tr> + <th> + is admin? + </th> + <td id="is-staff"> + [[- profile.isStaff ? "yes" : "no" ]] + </td> + </tr> + </table> + + <br><br> + <div id="actions"> + [[ if (String(user._id) != String(profile._id)) { ]] + <button id="toggle-staff" data-isStaff="[[- !! profile.isStaff ]]">Make Staff</button> + [[ } ]] + </div> + + <h2>Projects</h2> + + [[- include ../_projects ]] + + <br> + <br> + + <div class="json"> + [[- profileJSON ]] + </div> + +[[ include ../_footer ]] diff --git a/views/staff/users/show_404.ejs b/views/staff/users/show_404.ejs new file mode 100644 index 0000000..bcd0271 --- /dev/null +++ b/views/staff/users/show_404.ejs @@ -0,0 +1,13 @@ +[[ include ../_header ]] + <h1>User not found</h1> + + <nav> + <a href="/staff">home</a> + <a href="/staff/users">users</a> + <a href="/staff/projects">projects</a> + <a href="/staff/media">media</a> + </nav> + + <hr> + +[[ include ../_footer ]] |
