Skip to content

Commit

Permalink
Merge pull request #1237 from CPAN-API/tsibley/show-module-version
Browse files Browse the repository at this point in the history
Show module version on documentation page
  • Loading branch information
oalders committed Jun 30, 2014
2 parents 4ff2e65 + 1acd819 commit ee340ce
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
11 changes: 6 additions & 5 deletions lib/MetaCPAN/Web/Controller/Pod.pm
Expand Up @@ -163,11 +163,12 @@ sub view : Private {

$c->stash(
{
module => $data,
pod => $hr->process( $reqs->{pod}->{raw} ),
release => $release,
template => 'pod.html',
canonical => $canonical,
module => $data,
pod => $hr->process( $reqs->{pod}->{raw} ),
release => $release,
template => 'pod.html',
canonical => $canonical,
documented_module => $documented_module,
}
);
unless ( $reqs->{pod}->{raw} ) {
Expand Down
7 changes: 7 additions & 0 deletions root/pod.html
Expand Up @@ -12,6 +12,13 @@
</form>
</li>
<li class="nav-header"><span class="relatize"><% module.date.dt_http %></span></li>
<% IF documented_module.version %>
<li>
<div>
Module version: <% documented_module.version | html %>
</div>
</li>
<% END %>
<li>
<div>
<a href="/source/<% module.author %>/<% module.release %>/<% module.path %>">Source</a>
Expand Down

0 comments on commit ee340ce

Please sign in to comment.