summaryrefslogtreecommitdiff
path: root/views
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2015-02-02 18:16:09 -0500
committerJules Laplace <jules@okfoc.us>2015-02-02 18:16:09 -0500
commit1169b347c1f339b64f30466004a3f9a06ef7e117 (patch)
tree054aa08f61848abcd9bd2a699d2dc0ac31f25b56 /views
parent22447d0ef21f8d4488ea1baab073801d8407acab (diff)
find users by initial
Diffstat (limited to 'views')
-rw-r--r--views/staff/_users.ejs10
1 files changed, 8 insertions, 2 deletions
diff --git a/views/staff/_users.ejs b/views/staff/_users.ejs
index 1af47aa..9caf893 100644
--- a/views/staff/_users.ejs
+++ b/views/staff/_users.ejs
@@ -1,12 +1,18 @@
<nav class="subnav">
sort by <a href="?sort=date">date</a> ... <a href="?sort=last_seen">recent</a> ... <a href="?sort=name">name</a> ... jump to a letter:
<span class="alphabet">
- [[ "abcdefghijklmnopqrstuvwxyz".split("").forEach(function(letter){ ]]
- <a href="?sort=name&letter=[[- letter ]]">[[- letter.toUpperCase() ]]</a>
+ [[ "abcdefghijklmnopqrstuvwxyz?".split("").forEach(function(letter){ ]]
+ <a href="?sort=name&initial=[[- letter ]]">[[- letter.toUpperCase() ]]</a>
[[ }) ]]
</span>
</nav>
+[[ if (! users.length || opt.error) { ]]
+<div class="error">
+ [[- opt.error ]]
+</div>
+[[ } ]]
+
<table id="users">
[[ users.forEach(function(user){ ]]
<tr>