diff options
| author | Jules Laplace <jules@okfoc.us> | 2015-02-02 18:16:09 -0500 |
|---|---|---|
| committer | Jules Laplace <jules@okfoc.us> | 2015-02-02 18:16:09 -0500 |
| commit | 1169b347c1f339b64f30466004a3f9a06ef7e117 (patch) | |
| tree | 054aa08f61848abcd9bd2a699d2dc0ac31f25b56 /views | |
| parent | 22447d0ef21f8d4488ea1baab073801d8407acab (diff) | |
find users by initial
Diffstat (limited to 'views')
| -rw-r--r-- | views/staff/_users.ejs | 10 |
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> |
