Skip to content

Commit

Permalink
use version specific release links for non-latest releases
Browse files Browse the repository at this point in the history
It is possible for a module to be listed as latest, while the dist it is
in is not.  While this indicates a bug in the indexing process, we
should still be presenting working links.
  • Loading branch information
haarg committed Dec 1, 2016
1 parent 94f00c3 commit da4a57e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion root/inc/breadcrumbs.html
Expand Up @@ -37,7 +37,7 @@
<span class="dropdown"><b class="caret"></b></span>
<select class="<% module ? "" : "extend" %>" onchange="document.location.href=this.value"><% PROCESS version_dropdown %></select>
<% IF module %>
<a data-keyboard-shortcut="g d" class="release-name" href="/release/<% IF permalinks; [module.author, module.release].join('/'); ELSE; release.distribution; END %>"><% release.name %></a>
<a data-keyboard-shortcut="g d" class="release-name" href="/release/<% IF permalinks || release.status != 'latest'; [module.author, module.release].join('/'); ELSE; release.distribution; END %>"><% release.name %></a>
<% ELSE %>
<span class="release-name"><% release.name %></span>
<% END %>
Expand Down

0 comments on commit da4a57e

Please sign in to comment.