protected function buildHeaderPaneContent(ConpherenceThread $conpherence, array $policy_objects)
 {
     assert_instances_of($policy_objects, 'PhabricatorPolicy');
     $crumbs = $this->buildApplicationCrumbs();
     $data = $conpherence->getDisplayData($this->getViewer());
     $crumbs->addCrumb(id(new PHUICrumbView())->setName($data['title'])->setHref('/' . $conpherence->getMonogram()));
     return hsprintf('%s', array(phutil_tag('div', array('class' => 'header-loading-mask'), ''), $crumbs));
 }
 private function renderThread(ConpherenceThread $thread, array $policy_objects)
 {
     $user = $this->getUser();
     $uri = '/' . $thread->getMonogram();
     $data = $thread->getDisplayData($user);
     $icon = id(new PHUIIconView())->addClass('msr')->setIcon($thread->getPolicyIconName($policy_objects));
     $title = phutil_tag('span', array(), array($icon, $data['title']));
     $subtitle = $data['subtitle'];
     $unread_count = $data['unread_count'];
     $epoch = $data['epoch'];
     $image = $data['image'];
     $dom_id = $thread->getPHID() . '-nav-item';
     return id(new ConpherenceMenuItemView())->setUser($user)->setTitle($title)->setSubtitle($subtitle)->setHref($uri)->setEpoch($epoch)->setImageURI($image)->setUnreadCount($unread_count)->setID($thread->getPHID() . '-nav-item')->addSigil('conpherence-menu-click')->setMetadata(array('title' => $data['title'], 'id' => $dom_id, 'threadID' => $thread->getID()));
 }
 private function renderThread(ConpherenceThread $thread, array $policy_objects)
 {
     $user = $this->getUser();
     $uri = '/' . $thread->getMonogram();
     $data = $thread->getDisplayData($user);
     $icon = id(new PHUIIconView())->addClass('msr')->setIcon($thread->getPolicyIconName($policy_objects));
     $title = phutil_tag('span', array(), array($icon, $data['title']));
     $subtitle = $data['subtitle'];
     $unread_count = $data['unread_count'];
     $epoch = $data['epoch'];
     $image = $data['image'];
     $dom_id = $thread->getPHID() . '-nav-item';
     $glyph_pref = PhabricatorUserPreferences::PREFERENCE_TITLES;
     $preferences = $user->loadPreferences();
     if ($preferences->getPreference($glyph_pref) == 'glyph') {
         $glyph = id(new PhabricatorConpherenceApplication())->getTitleGlyph() . ' ';
     } else {
         $glyph = null;
     }
     return id(new ConpherenceMenuItemView())->setUser($user)->setTitle($title)->setSubtitle($subtitle)->setHref($uri)->setEpoch($epoch)->setImageURI($image)->setUnreadCount($unread_count)->setID($thread->getPHID() . '-nav-item')->addSigil('conpherence-menu-click')->setMetadata(array('title' => $glyph . $data['title'], 'id' => $dom_id, 'threadID' => $thread->getID()));
 }