Sha256: bfc56a31959c6e04bd272250c52230a89e29ed2f04365963094b39713ba4e8e9

Contents?: true

Size: 654 Bytes

Versions: 15

Compression:

Stored size: 654 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 %>

<a href="/edit_contacts"/>
  Edit contacts
  <span class="label label-danger">beta</span>
</a>

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
flapjack-0.9.6 lib/flapjack/gateways/web/views/contacts.html.erb
flapjack-0.9.5 lib/flapjack/gateways/web/views/contacts.html.erb
flapjack-0.9.4 lib/flapjack/gateways/web/views/contacts.html.erb
flapjack-0.9.3 lib/flapjack/gateways/web/views/contacts.html.erb
flapjack-0.9.2 lib/flapjack/gateways/web/views/contacts.html.erb
flapjack-0.9.1 lib/flapjack/gateways/web/views/contacts.html.erb
flapjack-0.9.0 lib/flapjack/gateways/web/views/contacts.html.erb
flapjack-0.8.12 lib/flapjack/gateways/web/views/contacts.html.erb
flapjack-0.8.11 lib/flapjack/gateways/web/views/contacts.html.erb
flapjack-0.8.10 lib/flapjack/gateways/web/views/contacts.html.erb
flapjack-0.8.9 lib/flapjack/gateways/web/views/contacts.html.erb
flapjack-0.8.8 lib/flapjack/gateways/web/views/contacts.html.erb
flapjack-0.8.7 lib/flapjack/gateways/web/views/contacts.html.erb
flapjack-0.8.6 lib/flapjack/gateways/web/views/contacts.html.erb
flapjack-0.8.5 lib/flapjack/gateways/web/views/contacts.html.erb