Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/view/ConpherenceLayoutView.php
Show First 20 Lines • Show All 77 Lines • ▼ Show 20 Lines | $this->initBehavior( | ||||
'conpherence-widget-pane', | 'conpherence-widget-pane', | ||||
array( | array( | ||||
'widgetBaseUpdateURI' => $this->baseURI.'update/', | 'widgetBaseUpdateURI' => $this->baseURI.'update/', | ||||
'widgetRegistry' => array( | 'widgetRegistry' => array( | ||||
'conpherence-message-pane' => array( | 'conpherence-message-pane' => array( | ||||
'name' => pht('Thread'), | 'name' => pht('Thread'), | ||||
'icon' => 'fa-comment', | 'icon' => 'fa-comment', | ||||
'deviceOnly' => true, | 'deviceOnly' => true, | ||||
'hasCreate' => false | 'hasCreate' => false, | ||||
), | ), | ||||
'widgets-people' => array( | 'widgets-people' => array( | ||||
'name' => pht('Participants'), | 'name' => pht('Participants'), | ||||
'icon' => 'fa-users', | 'icon' => 'fa-users', | ||||
'deviceOnly' => false, | 'deviceOnly' => false, | ||||
'hasCreate' => true, | 'hasCreate' => true, | ||||
'createData' => array( | 'createData' => array( | ||||
'refreshFromResponse' => true, | 'refreshFromResponse' => true, | ||||
'action' => ConpherenceUpdateActions::ADD_PERSON, | 'action' => ConpherenceUpdateActions::ADD_PERSON, | ||||
'customHref' => null | 'customHref' => null, | ||||
) | ), | ||||
), | ), | ||||
'widgets-files' => array( | 'widgets-files' => array( | ||||
'name' => pht('Files'), | 'name' => pht('Files'), | ||||
'icon' => 'fa-files-o', | 'icon' => 'fa-files-o', | ||||
'deviceOnly' => false, | 'deviceOnly' => false, | ||||
'hasCreate' => false | 'hasCreate' => false, | ||||
), | ), | ||||
'widgets-calendar' => array( | 'widgets-calendar' => array( | ||||
'name' => pht('Calendar'), | 'name' => pht('Calendar'), | ||||
'icon' => 'fa-calendar', | 'icon' => 'fa-calendar', | ||||
'deviceOnly' => false, | 'deviceOnly' => false, | ||||
'hasCreate' => true, | 'hasCreate' => true, | ||||
'createData' => array( | 'createData' => array( | ||||
'refreshFromResponse' => false, | 'refreshFromResponse' => false, | ||||
'action' => ConpherenceUpdateActions::ADD_STATUS, | 'action' => ConpherenceUpdateActions::ADD_STATUS, | ||||
'customHref' => '/calendar/event/create/' | 'customHref' => '/calendar/event/create/', | ||||
) | ), | ||||
), | ), | ||||
'widgets-settings' => array( | 'widgets-settings' => array( | ||||
'name' => pht('Settings'), | 'name' => pht('Settings'), | ||||
'icon' => 'fa-wrench', | 'icon' => 'fa-wrench', | ||||
'deviceOnly' => false, | 'deviceOnly' => false, | ||||
'hasCreate' => false | 'hasCreate' => false, | ||||
), | |||||
), | ), | ||||
))); | )); | ||||
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 conpherence-role-'.$this->role, | ||||
Show All 34 Lines | return javelin_tag( | ||||
'class' => 'conpherence-no-threads', | 'class' => 'conpherence-no-threads', | ||||
'sigil' => 'conpherence-no-threads', | 'sigil' => 'conpherence-no-threads', | ||||
'style' => 'display: none;', | 'style' => 'display: none;', | ||||
), | ), | ||||
array( | array( | ||||
phutil_tag( | phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'text' | 'class' => 'text', | ||||
), | ), | ||||
pht('You do not have any messages yet.')), | pht('You do not have any messages yet.')), | ||||
javelin_tag( | javelin_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
'href' => '/conpherence/new/', | 'href' => '/conpherence/new/', | ||||
'class' => 'button grey', | 'class' => 'button grey', | ||||
'sigil' => 'workflow', | 'sigil' => 'workflow', | ||||
), | ), | ||||
pht('Send a Message')) | pht('Send a Message')), | ||||
)), | )), | ||||
javelin_tag( | javelin_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'conpherence-widget-pane', | 'class' => 'conpherence-widget-pane', | ||||
'id' => 'conpherence-widget-pane', | 'id' => 'conpherence-widget-pane', | ||||
'sigil' => 'conpherence-widget-pane', | 'sigil' => 'conpherence-widget-pane', | ||||
), | ), | ||||
array( | array( | ||||
phutil_tag( | phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'widgets-loading-mask' | 'class' => 'widgets-loading-mask', | ||||
), | ), | ||||
''), | ''), | ||||
javelin_tag( | javelin_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'sigil' => 'conpherence-widgets-holder' | 'sigil' => 'conpherence-widgets-holder', | ||||
), | ), | ||||
''))), | ''), | ||||
)), | |||||
javelin_tag( | javelin_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'conpherence-message-pane', | 'class' => 'conpherence-message-pane', | ||||
'id' => 'conpherence-message-pane', | 'id' => 'conpherence-message-pane', | ||||
'sigil' => 'conpherence-message-pane' | 'sigil' => 'conpherence-message-pane', | ||||
), | ), | ||||
array( | array( | ||||
javelin_tag( | javelin_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'conpherence-messages', | 'class' => 'conpherence-messages', | ||||
'id' => 'conpherence-messages', | 'id' => 'conpherence-messages', | ||||
'sigil' => 'conpherence-messages', | 'sigil' => 'conpherence-messages', | ||||
), | ), | ||||
nonempty($this->messages, '')), | nonempty($this->messages, '')), | ||||
phutil_tag( | phutil_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'class' => 'messages-loading-mask', | 'class' => 'messages-loading-mask', | ||||
), | ), | ||||
''), | ''), | ||||
javelin_tag( | javelin_tag( | ||||
'div', | 'div', | ||||
array( | array( | ||||
'id' => 'conpherence-form', | 'id' => 'conpherence-form', | ||||
'sigil' => 'conpherence-form' | 'sigil' => 'conpherence-form', | ||||
), | ), | ||||
nonempty($this->replyForm, '')) | nonempty($this->replyForm, '')), | ||||
)), | )), | ||||
)), | )), | ||||
)); | )); | ||||
} | } | ||||
} | } |