From 8bf2ead240f5daeac98b3a92c81f37b77fd4ddbd Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Thu, 4 Sep 2014 16:24:00 -0400 Subject: make users admins --- views/staff/_header.ejs | 1 + views/staff/_users.ejs | 6 ++++ views/staff/_users_recent.ejs | 8 +++++ views/staff/users/show.ejs | 70 +++++++++++++++++++++++++++++++++++++++++++ 4 files changed, 85 insertions(+) (limited to 'views') diff --git a/views/staff/_header.ejs b/views/staff/_header.ejs index 1880c98..3bbf4f1 100644 --- a/views/staff/_header.ejs +++ b/views/staff/_header.ejs @@ -5,6 +5,7 @@ [[ include ../partials/meta ]] +
diff --git a/views/staff/_users.ejs b/views/staff/_users.ejs index ab8c9b3..344ee0c 100644 --- a/views/staff/_users.ejs +++ b/views/staff/_users.ejs @@ -1,12 +1,18 @@ [[ users.forEach(function(user){ ]] + + diff --git a/views/staff/_users_recent.ejs b/views/staff/_users_recent.ejs index ff3fd55..e55fe28 100644 --- a/views/staff/_users_recent.ejs +++ b/views/staff/_users_recent.ejs @@ -6,9 +6,17 @@ [[ users.forEach(function(user){ ]] + + 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 @@
+
+
+
[[- user.username ]] [[- user.displayName ]] [[- user.last_seen ]]
+ [[ if (user.photo) { ]] +
+ [[ } ]] +
[[- user.username ]] [[- user.displayName ]]
+ + + + + + +
+
+
+ [[- profile.username ]] + + [[- profile.displayName ]] +
+
+ + + + + + + + + + + + + + + + + + + + + + +
+ location + + [[- profile.location ]] +
+ last seen + + [[- profile.last_seen ]] +
+ ip addresses + + [[- profile.created_ip ]] + [[- profile.last_ip ]] +
+ is admin? + + [[- profile.isStaff ? "yes" : "no" ]] +
+ + [[ if (String(user._id) != String(profile._id)) { ]] + + [[ } ]] +
+

[[- profileJSON ]]
[[ include ../_footer ]] + \ No newline at end of file -- cgit v1.2.3-70-g09d2