Skip to content
Browse files

Make line numbers clickable.

  • Loading branch information...
1 parent 52d2870 commit 03e557137cef8edb67988de9d0f4b66723cb6b28 @sebastianbergmann committed Sep 27, 2006
Showing with 7 additions and 1 deletion.
  1. +3 −1 PHPUnit/Util/Report/Coverage/Node/File.php
  2. +4 −0 PHPUnit/Util/Report/Template/style.css
View
4 PHPUnit/Util/Report/Coverage/Node/File.php
@@ -304,9 +304,11 @@ public function render($target, $title)
}
$lines .= sprintf(
- '<span class="lineNum">%8d </span>%s%s%s' . "\n",
+ '<span class="lineNum"><a name="%d"></a><a href="#%d">%8d</a> </span>%s%s%s' . "\n",
$i,
+ $i,
+ $i,
!empty($css) ? $css : ' : ',
$line . str_repeat(' ', array_shift($this->codeLinesFillup)),
!empty($css) ? '</span>' : ''
View
4 PHPUnit/Util/Report/Template/style.css
@@ -321,6 +321,10 @@ span.lineNum
background-color: #e9b96e;
}
+span.lineNum a {
+ text-decoration: none;
+}
+
/* Source code view: format for lines which were executed */
span.lineCov
{

0 comments on commit 03e5571

Please sign in to comment.
Something went wrong with that request. Please try again.