From 6837ddf68f13a1633ea868ab55d71389ca5bc175 Mon Sep 17 00:00:00 2001 From: Horus3 Date: Fri, 27 Feb 2015 04:02:15 +0100 Subject: Version 0.2. Sends E-Mails now. Also sticky post on index page to quickly inform people. Concatenated all CSS and JavaScript files. --- views/admin.html | 36 ++++++++++++++++--------- views/email/footer.html | 25 ++++++++++++++++++ views/email/header.html | 15 +++++++++++ views/email/index.html | 29 ++++++++++++++++++++ views/footer.html | 24 +++++++---------- views/header.html | 9 ++----- views/index.html | 32 ++++++++++++++++++---- views/jobs_modal.html | 24 +++++++++++++---- views/navbar.html | 4 +-- views/register.html | 70 +++++++++++++++++++++++++++++++++++++++++++++++++ 10 files changed, 222 insertions(+), 46 deletions(-) create mode 100644 views/email/footer.html create mode 100644 views/email/header.html create mode 100644 views/email/index.html (limited to 'views') diff --git a/views/admin.html b/views/admin.html index ebec09c..86f38bc 100644 --- a/views/admin.html +++ b/views/admin.html @@ -1,11 +1,12 @@ {{template "header.html"}} {{template "navbar.html"}} +{{template "jobs_modal.html"}} {{if .Error}}
{{range .Error}} - @@ -17,8 +18,7 @@
{{range .Success}} - {{end}} @@ -32,17 +32,19 @@
-
- + +
- +
- + + + @@ -50,23 +52,33 @@ {{range $index, $results := .Hosts}} - - + + + - + {{end}}
# HostUrlDescription StatusPublic Last Update Failure Reason Delete
{{add $index 1}}{{.Host}}{{.Url}}{{.Host}} {{.Description}} {{.Status}} + {{.UpdatedAt}} {{.Reason}} × 
-
+

Next run: {{.NextRun}}

+
+
+
+

Information post

+ +
+ + +
-{{template "jobs_modal.html"}} {{template "footer.html"}} diff --git a/views/email/footer.html b/views/email/footer.html new file mode 100644 index 0000000..f74441b --- /dev/null +++ b/views/email/footer.html @@ -0,0 +1,25 @@ + + + + + + + + + + + diff --git a/views/email/header.html b/views/email/header.html new file mode 100644 index 0000000..b8c16a0 --- /dev/null +++ b/views/email/header.html @@ -0,0 +1,15 @@ + + + + + + + + StatusPage + + + + + + + diff --git a/views/email/index.html b/views/email/index.html new file mode 100644 index 0000000..02a3ef7 --- /dev/null +++ b/views/email/index.html @@ -0,0 +1,29 @@ +{{template "header.html"}} + +
+
+ + + + + + + + + + +{{range $index, $results := .}} + + + + + + + + +{{end}} + +
#HostDescriptionStatusLast UpdateFailure Reason
{{add $index 1}}{{.Host}} {{.Description}}{{.Status}}{{.UpdatedAt}}{{.Reason}}
+
+
+{{template "footer.html"}} diff --git a/views/footer.html b/views/footer.html index 7fb9d2d..9979195 100644 --- a/views/footer.html +++ b/views/footer.html @@ -1,25 +1,19 @@ -