Skip to content

Commit

Permalink
Simpler and more flexible to use changeset ID as the anchor.
Browse files Browse the repository at this point in the history
This allows multiple changelogs to be shown in a single page.
  • Loading branch information
jglick committed Jun 6, 2014
1 parent fc36459 commit 7d45efa
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

<h2>Summary</h2>
<ol>
<j:forEach var="cs" items="${it.logs}" varStatus="loop">
<li>${cs.msgAnnotated} (<a href="#detail${loop.index}">details</a>)</li>
<j:forEach var="cs" items="${it.logs}">
<li>${cs.msgAnnotated} (<a href="#${cs.id}">details</a>)</li>
</j:forEach>
</ol>
<table class="pane" style="border:none">
<j:forEach var="cs" items="${it.logs}" varStatus="loop">
<j:forEach var="cs" items="${it.logs}">
<tr class="pane">
<td colspan="2" class="changeset">
<a name="detail${loop.index}"></a>
<a name="${cs.id}"></a>
<div class="changeset-message">
<b>
Commit
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ THE SOFTWARE.
(<i:formatDate value="${b.timestamp.time}" type="both" dateStyle="medium" timeStyle="medium"/>)</a></h2>

<ol>
<j:forEach var="c" items="${changeSet.iterator()}" varStatus="loop">
<li value="${loop.index + 1}">
<j:forEach var="c" items="${changeSet.iterator()}">
<li>
${c.msgAnnotated}

&#8212;
Expand All @@ -61,7 +61,7 @@ THE SOFTWARE.
<a href="${cslink}">${browser.descriptor.displayName}</a>
</j:when>
<j:otherwise>
<a href="${b.number}/changes#detail${loop.index}">${%detail}</a>
<a href="${b.number}/changes#${c.id}">${%detail}</a>
</j:otherwise>
</j:choose>
</li>
Expand Down

0 comments on commit 7d45efa

Please sign in to comment.