diff --git a/src/__celerity_resource_map__.php b/src/__celerity_resource_map__.php index cfaea7fab7..5520a1d9e6 100644 --- a/src/__celerity_resource_map__.php +++ b/src/__celerity_resource_map__.php @@ -2878,7 +2878,7 @@ celerity_register_resource_map(array( ), 'phabricator-chatlog-css' => array( - 'uri' => '/res/f6631adc/rsrc/css/application/chatlog/chatlog.css', + 'uri' => '/res/b5600765/rsrc/css/application/chatlog/chatlog.css', 'type' => 'css', 'requires' => array( diff --git a/src/applications/chatlog/controller/PhabricatorChatLogChannelListController.php b/src/applications/chatlog/controller/PhabricatorChatLogChannelListController.php index a33cdd6450..c67a6fe32f 100644 --- a/src/applications/chatlog/controller/PhabricatorChatLogChannelListController.php +++ b/src/applications/chatlog/controller/PhabricatorChatLogChannelListController.php @@ -11,43 +11,16 @@ final class PhabricatorChatLogChannelListController ->setViewer($user) ->execute(); - $rows = array(); + $list = new PhabricatorObjectItemListView(); foreach ($channels as $channel) { - $rows[] = array( - phutil_tag( - 'a', - array( - 'href' => - '/chatlog/channel/'.$channel->getID().'/', - ), - $channel->getChannelName()), - $channel->getServiceName(), - $channel->getServiceType()); + $item = id(new PhabricatorObjectItemView()) + ->setHeader($channel->getChannelName()) + ->setHref('/chatlog/channel/'.$channel->getID().'/') + ->addAttribute($channel->getServiceName()) + ->addAttribute($channel->getServiceType()); + $list->addItem($item); } - $table = new AphrontTableView($rows); - $table->setHeaders( - array( - pht('Channel'), - pht('Service Name'), - pht('Service Type'), - )); - $table->setColumnClasses( - array( - '', - '', - '', - )); - - $title = pht('Channel List'); - - $header = id(new PhabricatorHeaderView()) - ->setHeader($title); - - $panel = id(new AphrontPanelView()) - ->appendChild($table) - ->setNoBackground(true); - $crumbs = $this ->buildApplicationCrumbs() ->addCrumb( @@ -55,14 +28,15 @@ final class PhabricatorChatLogChannelListController ->setName(pht('Channel List')) ->setHref($this->getApplicationURI())); - return $this->buildStandardPageResponse( + return $this->buildApplicationPage( array( $crumbs, - $header, - $panel, + $list, ), array( 'title' => pht('Channel List'), + 'device' => true, + 'dust' => true, )); } } diff --git a/src/applications/chatlog/controller/PhabricatorChatLogChannelLogController.php b/src/applications/chatlog/controller/PhabricatorChatLogChannelLogController.php index 5629f88029..c31642c3bb 100644 --- a/src/applications/chatlog/controller/PhabricatorChatLogChannelLogController.php +++ b/src/applications/chatlog/controller/PhabricatorChatLogChannelLogController.php @@ -107,27 +107,36 @@ final class PhabricatorChatLogChannelLogController $author = phutil_utf8_shorten($author, 18); $author = phutil_tag('td', array('class' => 'author'), $author); - $message = mpull($block['logs'], 'getMessage'); - $message = implode("\n", $message); - $message = phutil_tag('td', array('class' => 'message'), $message); - $href = $uri->alter('at', $block['id']); $timestamp = $block['epoch']; $timestamp = phabricator_datetime($timestamp, $user); - $timestamp = phutil_tag('a', array('href' => $href), $timestamp); $timestamp = phutil_tag( - 'td', - array( - 'class' => 'timestamp', - ), + 'a', + array( + 'href' => $href, + 'class' => 'timestamp' + ), $timestamp); + $message = mpull($block['logs'], 'getMessage'); + $message = implode("\n", $message); + $message = phutil_tag( + 'td', + array( + 'class' => 'message' + ), + array( + $timestamp, + $message)); + $out[] = phutil_tag( 'tr', array( 'class' => $block['class'], ), - array($author, $message, $timestamp)); + array( + $author, + $message)); } $crumbs = $this @@ -141,6 +150,7 @@ final class PhabricatorChatLogChannelLogController ->setUser($user) ->setMethod('GET') ->setAction($uri) + ->setNoShading(true) ->appendChild( id(new AphrontFormTextControl()) ->setLabel(pht('Date')) @@ -150,18 +160,41 @@ final class PhabricatorChatLogChannelLogController id(new AphrontFormSubmitControl()) ->setValue(pht('Jump'))); + $filter = new AphrontListFilterView(); + $filter->appendChild($form); - return $this->buildStandardPageResponse( + $table = phutil_tag( + 'table', + array( + 'class' => 'phabricator-chat-log' + ), + $out); + + $log = phutil_tag( + 'div', + array( + 'class' => 'phabricator-chat-log-panel' + ), + $table); + + $content = phutil_tag( + 'div', + array( + 'class' => 'phabricator-chat-log-wrap' + ), + $log); + + return $this->buildApplicationPage( array( $crumbs, - hsprintf( - '