mirror of
https://github.com/lazuscripts/users.git
synced 2024-11-17 03:14:22 +00:00
42e6672175
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
29 lines
594 B
Plaintext
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"
|