mailr/themes/olive/views/contacts/_list.html.erb

26 lines
708 B
Plaintext
Raw Normal View History

2011-08-16 20:05:58 +02:00
<div class="inner">
<div class="actions-bar wat-cf">
2011-09-16 19:44:29 +02:00
<span class="other_info"> <%= t(:total_entries,:scope=>:contact) %>: <%= @contacts.total_entries %></span>
<%= will_paginate @contacts %>
2011-08-16 20:05:58 +02:00
</div>
<table class="table">
2011-09-16 19:44:29 +02:00
<tbody>
<tr>
<th class="first"><input id="toggleall" class="checkbox toggle" type="checkbox" name="allbox"/></th>
<%= raw contacts_table_header %>
<th class="last"></th>
</tr>
<% trclass = :even %>
<% @contacts.each do |c| %>
<tr class="<%= trclass.to_s %>">
<%= render :partial => 'contacts/contact', :object => c %>
</tr>
<% trclass == :even ? trclass = :odd : trclass = :even %>
<% end %>
</tbody>
</table>
2011-08-16 20:05:58 +02:00
<div class="actions-bar wat-cf">
2011-09-16 19:44:29 +02:00
<%= will_paginate @contacts %>
2011-08-16 20:05:58 +02:00
</div>
</div>