Skip to content

Commit

Permalink
See #56. Start implementing of Message View.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glavin001 committed Sep 7, 2014
1 parent 7dbff2c commit 0804cad
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions 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 @

0 comments on commit 0804cad

Please sign in to comment.