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 src: "/static/index.js"
|
||||
|
||||
button class: "collapsible", "API Keys"
|
||||
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 ->
|
||||
ul style: "list-style: none;", ->
|
||||
if @tasks
|
||||
for task in *@tasks
|
||||
li ->
|
||||
@ -25,5 +15,15 @@ class LoggedIn extends Widget
|
||||
form {
|
||||
onsubmit: "return new_task();"
|
||||
}, ->
|
||||
input type: "text", id: "new-task-input", placeholder: "new task"
|
||||
input type: "submit", value: "+"
|
||||
label for: "new-task-input", "New Task"
|
||||
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