Changeset View
Changeset View
Standalone View
Standalone View
src/applications/ponder/view/PonderFooterView.php
| Show All 31 Lines | protected function getTagContent() { | ||||
| Javelin::initBehavior('phabricator-reveal-content'); | Javelin::initBehavior('phabricator-reveal-content'); | ||||
| $hide_action_id = celerity_generate_unique_node_id(); | $hide_action_id = celerity_generate_unique_node_id(); | ||||
| $show_action_id = celerity_generate_unique_node_id(); | $show_action_id = celerity_generate_unique_node_id(); | ||||
| $content_id = $this->contentID; | $content_id = $this->contentID; | ||||
| if ($this->count == 0) { | if ($this->count == 0) { | ||||
| $icon = id(new PHUIIconView()) | $icon = id(new PHUIIconView()) | ||||
| ->setIconFont('fa-plus-circle msr'); | ->setIconFont('fa-comments msr'); | ||||
| $text = pht('Add a Comment'); | $text = pht('Add a Comment'); | ||||
| } else { | } else { | ||||
| $icon = id(new PHUIIconView()) | $icon = id(new PHUIIconView()) | ||||
| ->setIconFont('fa-comments msr'); | ->setIconFont('fa-comments msr'); | ||||
| $text = pht('Show %d Comment(s)', new PhutilNumber($this->count)); | $text = pht('Show %d Comment(s)', new PhutilNumber($this->count)); | ||||
| } | } | ||||
| $actions = array(); | $actions = array(); | ||||
| Show All 24 Lines | $show_action = javelin_tag( | ||||
| 'hideIDs' => array($content_id, $show_action_id), | 'hideIDs' => array($content_id, $show_action_id), | ||||
| ), | ), | ||||
| ), | ), | ||||
| array($icon, pht('Hide Comments'))); | array($icon, pht('Hide Comments'))); | ||||
| $actions[] = $hide_action; | $actions[] = $hide_action; | ||||
| $actions[] = $show_action; | $actions[] = $show_action; | ||||
| return array($this->actions, $actions); | return array($actions, $this->actions); | ||||
| } | } | ||||
| } | } | ||||