Skip to content

Commit 0a9bc8c

Browse files
committed
feat(hal browser): improve readability of link collections
1 parent 354374c commit 0a9bc8c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

vendor/hal-browser/browser.html

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ <h2>Links</h2>
6363
<% if ($.isArray(obj)) { %>
6464
<% _.each(obj, function(link, i) { %>
6565
<tr>
66-
<td><strong><%= HAL.truncateIfUrl(rel) %></strong></td>
66+
<% tdStyle = i > 0 ? "border-top:none" : "" %>
67+
<td style="<%= tdStyle %>"><strong><%= i === 0 ? HAL.truncateIfUrl(rel) : '' %></strong></td>
6768
<td><%= link.title || '' %></td>
6869
<td><%= link.name ? 'name: ' + link.name : 'index: ' + i %></a></td>
6970
<td>

0 commit comments

Comments
 (0)