Differential D10585 Diff 25583 src/applications/chatlog/controller/PhabricatorChatLogChannelLogController.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/chatlog/controller/PhabricatorChatLogChannelLogController.php
| Show First 20 Lines • Show All 114 Lines • ▼ Show 20 Lines | foreach ($blocks as $block) { | ||||
| $href = $uri->alter('at', $block['id']); | $href = $uri->alter('at', $block['id']); | ||||
| $timestamp = $block['epoch']; | $timestamp = $block['epoch']; | ||||
| $timestamp = phabricator_datetime($timestamp, $user); | $timestamp = phabricator_datetime($timestamp, $user); | ||||
| $timestamp = phutil_tag( | $timestamp = phutil_tag( | ||||
| 'a', | 'a', | ||||
| array( | array( | ||||
| 'href' => $href, | 'href' => $href, | ||||
| 'class' => 'timestamp' | 'class' => 'timestamp', | ||||
| ), | ), | ||||
| $timestamp); | $timestamp); | ||||
| $message = mpull($block['logs'], 'getMessage'); | $message = mpull($block['logs'], 'getMessage'); | ||||
| $message = implode("\n", $message); | $message = implode("\n", $message); | ||||
| $message = phutil_tag( | $message = phutil_tag( | ||||
| 'td', | 'td', | ||||
| array( | array( | ||||
| 'class' => 'message' | 'class' => 'message', | ||||
| ), | ), | ||||
| array( | array( | ||||
| $timestamp, | $timestamp, | ||||
| $message)); | $message, | ||||
| )); | |||||
| $out[] = phutil_tag( | $out[] = phutil_tag( | ||||
| 'tr', | 'tr', | ||||
| array( | array( | ||||
| 'class' => $block['class'], | 'class' => $block['class'], | ||||
| ), | ), | ||||
| array( | array( | ||||
| $author, | $author, | ||||
| $message)); | $message, | ||||
| )); | |||||
| } | } | ||||
| $links = array(); | $links = array(); | ||||
| $first_uri = $pager->getFirstPageURI(); | $first_uri = $pager->getFirstPageURI(); | ||||
| if ($first_uri) { | if ($first_uri) { | ||||
| $links[] = phutil_tag( | $links[] = phutil_tag( | ||||
| 'a', | 'a', | ||||
| ▲ Show 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | $form = id(new AphrontFormView()) | ||||
| ->setValue(pht('Jump'))); | ->setValue(pht('Jump'))); | ||||
| $filter = new AphrontListFilterView(); | $filter = new AphrontListFilterView(); | ||||
| $filter->appendChild($form); | $filter->appendChild($form); | ||||
| $table = phutil_tag( | $table = phutil_tag( | ||||
| 'table', | 'table', | ||||
| array( | array( | ||||
| 'class' => 'phabricator-chat-log' | 'class' => 'phabricator-chat-log', | ||||
| ), | ), | ||||
| $out); | $out); | ||||
| $log = phutil_tag( | $log = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => 'phabricator-chat-log-panel' | 'class' => 'phabricator-chat-log-panel', | ||||
| ), | ), | ||||
| $table); | $table); | ||||
| $jump_link = phutil_tag( | $jump_link = phutil_tag( | ||||
| 'a', | 'a', | ||||
| array( | array( | ||||
| 'href' => '#latest' | 'href' => '#latest', | ||||
| ), | ), | ||||
| pht('Jump to Bottom')." \xE2\x96\xBE"); | pht('Jump to Bottom')." \xE2\x96\xBE"); | ||||
| $jump = phutil_tag( | $jump = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => 'phabricator-chat-log-jump' | 'class' => 'phabricator-chat-log-jump', | ||||
| ), | ), | ||||
| $jump_link); | $jump_link); | ||||
| $jump_target = phutil_tag( | $jump_target = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'id' => 'latest' | 'id' => 'latest', | ||||
| )); | )); | ||||
| $content = phutil_tag( | $content = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => 'phabricator-chat-log-wrap' | 'class' => 'phabricator-chat-log-wrap', | ||||
| ), | ), | ||||
| array( | array( | ||||
| $jump, | $jump, | ||||
| $pager_top, | $pager_top, | ||||
| $log, | $log, | ||||
| $jump_target, | $jump_target, | ||||
| $pager_bottom, | $pager_bottom, | ||||
| )); | )); | ||||
| ▲ Show 20 Lines • Show All 76 Lines • Show Last 20 Lines | |||||