   private: 'panel-info'
   minimized: 'panel-success'
   published: 'panel-primary'
-Template.registerHelper 'messagePanelClass', ->
-  #console.log 'rendering', @_id, @
-  classes = []
-  classes.push mclass = messageClass.call @
-  classes.push panelClass[mclass]
-  if Template.instance().editing?.get()
-    classes.push 'editing'
-  classes.join ' '
 messagePanelClass = (message, editing) ->
   classes = []
   classes.push mclass = messageClass.call message


    <nav className="contents" ref={ref}>
      <ul className="nav contents">
        <li className="btn-group-xs #{foldedClass.call message}">
          {inner}
        </li>
      </ul>
      {renderedChildren}
    </nav>
  else
    <li className="btn-group-xs #{foldedClass.call message}">
      {inner}
      {renderedChildren}
    </li>

    Meteor.user()
  , []
  editing = editingMessage message, user
  folded = useTracker ->
    (messageFolded.get message._id) and
    not (routeHere message._id) and           # never fold if top-level message
    not editing                               # never fold if editing
  , [message._id, editing]
  creator = useTracker ->
    displayUser message.creator
  , [message.creator]
