Skip to content

Commit

Permalink
feat(hal browser): improve readability of link collections
Browse files Browse the repository at this point in the history
  • Loading branch information
bethesque committed Sep 15, 2017
1 parent 354374c commit 0a9bc8c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vendor/hal-browser/browser.html
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,8 @@ <h2>Links</h2>
<% if ($.isArray(obj)) { %>
<% _.each(obj, function(link, i) { %>
<tr>
<td><strong><%= HAL.truncateIfUrl(rel) %></strong></td>
<% tdStyle = i > 0 ? "border-top:none" : "" %>
<td style="<%= tdStyle %>"><strong><%= i === 0 ? HAL.truncateIfUrl(rel) : '' %></strong></td>
<td><%= link.title || '' %></td>
<td><%= link.name ? 'name: ' + link.name : 'index: ' + i %></a></td>
<td>
Expand Down

0 comments on commit 0a9bc8c

Please sign in to comment.