diff --git a/resources/celerity/map.php b/resources/celerity/map.php index 547dbc29ac..b1620238b2 100644 --- a/resources/celerity/map.php +++ b/resources/celerity/map.php @@ -10,7 +10,7 @@ return array( 'core.pkg.css' => 'fb144113', 'core.pkg.js' => 'd3fecc57', 'darkconsole.pkg.js' => 'ca8671ce', - 'differential.pkg.css' => '3ad9692c', + 'differential.pkg.css' => 'cc216438', 'differential.pkg.js' => '11a5b750', 'diffusion.pkg.css' => '3783278d', 'diffusion.pkg.js' => '5b4010f4', @@ -55,13 +55,13 @@ return array( 'rsrc/css/application/countdown/timer.css' => '86b7b0a0', 'rsrc/css/application/diff/inline-comment-summary.css' => '14a91639', 'rsrc/css/application/differential/add-comment.css' => 'c478bcaa', - 'rsrc/css/application/differential/changeset-view.css' => 'e710a360', + 'rsrc/css/application/differential/changeset-view.css' => 'd1951f43', 'rsrc/css/application/differential/core.css' => '7ac3cabc', 'rsrc/css/application/differential/results-table.css' => '239924f9', 'rsrc/css/application/differential/revision-comment.css' => '48186045', 'rsrc/css/application/differential/revision-history.css' => '0e8eb855', 'rsrc/css/application/differential/revision-list.css' => 'f3c47d33', - 'rsrc/css/application/differential/table-of-contents.css' => '19566f76', + 'rsrc/css/application/differential/table-of-contents.css' => '6bf8e1d2', 'rsrc/css/application/diffusion/commit-view.css' => '92d1e8f9', 'rsrc/css/application/diffusion/diffusion-icons.css' => '384a0f7d', 'rsrc/css/application/diffusion/diffusion-source.css' => '66fdf661', @@ -505,7 +505,7 @@ return array( 'conpherence-notification-css' => '403cf598', 'conpherence-update-css' => '1099a660', 'conpherence-widget-pane-css' => '87b12e0c', - 'differential-changeset-view-css' => 'e710a360', + 'differential-changeset-view-css' => 'd1951f43', 'differential-core-view-css' => '7ac3cabc', 'differential-inline-comment-editor' => 'f2441746', 'differential-results-table-css' => '239924f9', @@ -513,7 +513,7 @@ return array( 'differential-revision-comment-css' => '48186045', 'differential-revision-history-css' => '0e8eb855', 'differential-revision-list-css' => 'f3c47d33', - 'differential-table-of-contents-css' => '19566f76', + 'differential-table-of-contents-css' => '6bf8e1d2', 'diffusion-commit-view-css' => '92d1e8f9', 'diffusion-icons-css' => '384a0f7d', 'diffusion-source-css' => '66fdf661', diff --git a/src/applications/differential/controller/DifferentialDiffViewController.php b/src/applications/differential/controller/DifferentialDiffViewController.php index dd909da1d6..7ef66f198b 100644 --- a/src/applications/differential/controller/DifferentialDiffViewController.php +++ b/src/applications/differential/controller/DifferentialDiffViewController.php @@ -138,6 +138,7 @@ final class DifferentialDiffViewController extends DifferentialController { ), array( 'title' => pht('Diff View'), + 'device' => true, )); } diff --git a/src/applications/differential/controller/DifferentialRevisionViewController.php b/src/applications/differential/controller/DifferentialRevisionViewController.php index 95f3efa7eb..6906e77ebd 100644 --- a/src/applications/differential/controller/DifferentialRevisionViewController.php +++ b/src/applications/differential/controller/DifferentialRevisionViewController.php @@ -447,6 +447,7 @@ final class DifferentialRevisionViewController extends DifferentialController { array( 'title' => $object_id.' '.$revision->getTitle(), 'pageObjects' => array($revision->getPHID()), + 'device' => true, )); } diff --git a/src/applications/differential/view/DifferentialDiffTableOfContentsView.php b/src/applications/differential/view/DifferentialDiffTableOfContentsView.php index 74391ef5f9..b77d6a4e3d 100644 --- a/src/applications/differential/view/DifferentialDiffTableOfContentsView.php +++ b/src/applications/differential/view/DifferentialDiffTableOfContentsView.php @@ -122,7 +122,7 @@ final class DifferentialDiffTableOfContentsView extends AphrontView { $line_count = $changeset->getAffectedLineCount(); if ($line_count == 0) { - $lines = null; + $lines = ''; } else { $lines = ' '.pht('(%d line(s))', $line_count); } @@ -135,7 +135,7 @@ final class DifferentialDiffTableOfContentsView extends AphrontView { } $pchar = ($changeset->getOldProperties() === $changeset->getNewProperties()) - ? null + ? '' : phutil_tag('span', array('title' => pht('Properties Changed')), 'M') ; @@ -150,33 +150,32 @@ final class DifferentialDiffTableOfContentsView extends AphrontView { 'id' => 'differential-mcoverage-'.md5($fname), 'class' => 'differential-mcoverage-loading', ), - (isset($this->visibleChangesets[$id]) ? 'Loading...' : '?')); + (isset($this->visibleChangesets[$id]) ? + pht('Loading...') : pht('?'))); } - $rows[] = phutil_tag('tr', array(), array( - phutil_tag( - 'td', - array('class' => 'differential-toc-char', 'title' => $chartitle), - $char), - phutil_tag('td', array('class' => 'differential-toc-prop'), $pchar), - phutil_tag('td', array('class' => 'differential-toc-ftype'), $desc), - phutil_tag( - 'td', - array('class' => 'differential-toc-file'), - array($link, $lines)), - phutil_tag('td', array('class' => 'differential-toc-cov'), $cov), - phutil_tag('td', array('class' => 'differential-toc-mcov'), $mcov), - )); if ($meta) { - $rows[] = phutil_tag('tr', array(), array( - phutil_tag('td', array('colspan' => 3)), - phutil_tag('td', array('class' => 'differential-toc-meta'), $meta), - )); + $meta = phutil_tag( + 'div', + array( + 'class' => 'differential-toc-meta' + ), + $meta); } + if ($this->diff && $this->repository) { $paths[] = $changeset->getAbsoluteRepositoryPath($this->repository, $this->diff); } + + $rows[] = array( + $char, + $pchar, + $desc, + array($link, $lines, $meta), + $cov, + $mcov + ); } $editor_link = null; @@ -206,37 +205,53 @@ final class DifferentialDiffTableOfContentsView extends AphrontView { ), pht('Show All Context')); - $buttons = phutil_tag('tr', array(), - phutil_tag('td', array('colspan' => 7), - array($editor_link, $reveal_link))); + $buttons = phutil_tag( + 'div', + array( + 'class' => 'differential-toc-buttons grouped' + ), + array( + $editor_link, + $reveal_link + )); - $content = hsprintf( - '%s'. - '
'. - ' | '. - ' | '. - ' | Path | '. - '%s | '. - '%s | '. - '
---|