lazuscripts-users/views/user_list.moon
Paul Liverman III 42e6672175 reinitialized
tl;dr: I am resetting the history in this repo to this point because I
accidentally was adding history from OTHER repos into this one due to
a bug in git subtree or a misunderstanding on my part
2018-03-02 10:45:36 -08:00

29 lines
594 B
Plaintext

import Widget from require "lapis.html"
class extends Widget
content: =>
p "#{#@users} users."
element "table", ->
thead ->
tr ->
th "ID"
th "Admin"
th "Username"
th "Email Address"
tbody ->
for user in *@users
tr ->
td user.id
if user.admin
td "✔"
else
td! -- "❌"
td user.name
td user.email
tfoot ->
tr ->
th "ID"
th "Admin"
th "Username"
th "Email Address"