mailr/themes/olive/views/messages/_messages.html.erb
Wojciech Todryk 7879dd49a2 devel
2011-09-09 22:10:25 +02:00

34 lines
1,020 B
Plaintext
Executable file

<div class="inner">
<div class="actions-bar wat-cf">
<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>
<%= will_paginate @messages %>
</div>
<table class="table">
<tbody>
<tr>
<th class="first"><input id="toggleall" class="checkbox toggle" type="checkbox" name="allbox"/></th>
<th><%= raw('&nbsp;') %></th>
<%= raw headers_links %>
<th class="last"></th>
</tr>
<% trclass = :even %>
<% @messages.each do |m| %>
<% m.unseen == true ? unseen = "unseen" : unseen = "" %>
<tr class="<%= trclass.to_s %> <%= unseen %>">
<%= render :partial => 'messages/message', :object => m %>
</tr>
<% trclass == :even ? trclass = :odd : trclass = :even %>
<% end %>
</tbody>
</table>
<div class="actions-bar wat-cf">
<%= will_paginate @messages %>
</div>
</div>