mailr/themes/olive/views/shared/_messages.html.erb
Wojciech Todryk a7dd8c90c9 devel
2011-07-21 11:14:07 +02:00

32 lines
1.8 KiB
Plaintext
Executable file

<h2 class="title"><%= @folder_name %></h2>
<% if @messages.size.zero? %>
<div class="flash"><div class="message notice"><p><%= t :no_messages_found %></p></div></div>
<% else %>
<div class="inner">
<table class="table">
<tbody>
<tr>
<th class="first"><input type="checkbox" name="allbox" onclick="checkAll(this.form)"/></th>
<% if @folder_name == CDF::CONFIG[:mail_sent] %>
<th><%= link_to(t(:to), :controller=>:webmail, :action=>:messages, :op=>'SORT', :page=>@page, :scc=>'to_flat')%></th>
<% else %>
<th><%= link_to(t(:from), :controller=>:webmail, :action=>:messages, :op=>'SORT', :page=>@page, :scc=>'from_flat')%></th>
<% end%>
<th><%= link_to(t(:subject), :controller=>:webmail, :action=>:messages, :op=>'SORT', :page=>@page, :scc=>'subject')%></th>
<th><%= link_to(t(:date), :controller=>:webmail, :action=>:messages, :op=>'SORT', :page=>@page, :scc=>'date')%></th>
<th><%= link_to(t(:size), :controller=>:webmail, :action=>:messages, :op=>'SORT', :page=>@page, :scc=>'size')%></th>
<th class="last">&nbsp;</th>
</tr>
<% for message in @messages %>
<%= render :partial => 'message_row', :object => message %>
<% end %>
</tbody>
</table>
<div class="actions-bar wat-cf">
<div class="pagination">
<span class="disabled prev_page">« Previous</span><span class="current">1</span><a rel="next" href="#">2</a><a href="#">3</a><a href="#">4</a><a href="#">5</a><a href="#">6</a><a href="#">7</a><a href="#">8</a><a href="#">9</a><a href="#">10</a><a href="#">11</a><a rel="next" class="next_page" href="#">Next »</a>
</div>
</div>
<% end %>
</div>