Sha256: e689ee604d3aa8f6245a1e55533c3ea71aecc2399d8e29b455635f8cb8e4723d
Contents?: true
Size: 558 Bytes
Versions: 5
Compression:
Stored size: 558 Bytes
Contents
<% page_title 'Contacts' %> <div class="page-header"> <h2>Contacts</h2> </div> <% if !@contacts || @contacts.empty? %> <p>No contacts</p> <% else %> <table class="table table-bordered table-hover table-condensed"> <tr> <th>Name</th> <th>Email</th> </tr> <% @contacts.sort_by {|c| [c.last_name, c.first_name] }.each do |contact| %> <tr> <td><a href="/contacts/<%= contact.id %>" title="contact details"><%= h contact.name %></a></td> <td><%= h contact.email %></td> </tr> <% end %> </table> <% end %>
Version data entries
5 entries across 5 versions & 1 rubygems