 
   @headingClass = 'info'
 
-  @bodyMarkup: ->
+  @bodyMarkup: (state) ->
     @text 'No conflicts here!'
 
 class MaybeLaterView extends MessageView


class MessageView extends View

  @content: ->
    @div class: 'overlay from-top merge-conflicts-message', =>
      @div class: 'panel', click: 'dismiss', =>
        @div class: "panel-heading text-#{@headingClass}", @headingText
        @div class: 'panel-body', =>
          @div class: 'block', =>
            @bodyMarkup()
          @div class: 'block text-subtle', 'click to dismiss'

  initialize: (@state) ->

  dismiss: ->
    @hide 'fast', => @remove()


  @headingClass = 'success'

  @bodyMarkup: (state) ->
    @text "That's everything. "
    if state.isRebase
      @code 'git rebase --continue'
      @text ' at will to resume rebasing.'
    else
