better styling
This commit is contained in:
parent
f7b08a112c
commit
6bd39ac86e
@ -5,17 +5,7 @@ class LoggedIn extends Widget
|
|||||||
script -> raw "var API_KEY = '#{@keys[1].key}';"
|
script -> raw "var API_KEY = '#{@keys[1].key}';"
|
||||||
script src: "/static/index.js"
|
script src: "/static/index.js"
|
||||||
|
|
||||||
button class: "collapsible", "API Keys"
|
ul style: "list-style: none;", ->
|
||||||
div class: "content", ->
|
|
||||||
ul ->
|
|
||||||
if @keys
|
|
||||||
for key in *@keys
|
|
||||||
li key.key
|
|
||||||
li id: "new-api-key", ->
|
|
||||||
button onclick: "new_api_key()", "New API Key"
|
|
||||||
|
|
||||||
p "Tasks:"
|
|
||||||
ul ->
|
|
||||||
if @tasks
|
if @tasks
|
||||||
for task in *@tasks
|
for task in *@tasks
|
||||||
li ->
|
li ->
|
||||||
@ -25,5 +15,15 @@ class LoggedIn extends Widget
|
|||||||
form {
|
form {
|
||||||
onsubmit: "return new_task();"
|
onsubmit: "return new_task();"
|
||||||
}, ->
|
}, ->
|
||||||
input type: "text", id: "new-task-input", placeholder: "new task"
|
label for: "new-task-input", "New Task"
|
||||||
input type: "submit", value: "+"
|
input type: "text", id: "new-task-input", placeholder: "content"
|
||||||
|
input type: "submit", value: "Add Task"
|
||||||
|
|
||||||
|
button class: "collapsible", "API Keys"
|
||||||
|
div class: "content", ->
|
||||||
|
ul style: "list-style: none;", ->
|
||||||
|
if @keys
|
||||||
|
for key in *@keys
|
||||||
|
li key.key
|
||||||
|
li id: "new-api-key", ->
|
||||||
|
button onclick: "new_api_key()", "New API Key"
|
||||||
|
Loading…
Reference in New Issue
Block a user