From 0804cade1f09a8436f69e572c7bd5f725742db41 Mon Sep 17 00:00:00 2001 From: Glavin Wiechert Date: Sun, 7 Sep 2014 19:41:05 -0300 Subject: [PATCH] See #56. Start implementing of Message View. --- lib/message-view.coffee | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 lib/message-view.coffee diff --git a/lib/message-view.coffee b/lib/message-view.coffee new file mode 100644 index 0000000..bbc3fe9 --- /dev/null +++ b/lib/message-view.coffee @@ -0,0 +1,29 @@ +{View} = require "atom" + +module.exports = +class MessageView extends View + @content: -> + @div + class: 'atom-beautify message-panel', => + @div + class: 'overlay from-top', => + @div class: "tool-panel panel-bottom", => + @div class: "inset-panel", => + @div class: "panel-heading", => + @div class: 'btn-toolbar pull-right', => + @button + class: 'btn' + click: 'close' + 'Close' + @span + class: 'text-error' + outlet: 'title' + 'Atom Beautify Message' + @div + class: "panel-body padded" + outlet: 'body' + close: (event, element) => + @detach() + show: => + if not @.hasParent() + atom.workspaceView.appendToTop @