lib/rdoc/generator/template/rails/file.rhtml in sdoc-0.3.6 vs lib/rdoc/generator/template/rails/file.rhtml in sdoc-0.3.7
- old
+ new
@@ -15,10 +15,18 @@
<% end %>
<h1>
<%= h file.name %>
</h1>
<ul class="files">
- <li><%= h file.relative_name %></li>
+ <%
+ github = github_url(file.relative_name) if options.github
+ %>
+ <li>
+ <%= h file.relative_name %>
+ <% if github %>
+ <a href="<%= github %>" target="_blank" class="github_url">on GitHub</a>
+ <% end %>
+ </li>
<li>Last modified: <%= file.file_stat.mtime %></li>
</ul>
</div>
<div id="bodyContent">
\ No newline at end of file