diff options
Diffstat (limited to 'views/staff/users/show.ejs')
| -rw-r--r-- | views/staff/users/show.ejs | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/views/staff/users/show.ejs b/views/staff/users/show.ejs index d306443..2315043 100644 --- a/views/staff/users/show.ejs +++ b/views/staff/users/show.ejs @@ -9,8 +9,78 @@ <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="/staff/users/[[- profile.username ]]">[view profile]</a> + </td> + </tr> + </table> + <br> + <table style="margin-left: 50px;"> + <tr> + <th> + location + </th> + <td> + [[- profile.location ]] + </td> + </tr> + <tr> + <th> + last seen + </th> + <td> + [[- profile.last_seen ]] + </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> + </tr> + <tr> + <th> + </th> + <td id="actions"> + [[ if (String(user._id) != String(profile._id)) { ]] + <button id="toggle-staff" data-isStaff="[[- !! profile.isStaff ]]">Make Staff</button> + [[ } ]] + </td> + </tr> + </table> + <br><br> <div class="json"> [[- profileJSON ]] </div> [[ include ../_footer ]] +<style> +#actions button { + float: none; + width: auto; +} +} +</style>
\ No newline at end of file |
