From 47cba08c334435626ad52325e13ae05070ebca2a Mon Sep 17 00:00:00 2001 From: James Hillyerd Date: Fri, 25 Oct 2013 13:29:26 -0700 Subject: [PATCH] Add a Link button to messages Allows users to copy the URL for a specific message and send it to another person. --- themes/integral/templates/mailbox/_show.html | 27 ++++++++++---------- themes/integral/templates/mailbox/index.html | 7 ++++- web/mailbox_controller.go | 12 +++++++++ web/server.go | 1 + 4 files changed, 33 insertions(+), 14 deletions(-) diff --git a/themes/integral/templates/mailbox/_show.html b/themes/integral/templates/mailbox/_show.html index bf83fcb..4ca2c55 100644 --- a/themes/integral/templates/mailbox/_show.html +++ b/themes/integral/templates/mailbox/_show.html @@ -1,21 +1,22 @@ {{$name := .name}} {{$id := .message.Id}}
- Delete - Source - {{if .htmlAvailable}} - HTML - {{end}} + Link + Delete + Source + {{if .htmlAvailable}} + HTML + {{end}}
- - - - - - - - + + + + + + + +
From:{{.message.From}}
Date:{{.message.Date}}
From:{{.message.From}}
Date:{{.message.Date}}
{{with .attachments}} diff --git a/themes/integral/templates/mailbox/index.html b/themes/integral/templates/mailbox/index.html index 6581e18..bb13327 100644 --- a/themes/integral/templates/mailbox/index.html +++ b/themes/integral/templates/mailbox/index.html @@ -3,7 +3,8 @@ {{define "script"}}