From 1481c5c9d8242e2507796f0b56db29c95084caf6 Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Thu, 11 Oct 2012 11:49:23 -0700 Subject: [PATCH] Basic AJAX GUI is now functional --- app/views/Application/Index.html | 11 ++++------- app/views/Mailbox/List.html | 27 ++++++++++++++++++++++--- app/views/Mailbox/Show.html | 10 +++------- app/views/header.html | 4 ++-- public/stylesheets/main.css | 34 +++++++++++++++++++++++++++++++- 5 files changed, 66 insertions(+), 20 deletions(-) diff --git a/app/views/Application/Index.html b/app/views/Application/Index.html index d20729a..2f603c1 100644 --- a/app/views/Application/Index.html +++ b/app/views/Application/Index.html @@ -3,13 +3,10 @@ {{template "menu.html" .}}
-

Inbucket

- -
- Enter a username to view their mailbox - - -
+

Inbucket is an email testing service; it will accept email for any email + address and make it available to view without a password.

+

To view email for a particular address, enter the username portion + of the address into the box on the upper right and click go.

{{template "footer.html" .}} diff --git a/app/views/Mailbox/List.html b/app/views/Mailbox/List.html index 4b4c438..16cf461 100644 --- a/app/views/Mailbox/List.html +++ b/app/views/Mailbox/List.html @@ -1,5 +1,24 @@ {{template "header.html" .}} {{$name := .name}} + +
{{range .messages}} -
-

Select a message at left, or enter a different username into the box on upper right.

+
+

Select a message at left, or enter a different username into the box on upper right.

+
{{template "footer.html" .}} diff --git a/app/views/Mailbox/Show.html b/app/views/Mailbox/Show.html index d33e0e0..a0fd0ea 100644 --- a/app/views/Mailbox/Show.html +++ b/app/views/Mailbox/Show.html @@ -1,7 +1,4 @@ -{{template "header.html" .}} - -

{{.message.Subject}}

- +
@@ -11,8 +8,7 @@
From: {{.message.From}}{{.message.Date}}
+

{{.message.Subject}}

-
{{.body}}
- -{{template "footer.html" .}} +
{{.body}}
diff --git a/app/views/header.html b/app/views/header.html index 58fd444..a483983 100644 --- a/app/views/header.html +++ b/app/views/header.html @@ -10,7 +10,7 @@ Released for free under a Creative Commons Attribution 2.5 License {{.title}} - + {{range .moreStyles}} {{end}} @@ -22,7 +22,7 @@ Released for free under a Creative Commons Attribution 2.5 License