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

34 lines
1,016 B
Plaintext
Raw Normal View History

2011-08-02 23:12:17 +02:00
<div class="inner">
<div class="actions-bar wat-cf">
2011-08-16 20:05:58 +02:00
<div class="header_info"><%= t(:current,:scope=>:folder) %>: <%= pretty_folder_name(@current_folder) %>
<span class="other_info">(<%= t(:total,:scope=>:message) %>: <%= @messages.total_entries %>)</span>
</div>
2011-08-02 23:12:17 +02:00
<%= will_paginate @messages %>
</div>
<table class="table">
<tbody>
<tr>
2011-08-24 19:20:13 +02:00
<th class="first"><input id="toggleall" class="checkbox toggle" type="checkbox" name="allbox"/></th>
2011-08-02 23:12:17 +02:00
<th><%= raw('&nbsp;') %></th>
2011-08-16 20:05:58 +02:00
<%= raw headers_links %>
2011-08-02 23:12:17 +02:00
<th class="last"></th>
</tr>
<% trclass = :even %>
<% @messages.each do |m| %>
2011-08-16 20:05:58 +02:00
<% m.unseen == true ? unseen = "unseen" : unseen = "" %>
<tr class="<%= trclass.to_s %> <%= unseen %>">
2011-08-02 23:12:17 +02:00
<%= render :partial => 'messages/row', :object => m %>
</tr>
<% trclass == :even ? trclass = :odd : trclass = :even %>
<% end %>
</tbody>
</table>
<div class="actions-bar wat-cf">
<%= will_paginate @messages %>
</div>
</div>