Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/view/ConpherenceLayoutView.php
| Show First 20 Lines • Show All 84 Lines • ▼ Show 20 Lines | $this->initBehavior('conpherence-menu', | ||||
| 'canEditSelectedThread' => $can_edit_selected, | 'canEditSelectedThread' => $can_edit_selected, | ||||
| 'latestTransactionID' => $this->latestTransactionID, | 'latestTransactionID' => $this->latestTransactionID, | ||||
| 'role' => $this->role, | 'role' => $this->role, | ||||
| 'hasThreadList' => (bool)$this->threadView, | 'hasThreadList' => (bool)$this->threadView, | ||||
| 'hasThread' => (bool)$this->messages, | 'hasThread' => (bool)$this->messages, | ||||
| 'hasWidgets' => false, | 'hasWidgets' => false, | ||||
| )); | )); | ||||
| $class = null; | |||||
| if (!$this->getUser()->isLoggedIn()) { | |||||
| $class = 'conpherence-logged-out'; | |||||
| } | |||||
| $this->initBehavior( | $this->initBehavior( | ||||
| 'conpherence-widget-pane', | 'conpherence-widget-pane', | ||||
| ConpherenceWidgetConfigConstants::getWidgetPaneBehaviorConfig()); | ConpherenceWidgetConfigConstants::getWidgetPaneBehaviorConfig()); | ||||
| return javelin_tag( | return javelin_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'id' => $layout_id, | 'id' => $layout_id, | ||||
| 'sigil' => 'conpherence-layout', | 'sigil' => 'conpherence-layout', | ||||
| 'class' => 'conpherence-layout conpherence-role-'.$this->role, | 'class' => 'conpherence-layout '. | ||||
| $class. | |||||
| ' conpherence-role-'.$this->role, | |||||
| ), | ), | ||||
| array( | array( | ||||
| javelin_tag( | javelin_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'id' => 'conpherence-menu-pane', | 'id' => 'conpherence-menu-pane', | ||||
| 'class' => 'conpherence-menu-pane phabricator-side-menu', | 'class' => 'conpherence-menu-pane phabricator-side-menu', | ||||
| 'sigil' => 'conpherence-menu-pane', | 'sigil' => 'conpherence-menu-pane', | ||||
| ▲ Show 20 Lines • Show All 95 Lines • Show Last 20 Lines | |||||