From 555332c98eb3d2e0155d0f1c8a6325ac2e5aca2b Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Wed, 10 Oct 2012 21:04:28 -0700 Subject: [PATCH] Add a way to enter a username to view. Cleanup route formatting. --- app/views/Application/Index.html | 10 ++++++++-- conf/routes | 7 ++++--- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/app/views/Application/Index.html b/app/views/Application/Index.html index 47e1358..11c4de2 100644 --- a/app/views/Application/Index.html +++ b/app/views/Application/Index.html @@ -1,7 +1,13 @@ -{{set "title" "Home" .}} +{{set "title" "Inbucket" .}} {{template "header.html" .}} -

Your Application Is Ready

+

Inbucket

+ +
+ Enter a username to view their mailbox + + +
{{template "footer.html" .}} diff --git a/conf/routes b/conf/routes index d0d6f7e..2e8db28 100644 --- a/conf/routes +++ b/conf/routes @@ -3,9 +3,10 @@ # ~~~~ GET / Application.Index -GET /mailbox/{name} Mailbox.Index -GET /mailbox/list/{name} Mailbox.List -GET /mailbox/show/{name}/{id} Mailbox.Show +GET /mailbox/{name} Mailbox.Index +GET /mailbox Mailbox.Index +GET /mailbox/list/{name} Mailbox.List +GET /mailbox/show/{name}/{id} Mailbox.Show # Ignore favicon requests GET /favicon.ico 404