You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ponymail.apache.org by hu...@apache.org on 2016/09/05 18:21:36 UTC
[4/5] incubator-ponymail git commit: add permalink-,
source- and reply-button
add permalink-, source- and reply-button
reply button does not do anything just yet...
Project: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/commit/f13f37d9
Tree: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/tree/f13f37d9
Diff: http://git-wip-us.apache.org/repos/asf/incubator-ponymail/diff/f13f37d9
Branch: refs/heads/coffee-and-cake
Commit: f13f37d93d88d3d70c3d1c1a92b4502f6e131701
Parents: 394fdd0
Author: Daniel Gruno <hu...@apache.org>
Authored: Mon Sep 5 20:21:09 2016 +0200
Committer: Daniel Gruno <hu...@apache.org>
Committed: Mon Sep 5 20:21:09 2016 +0200
----------------------------------------------------------------------
site/js/coffee/email_display_basic.coffee | 15 +++++++++++++++
1 file changed, 15 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-ponymail/blob/f13f37d9/site/js/coffee/email_display_basic.coffee
----------------------------------------------------------------------
diff --git a/site/js/coffee/email_display_basic.coffee b/site/js/coffee/email_display_basic.coffee
index 081b5b0..60e67f3 100644
--- a/site/js/coffee/email_display_basic.coffee
+++ b/site/js/coffee/email_display_basic.coffee
@@ -119,6 +119,21 @@ class BasicEmailDisplay
])
headers.inject(list_line)
+ ### Action buttons ###
+
+ ### Permalink ###
+ pbutton = new HTML('a', { class: "label_yellow", href: "thread.html/#{json.mid}"}, "Permalink")
+
+ ### Source ###
+ sbutton = new HTML('a', { class: "label_red", href: "api/source.lua/#{json.mid}"}, "View source")
+
+ ### Reply ###
+ rbutton = new HTML('a', { class: "label_green", href: "javascript:void(0);"}, "Reply")
+
+ buttons = new HTML('div', {class: "email_header_buttons"}, [pbutton, sbutton, rbutton])
+
+ headers.inject(buttons)
+
placeholder.inject(headers)