-class GenericNotificationView extends Backbone.Marionette.Layout
+class NotificationView extends Backbone.Marionette.Layout
   tagName: "li"
   className: "activity"
   templateHelpers: ->


  markAsRead: -> @$el.removeClass "unread"

class NotificationCreatedFactRelationView extends GenericNotificationView
  template: "notifications/created_fact_relation"

class NotificationCreatedConversationView extends GenericNotificationView
  template: "notifications/created_conversation"

class NotificationRepliedMessageView extends GenericNotificationView
  template: "notifications/replied_message"

class NotificationUserFollowedUser extends GenericNotificationView
  template: "notifications/user_followed_user"

  regions:

    user = new User(@model.get('user'))
    @addBackRegion.show new FollowUserButtonView(user: user, mini: true)

class CreatedCommentOrSubCommentView extends NotificationView
  template: "notifications/_created_comment_or_sub_comment"

window.NotificationView = (opts) ->
