Skip to content

Instantly share code, notes, and snippets.

@Rosa-Fox
Created August 18, 2016 14:33
Show Gist options
  • Save Rosa-Fox/20869ee6675aaf67dfd948560dbf360f to your computer and use it in GitHub Desktop.
Save Rosa-Fox/20869ee6675aaf67dfd948560dbf360f to your computer and use it in GitHub Desktop.
<% if i == truncate_at_count - 1 %>
<tr class="table-header">
<td colspan="3" class="js-toggle-target text-center">
<strong><a href="#expand-table" class="js-toggle">…and
<%= attachments.count - (truncate_at_count - 1) %> more</a>
</strong>
</td>
</tr>
<% end %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment