See #56. Start implementing of Message View.
This commit is contained in:
parent
7dbff2cbc1
commit
0804cade1f
|
@ -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 @
|
Loading…
Reference in New Issue