Differential D10585 Diff 25583 src/applications/conpherence/controller/ConpherenceViewController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/conpherence/controller/ConpherenceViewController.php
| Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | if ($before_transaction_id) { | ||||
| $form = null; | $form = null; | ||||
| $content = array('messages' => $messages); | $content = array('messages' => $messages); | ||||
| } else { | } else { | ||||
| $header = $this->buildHeaderPaneContent($conpherence); | $header = $this->buildHeaderPaneContent($conpherence); | ||||
| $form = $this->renderFormContent($data['latest_transaction_id']); | $form = $this->renderFormContent($data['latest_transaction_id']); | ||||
| $content = array( | $content = array( | ||||
| 'header' => $header, | 'header' => $header, | ||||
| 'messages' => $messages, | 'messages' => $messages, | ||||
| 'form' => $form | 'form' => $form, | ||||
| ); | ); | ||||
| } | } | ||||
| if ($request->isAjax()) { | if ($request->isAjax()) { | ||||
| return id(new AphrontAjaxResponse())->setContent($content); | return id(new AphrontAjaxResponse())->setContent($content); | ||||
| } | } | ||||
| $layout = id(new ConpherenceLayoutView()) | $layout = id(new ConpherenceLayoutView()) | ||||
| Show All 25 Lines | if ($oldest_transaction_id) { | ||||
| $scrollbutton = javelin_tag( | $scrollbutton = javelin_tag( | ||||
| 'a', | 'a', | ||||
| array( | array( | ||||
| 'href' => '#', | 'href' => '#', | ||||
| 'mustcapture' => true, | 'mustcapture' => true, | ||||
| 'sigil' => 'show-older-messages', | 'sigil' => 'show-older-messages', | ||||
| 'class' => 'conpherence-show-older-messages', | 'class' => 'conpherence-show-older-messages', | ||||
| 'meta' => array( | 'meta' => array( | ||||
| 'oldest_transaction_id' => $oldest_transaction_id | 'oldest_transaction_id' => $oldest_transaction_id, | ||||
| ) | ), | ||||
| ), | ), | ||||
| pht('Show Older Messages')); | pht('Show Older Messages')); | ||||
| } | } | ||||
| return hsprintf('%s%s', $scrollbutton, $transactions); | return hsprintf('%s%s', $scrollbutton, $transactions); | ||||
| } | } | ||||
| private function renderFormContent($latest_transaction_id) { | private function renderFormContent($latest_transaction_id) { | ||||
| ▲ Show 20 Lines • Show All 45 Lines • Show Last 20 Lines | |||||