Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: CPAN-API/metacpan-web
...
head fork: CPAN-API/metacpan-web
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 12 additions and 7 deletions.
  1. +11 −6 root/inc/breadcrumbs.html
  2. +1 −1  root/inc/release-tools.html
17 root/inc/breadcrumbs.html
View
@@ -7,6 +7,9 @@
<ul class="dropdown-menu">
<%-
backpan = [];
+MACRO breadcrumb_link(version) BLOCK %>
+ <li><a href="/<% [(module ? 'module' : 'release'), version.author, version.name, module.path].join('/') %>"><% version.version _ (version.maturity == 'developer' ? ' DEV' : '') %> (<% version.date.dt_date_common %>)</a></li>
+<%- END;
FOREACH version IN versions;
IF release.name == version.name;
NEXT;
@@ -14,16 +17,14 @@
IF version.status == 'backpan';
backpan.push(version);
NEXT;
- END %>
- <li><a href="<% version.author; '/'; version.name; '/'; module.name %>"><% version.version _ (version.maturity == 'developer' ? ' DEV' : '') %> (<% version.date.dt_date_common %>)</a></li>
- <%-
END;
+ breadcrumb_link(version) | none;
+END;
IF backpan.size > 1 %>
<li class="nav-header">BackPAN</li>
<%
- FOREACH version IN backpan %>
- <li><a href="<% version.author; '/'; version.name; '/'; module.name %>"><% version.version _ (version.maturity == 'developer' ? ' DEV' : '') %> (<% version.date.dt_date_common %>)</a></li>
- <%
+ FOREACH version IN backpan;
+ breadcrumb_link(version) | none;
END;
END;
END %>
@@ -35,7 +36,11 @@
<% author.name || release.author %>
</a>
<span>&nbsp;/&nbsp;</span>
+ <%- IF module %>
<a href="/release/<% IF release.status == 'latest'; release.distribution; ELSE; [module.author, module.release].join('/'); END %>"><% release.name %></a>
+ <%- ELSE %>
+ <span><% release.name %></span>
+ <%- END %>
<% PROCESS version_dropdown %>
<%- IF module %>
<span>&nbsp;/&nbsp;
2  root/inc/release-tools.html
View
@@ -55,7 +55,7 @@
<%- IF !module || module.documentation %>
<li>
<div>
- <a href="/<% module ? "module" : "release" %>/<% release.distribution || module.documentation %>">Latest version</a>
+ <a href="/<% module ? "module" : "release" %>/<% module.documentation || release.distribution %>">Latest version</a>
</div>
</li>
<%- END %>

No commit comments for this range

Something went wrong with that request. Please try again.