 Template.submessage.helpers
   Submessage: -> Submessage
   message: -> @
-  canReply: -> canPost @group, @_id
   editingRV: -> Template.instance().editing.get()
   editingNR: -> Tracker.nonreactive -> Template.instance().editing.get()
   editTitle: -> Template.instance().editTitle.get()

    history = messageHistory.get(@_id) ? @
    'image' == fileType history.file

  absentTags: absentTags
  absentTagsCount: ->
    absentTags().count()

Template.messageTags.helpers
  tags: historify 'tags', sortTags


      else
        formatted
  , [historified.file, historified._id]
  absentTags = useTracker ->
    Tags.find
      group: message.group
      key: $nin: _.keys message.tags ? {}
      deleted: false
    ,
      sort: ['key']
    .fetch()
  , [message.group, _.keys(message.tags ? {}).join '\n']
  can = useTracker ->
    delete: canDelete message._id
    undelete: canUndelete message._id
