Skip to content

Instantly share code, notes, and snippets.

@EminenceHC
Created November 12, 2014 23:23
Show Gist options
  • Save EminenceHC/310ccc8c2d96596a4035 to your computer and use it in GitHub Desktop.
Save EminenceHC/310ccc8c2d96596a4035 to your computer and use it in GitHub Desktop.
Index "rank" by date
<h2>Missing Client Progress Reports</h2>
<table>
<thead>
<th style="background:#00467F;color:#fff;">Last Week Completed</th>
<th style="background:#737A35;color:#fff;">Rank</th>
</thead>
<tbody>
<% @active_schools.each_with_index do |s, i| %>
<td style="border-bottom: 1px solid;border-right: 1px solid;">
<%= s.progress_report_date %>
</td>
<% indexplusone = i + 1 %>
<%= indexplusone %>
</td>
</tr>
<% end %>
</tbody>
</table>
<br>
<%= image_tag attachments['ecore2.png'].url, alt: 'eCore' %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment