         $target
           .addClass 'is-active'
           .html view.render().$el
-  
+
   renderFollowButton: ->
     model = @getModel()
     model.fetch


  getModel: ->
    model = new Block id: @block.id
    
    if @block.kind.__typename is 'Channel'
      model.url = "#{API_URL}/channels/#{@block.id}/thumb"
    else
      model.url = "#{API_URL}/blocks/#{@block.id}"
    
    model

  openConnect: (e) ->

        new FollowButtonView
          el: @$('.js-follow')
          model: model
          showTitle: false
