From 64ae2edb5a97f05f5592f58422adbc6ac089f9e8 Mon Sep 17 00:00:00 2001 From: Horus_Arch Date: Thu, 26 Feb 2015 02:40:52 +0100 Subject: Clean up. More backend code. Better UX and design. --- views/admin.html | 26 +++++++++++++++++++------- views/admin.html.copy | 45 --------------------------------------------- views/footer.html | 16 ++++++---------- views/footer_admin.html | 26 -------------------------- views/header.html | 9 +++++---- views/index.html | 7 ++++--- views/jobs_modal.html | 6 +++--- views/navbar.html | 15 ++++++--------- 8 files changed, 43 insertions(+), 107 deletions(-) delete mode 100644 views/admin.html.copy delete mode 100644 views/footer_admin.html (limited to 'views') diff --git a/views/admin.html b/views/admin.html index f80c541..ebec09c 100644 --- a/views/admin.html +++ b/views/admin.html @@ -5,10 +5,10 @@
{{range .Error}} - +

{{end}}
@@ -17,18 +17,25 @@
{{range .Success}} - +

{{end}}
{{end}}
+
+
+
+
+ +
+
@@ -36,7 +43,7 @@ - + @@ -47,13 +54,18 @@ - + - + {{end}}
#Url Status Failure ReasonFailure Reason Delete
{{.Url}} {{.Status}} {{.Reason}}{{.Reason}} ××
+
+
+ +
+
{{template "jobs_modal.html"}} diff --git a/views/admin.html.copy b/views/admin.html.copy deleted file mode 100644 index 17f5c87..0000000 --- a/views/admin.html.copy +++ /dev/null @@ -1,45 +0,0 @@ -{{template "header.html"}} -{{template "navbar.html"}} - -
-
-{{range .Error}} - -{{end}} -{{range .Success}} - -{{end}} - - - - - - - - - - - - -{{range $index, $results := .}} - - - - - - - - -{{end}} - -
#HostUrlStatusFailure Reason
{{add $index 1}}{{.Host}}{{.Url}}{{.Status}}{{.Reason}}
-
-
-{{template "jobs_modal.html"}} -{{template "footer.html"}} diff --git a/views/footer.html b/views/footer.html index ae8f370..7fb9d2d 100644 --- a/views/footer.html +++ b/views/footer.html @@ -2,28 +2,24 @@
- - - + + + + + - {{range .moreScripts}} - - {{end}} diff --git a/views/footer_admin.html b/views/footer_admin.html deleted file mode 100644 index 3918f3e..0000000 --- a/views/footer_admin.html +++ /dev/null @@ -1,26 +0,0 @@ - - - - - - - - - {{range .moreScripts}} - - {{end}} - - diff --git a/views/header.html b/views/header.html index 3af93d8..bd1a3b0 100644 --- a/views/header.html +++ b/views/header.html @@ -3,17 +3,18 @@ + + {{.title}} - - - + + + {{range .moreStyles}} {{end}} - diff --git a/views/index.html b/views/index.html index 88f8e2e..61c8597 100644 --- a/views/index.html +++ b/views/index.html @@ -3,7 +3,8 @@
- + + Show failure reasons @@ -11,7 +12,7 @@ - + {{range $index, $results := .}} @@ -21,7 +22,7 @@ - + {{end}} diff --git a/views/jobs_modal.html b/views/jobs_modal.html index 4d6f159..9a85a59 100644 --- a/views/jobs_modal.html +++ b/views/jobs_modal.html @@ -1,5 +1,5 @@
#Url Status Failure ReasonFailure Reason
{{.Url}} {{.Status}} {{.Reason}}{{.Reason}}