Differential D10585 Diff 25583 src/applications/differential/view/DifferentialDiffTableOfContentsView.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/view/DifferentialDiffTableOfContentsView.php
| Show First 20 Lines • Show All 154 Lines • ▼ Show 20 Lines | foreach ($changesets as $id => $changeset) { | ||||
| (isset($this->visibleChangesets[$id]) ? | (isset($this->visibleChangesets[$id]) ? | ||||
| pht('Loading...') : pht('?'))); | pht('Loading...') : pht('?'))); | ||||
| } | } | ||||
| if ($meta) { | if ($meta) { | ||||
| $meta = phutil_tag( | $meta = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => 'differential-toc-meta' | 'class' => 'differential-toc-meta', | ||||
| ), | ), | ||||
| $meta); | $meta); | ||||
| } | } | ||||
| if ($this->diff && $this->repository) { | if ($this->diff && $this->repository) { | ||||
| $paths[] = | $paths[] = | ||||
| $changeset->getAbsoluteRepositoryPath($this->repository, $this->diff); | $changeset->getAbsoluteRepositoryPath($this->repository, $this->diff); | ||||
| } | } | ||||
| $rows[] = array( | $rows[] = array( | ||||
| $char, | $char, | ||||
| $pchar, | $pchar, | ||||
| $desc, | $desc, | ||||
| array($link, $lines, $meta), | array($link, $lines, $meta), | ||||
| $cov, | $cov, | ||||
| $mcov | $mcov, | ||||
| ); | ); | ||||
| } | } | ||||
| $editor_link = null; | $editor_link = null; | ||||
| if ($paths && $this->user) { | if ($paths && $this->user) { | ||||
| $editor_link = $this->user->loadEditorLink( | $editor_link = $this->user->loadEditorLink( | ||||
| $paths, | $paths, | ||||
| 1, // line number | 1, // line number | ||||
| Show All 17 Lines | $reveal_link = javelin_tag( | ||||
| 'mustcapture' => true, | 'mustcapture' => true, | ||||
| 'class' => 'button differential-toc-reveal-all', | 'class' => 'button differential-toc-reveal-all', | ||||
| ), | ), | ||||
| pht('Show All Context')); | pht('Show All Context')); | ||||
| $buttons = phutil_tag( | $buttons = phutil_tag( | ||||
| 'div', | 'div', | ||||
| array( | array( | ||||
| 'class' => 'differential-toc-buttons grouped' | 'class' => 'differential-toc-buttons grouped', | ||||
| ), | ), | ||||
| array( | array( | ||||
| $editor_link, | $editor_link, | ||||
| $reveal_link | $reveal_link, | ||||
| )); | )); | ||||
| $table = id(new AphrontTableView($rows)); | $table = id(new AphrontTableView($rows)); | ||||
| $table->setHeaders( | $table->setHeaders( | ||||
| array( | array( | ||||
| '', | '', | ||||
| '', | '', | ||||
| '', | '', | ||||
| ▲ Show 20 Lines • Show All 100 Lines • Show Last 20 Lines | |||||