Changeset View
Changeset View
Standalone View
Standalone View
src/view/layout/PhabricatorSourceCodeView.php
Show First 20 Lines • Show All 66 Lines • ▼ Show 20 Lines | foreach ($this->lines as $line) { | ||||
$row_attributes = array(); | $row_attributes = array(); | ||||
if (isset($this->highlights[$line_number])) { | if (isset($this->highlights[$line_number])) { | ||||
$row_attributes['class'] = 'phabricator-source-highlight'; | $row_attributes['class'] = 'phabricator-source-highlight'; | ||||
} | } | ||||
if ($this->canClickHighlight) { | if ($this->canClickHighlight) { | ||||
$line_uri = $this->uri.'$'.$line_number; | $line_uri = $this->uri.'$'.$line_number; | ||||
$line_href = (string) new PhutilURI($line_uri); | $line_href = (string)new PhutilURI($line_uri); | ||||
$tag_number = javelin_tag( | $tag_number = javelin_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
'href' => $line_href, | 'href' => $line_href, | ||||
), | ), | ||||
$line_number); | $line_number); | ||||
} else { | } else { | ||||
▲ Show 20 Lines • Show All 49 Lines • Show Last 20 Lines |