Skip to content

Commit

Permalink
Show the module-specific version, if one exists, on the documentation…
Browse files Browse the repository at this point in the history
… page

This helps figure out your dependencies when modules are versioned
separately from the releases of their distributions.
  • Loading branch information
tsibley committed Jun 30, 2014
1 parent 97c046f commit 1acd819
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/MetaCPAN/Web/Controller/Pod.pm
Expand Up @@ -168,6 +168,7 @@ sub view : Private {
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 1acd819

Please sign in to comment.