diff --git a/app/controllers/mailbox.go b/app/controllers/mailbox.go index d7cd5d2..671e400 100644 --- a/app/controllers/mailbox.go +++ b/app/controllers/mailbox.go @@ -29,6 +29,7 @@ func (c Mailbox) List(name string) rev.Result { } rev.INFO.Printf("Got %v messsages", len(messages)) + c.Response.Out.Header().Set("Expires", "-1") return c.Render(name, messages) } @@ -53,6 +54,7 @@ func (c Mailbox) Show(name string, id string) rev.Result { return c.Redirect(Application.Index) } + c.Response.Out.Header().Set("Expires", "-1") return c.Render(name, message, body) } @@ -100,5 +102,6 @@ func (c Mailbox) Source(name string, id string) rev.Result { return c.Redirect(Application.Index) } + c.Response.Out.Header().Set("Expires", "-1") return c.RenderText(*raw) } diff --git a/app/views/Mailbox/Index.html b/app/views/Mailbox/Index.html index a4e8c67..dd48e39 100644 --- a/app/views/Mailbox/Index.html +++ b/app/views/Mailbox/Index.html @@ -26,7 +26,7 @@ } function reloadList() { - $('#messageList').slideUp() + $('#messageList').hide() loadList() } @@ -47,7 +47,7 @@ function messageSource(id) { window.open('/mailbox/source/{{$name}}/' + id, '_blank', 'width=800,height=600,' + - 'location=no,menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no') + 'menubar=no,resizable=yes,scrollbars=yes,status=no,toolbar=no') } $(document).ready(listInit) diff --git a/app/views/Mailbox/Show.html b/app/views/Mailbox/Show.html index b8ec0ae..c213490 100644 --- a/app/views/Mailbox/Show.html +++ b/app/views/Mailbox/Show.html @@ -12,7 +12,7 @@ {{.message.Date}} -

{{.message.Subject}}

+

{{.message.Subject}}

{{.body}}
diff --git a/public/stylesheets/main.css b/public/stylesheets/main.css index 33e5990..4d18b70 100644 --- a/public/stylesheets/main.css +++ b/public/stylesheets/main.css @@ -245,45 +245,47 @@ a:hover { } .listEntry { - color: #909090; - padding: 5px; + color: #909090; + padding: 5px; } .listEntry > .subject { - color: #2582A4; - font-weight: bold; + color: #2582A4; + font-weight: bold; } .listEntrySelected { - background: #becf74; - color: #666; + background: #becf74; + color: #666; } .listEntryHover { - background: #8ac6dc; - color: #666; + background: #8ac6dc; + color: #666; } #emailContent { - padding-bottom: 20px; - min-height: 300px; + padding-bottom: 20px; + min-height: 300px; } #emailHeader { - border-collapse: collapse; + border-collapse: collapse; } #emailHeader th, #emailHeader td { - text-align: left; - padding: 0 3px 3px 0; + text-align: left; + padding: 0 3px 3px 0; } #emailSubject { - border-bottom: 1px #606060 solid; + border-bottom: 1px #606060 solid; + margin: 0; + width: 617px; } #emailBody { - color: #000000; + color: #000000; } #emailActions { @@ -292,13 +294,13 @@ a:hover { } #emailActions a { - background: #8ac6dc; - color: #fff; - text-decoration: none; - font-weight: bold; - padding: 5px; + background: #8ac6dc; + color: #fff; + text-decoration: none; + font-weight: bold; + padding: 5px; } #emailActions a:hover { - background: #becf74; + background: #becf74; }