See #56. Start implementing of Message View.

This commit is contained in:
Glavin Wiechert 2014-09-07 19:41:05 -03:00
parent 7dbff2cbc1
commit 0804cade1f
1 changed files with 29 additions and 0 deletions

29
lib/message-view.coffee Normal file
View File

@ -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 @