Differential D10392 Diff 25011 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 102 Lines • ▼ Show 20 Lines | public function processRequest() { | ||||
| } | } | ||||
| require_celerity_resource('phabricator-chatlog-css'); | require_celerity_resource('phabricator-chatlog-css'); | ||||
| $out = array(); | $out = array(); | ||||
| foreach ($blocks as $block) { | foreach ($blocks as $block) { | ||||
| $author = $block['author']; | $author = $block['author']; | ||||
| $author = phutil_utf8_shorten($author, 18); | $author = id(new PhutilUTF8StringTruncator()) | ||||
| ->setMaximumGlyphs(18) | |||||
| ->truncateString($author); | |||||
| $author = phutil_tag('td', array('class' => 'author'), $author); | $author = phutil_tag('td', array('class' => 'author'), $author); | ||||
| $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( | ||||
| ▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines | |||||