Permalink
Browse files

Fix breadcrumb links for modules and releases

  • Loading branch information...
1 parent 423aaaa commit 072ba641eded7b333f14ff97dc6b6f68dea65ef6 @rwstauner rwstauner committed Mar 30, 2013
Showing with 7 additions and 6 deletions.
  1. +7 −6 root/inc/breadcrumbs.html
View
@@ -7,23 +7,24 @@
<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;
END;
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 %>

0 comments on commit 072ba64

Please sign in to comment.