riddles
Version:
A framework for building series of puzzle challenge, like Python Challenge.
44 lines (43 loc) • 1.52 kB
text/jade
//
Created by dsds on 10/10/15.
extends admin
block view
h1 Users
p
table.u-full-width
thead
tr
th(style="white-space: nowrap")
a(href="?s=username")= __("username")
th(style="white-space: nowrap")
a(href="?s=_id")= __("created at")
th(style="white-space: nowrap")
a(href="?s=group")= __("group")
th(style="white-space: nowrap")
a(href="?s=gid")= __("group")
th
a(href="?s=name")= __("Name")
th
a(href="?s=uid")= __("UID")
th
a(href="?s=school")= __("School")
th= __("Contact")
tbody
each userdata in data.users
tr
td
td(style="white-space: nowrap")
td(style="white-space: nowrap")
td(style="white-space: nowrap")
td(style="word-break: break-word")
td(style="word-break: break-word")
td(style="word-break: break-word")
td(style="word-break: break-word")
- var pageCount = Math.ceil(data.total / data.usersPerPage);
ul.pagination
- for (var x = 0; x < pageCount; ++x)
li
if x != data.page
a(href="?s=" + data.sort + "&p=" + x)= x + 1
else
a.current= x + 1