summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2014-09-03 18:46:04 -0400
committerJules Laplace <jules@okfoc.us>2014-09-03 18:46:04 -0400
commit95f62d72945acbac295f2342fd51cea9337d7cb7 (patch)
tree7d2b2a4bacf774e9f673755c088ac76086a106cd /views
parent24029c27aca6b39af70d6db88e7505ecc90646d5 (diff)
lastlog
Diffstat (limited to 'views')
-rw-r--r--views/projects/list-projects.ejs2
-rw-r--r--views/staff/_header.ejs1
-rw-r--r--views/staff/_users.ejs15
-rw-r--r--views/staff/_users_recent.ejs20
-rw-r--r--views/staff/index.ejs11
-rw-r--r--views/staff/users/index.ejs2
6 files changed, 45 insertions, 6 deletions
diff --git a/views/projects/list-projects.ejs b/views/projects/list-projects.ejs
index c78bf9f..c41ae07 100644
--- a/views/projects/list-projects.ejs
+++ b/views/projects/list-projects.ejs
@@ -1,6 +1,6 @@
[[ if (projects.length) { ]]
- <table id="projectList">
+ <table class="projectList">
<tr>
[[ projects.forEach(function(project, i) { ]]
diff --git a/views/staff/_header.ejs b/views/staff/_header.ejs
index 9311948..d726b02 100644
--- a/views/staff/_header.ejs
+++ b/views/staff/_header.ejs
@@ -4,6 +4,7 @@
<title>vvalls | staff</title>
[[ include ../partials/meta ]]
<link rel="stylesheet" href="/assets/javascripts/vendor/bower_components/jquery-jsonview/dist/jquery.jsonview.css"></script>
+ <link rel="stylesheet" href="/assets/stylesheets/staff.css"></script>
</head>
<body class="loading">
<div class="rapper page">
diff --git a/views/staff/_users.ejs b/views/staff/_users.ejs
new file mode 100644
index 0000000..ab8c9b3
--- /dev/null
+++ b/views/staff/_users.ejs
@@ -0,0 +1,15 @@
+<table id="users">
+[[ users.forEach(function(user){ ]]
+ <tr>
+ <td>
+ <a href="/staff/users/[[- user.username ]]">[[- user.username ]]</a>
+ </td>
+ <td>
+ [[- user.displayName ]]
+ </td>
+ <td>
+ [[- user.last_seen ]]
+ </td>
+ </tr>
+[[ }) ]]
+</table>
diff --git a/views/staff/_users_recent.ejs b/views/staff/_users_recent.ejs
new file mode 100644
index 0000000..ff3fd55
--- /dev/null
+++ b/views/staff/_users_recent.ejs
@@ -0,0 +1,20 @@
+<table id="users">
+ <tr>
+ <th colspan="4">
+ recent users
+ </th>
+ </tr>
+[[ users.forEach(function(user){ ]]
+ <tr>
+ <td>
+ <a href="/staff/users/[[- user.username ]]">[[- user.username ]]</a>
+ </td>
+ <td>
+ [[- user.displayName ]]
+ </td>
+ <td>
+ [[- user.last_seen ]]
+ </td>
+ </tr>
+[[ }) ]]
+</table>
diff --git a/views/staff/index.ejs b/views/staff/index.ejs
index fbe67a7..0cb67da 100644
--- a/views/staff/index.ejs
+++ b/views/staff/index.ejs
@@ -1,10 +1,11 @@
[[ include _header ]]
<h1>Staff Area</h1>
- <!--
- - recent users
- - rooms list
- - projects list
- -->
+
+<b>users:</b> [[- userCount ]]
+<b>projects:</b> [[- projectCount ]]
+
+<br>
+[[ include _users_recent ]]
[[ include _footer ]] \ No newline at end of file
diff --git a/views/staff/users/index.ejs b/views/staff/users/index.ejs
index 62c0ae2..fb072d8 100644
--- a/views/staff/users/index.ejs
+++ b/views/staff/users/index.ejs
@@ -1,4 +1,6 @@
[[ include ../_header ]]
<h1>Users</h1>
+[[ include _users ]]
+
[[ include ../_footer ]]