Changeset View
Changeset View
Standalone View
Standalone View
src/view/layout/PhabricatorSourceCodeView.php
Show First 20 Lines • Show All 79 Lines • ▼ Show 20 Lines | foreach ($lines as $line) { | ||||
$content_line = hsprintf("\xE2\x80\x8B%s", $line); | $content_line = hsprintf("\xE2\x80\x8B%s", $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) { | ||||
if ($base_uri) { | |||||
$line_href = $base_uri.'$'.$line_number; | $line_href = $base_uri.'$'.$line_number; | ||||
} else { | |||||
$line_href = null; | |||||
} | |||||
$tag_number = phutil_tag( | $tag_number = phutil_tag( | ||||
'a', | 'a', | ||||
array( | array( | ||||
'href' => $line_href, | 'href' => $line_href, | ||||
), | ), | ||||
$line_number); | $line_number); | ||||
} else { | } else { | ||||
▲ Show 20 Lines • Show All 47 Lines • Show Last 20 Lines |