summaryrefslogtreecommitdiff
path: root/views/staff/_users.ejs
blob: 1af47aa1341671934cbba7307de436e31f5aa617 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<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>
	[[ }) ]]
	</span>
</nav>

<table id="users">
[[ users.forEach(function(user){ ]]
  <tr>
    <td>
      <a href="/staff/users/[[- user.username ]]"><div style="background-image:url([[- user.photo ]])" class="avatar"></div></a>
    </td>
    <td>
      [[- user.plan_type ]]
      [[- user.last_charged ]]
    </td>
    <td>
      <a href="/staff/users/[[- user.username ]]">[[- user.username ]]</a>
    </td>
    <td>
      [[- user.displayName ]]
    </td>
    <td class="editLinks">
      <a href="/profile/[[- user.username ]]">[view profile]</a>
      <a href="/staff/users/[[- user.username ]]/media">[view media]</a>
      <a href="https://vvalls.recurly.com/accounts/[[- user._id ]]">[recurly]</a>
    </td>
    <td>
      [[- user.last_seen ]]
    </td>
  </tr>
[[ }) ]]
</table>