Skip to content

Commit

Permalink
Merge pull request #199 from eriksencosta/source-links
Browse files Browse the repository at this point in the history
Fix the "Source" links extensions
  • Loading branch information
theseer committed Jan 26, 2015
2 parents 8ecb6e1 + e07df07 commit 3e85a1d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion templates/html/class.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
<li><a href="#history">History</a></li>
</xsl:if>
<xsl:if test="$unit/@start"><!-- hack: test for start line == we know something about this class -->
<li><a href="{$base}source/{$unit/pdx:file/@relative}.xhtml#line{$unit/@start}">Source</a></li>
<li><a href="{$base}source/{$unit/pdx:file/@relative}.{$extension}#line{$unit/@start}">Source</a></li>
</xsl:if>
</ul>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion templates/html/interface.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@
<li><a href="#methods">Methods</a></li>
</xsl:if>
<xsl:if test="$unit/@start"><!-- hack: test for start line == we know something about this class -->
<li><a href="{$base}source/{$unit/pdx:file/@relative}.xhtml#line{$unit/@start}">Source</a></li>
<li><a href="{$base}source/{$unit/pdx:file/@relative}.{$extension}#line{$unit/@start}">Source</a></li>
</xsl:if>
</ul>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion templates/html/method.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@
<li><a href="#tasks">Tasks</a></li>
</xsl:if>
<xsl:if test="$unit/@start"><!-- hack: test for start line == we know something about this class -->
<li><a href="{$base}source/{$unit/pdx:file/@relative}.xhtml#line{$method/@start}">Source</a></li>
<li><a href="{$base}source/{$unit/pdx:file/@relative}.{$extension}#line{$method/@start}">Source</a></li>
</xsl:if>

</ul>
Expand Down

0 comments on commit 3e85a1d

Please sign in to comment.