styling
This commit is contained in:
parent
dd6364a269
commit
d1ed0c3e41
@ -9,10 +9,7 @@ class extends Widget
|
|||||||
head ->
|
head ->
|
||||||
meta charset: "utf-8"
|
meta charset: "utf-8"
|
||||||
meta name: "viewport", content: "width=device-width, initial-scale=1"
|
meta name: "viewport", content: "width=device-width, initial-scale=1"
|
||||||
if @title
|
title(@title or "Simplex")
|
||||||
title "#{@title} - Simplex"
|
|
||||||
else
|
|
||||||
title "Simplex"
|
|
||||||
-- Milligram CSS framework
|
-- Milligram CSS framework
|
||||||
link rel: "stylesheet", href: "https://fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic"
|
link rel: "stylesheet", href: "https://fonts.googleapis.com/css?family=Roboto:300,300italic,700,700italic"
|
||||||
link rel: "stylesheet", href: "https://cdn.rawgit.com/necolas/normalize.css/master/normalize.css"
|
link rel: "stylesheet", href: "https://cdn.rawgit.com/necolas/normalize.css/master/normalize.css"
|
||||||
@ -24,4 +21,5 @@ class extends Widget
|
|||||||
link rel: "stylesheet", href: "/static/main.css"
|
link rel: "stylesheet", href: "/static/main.css"
|
||||||
body ->
|
body ->
|
||||||
div class: "container", ->
|
div class: "container", ->
|
||||||
|
h1(@title or "Simplex")
|
||||||
@content_for "inner"
|
@content_for "inner"
|
||||||
|
@ -29,7 +29,7 @@ function new_task() {
|
|||||||
function new_api_key() {
|
function new_api_key() {
|
||||||
$.get("/new-api-key", function(data, status) {
|
$.get("/new-api-key", function(data, status) {
|
||||||
if (status == "success") {
|
if (status == "success") {
|
||||||
$("#new-api-key").before("<li>" + data.api_key.key + "</li>");
|
$("#new-api-key").before("<li><code>" + data.api_key.key + "</code></li>");
|
||||||
} else {
|
} else {
|
||||||
console.log(data); // NOTE TEMPORARY (need to handle errors better)
|
console.log(data); // NOTE TEMPORARY (need to handle errors better)
|
||||||
}
|
}
|
||||||
|
@ -24,6 +24,7 @@ class LoggedIn extends Widget
|
|||||||
ul style: "list-style: none;", ->
|
ul style: "list-style: none;", ->
|
||||||
if @keys
|
if @keys
|
||||||
for key in *@keys
|
for key in *@keys
|
||||||
li key.key
|
li ->
|
||||||
|
code key.key
|
||||||
li id: "new-api-key", ->
|
li id: "new-api-key", ->
|
||||||
button onclick: "new_api_key()", "New API Key"
|
button onclick: "new_api_key()", "New API Key"
|
||||||
|
Loading…
Reference in New Issue
Block a user