       @_deleteButtonView = new DeleteButtonView model: @model
       @listenTo @_deleteButtonView, 'delete', -> @model.destroy wait: true
       @deleteRegion.show @_deleteButtonView
+
+  updateSubCommentsLink: ->
+    count = @model.get('sub_comments_count')
+    countText = switch count
+      when 0 then "Comment"
+      when 1 then "1 comment"
+      else "#{count} comments"
+    @ui.subCommentsLink.text countText
+
+    if Factlink.Global.signed_in or count > 0
+      @showSubCommentsLink()
+    else
+      @hideSubCommentsLink()
+
+  showSubCommentsLink: -> @ui.subCommentsLinkContainer.removeClass 'hide'
+  hideSubCommentsLink: -> @ui.subCommentsLinkContainer.addClass 'hide'

class window.GenericEvidenceBottomView extends Backbone.Marionette.Layout
  template: 'facts/evidence_bottom'

  triggers:

  ui:
    subCommentsLink:          '.js-sub-comments-link'
    subCommentsLinkContainer: '.js-sub-comments-link-container'

  regions:
    deleteRegion: '.js-delete-region'
