mailr/app/views/folders/index.html.erb

49 lines
1.2 KiB
Text
Raw Normal View History

2009-09-01 16:10:46 +02:00
<h1><%=t :mailbox %></h1>
<div id="header">
<ul id="primary">
2009-09-01 16:10:46 +02:00
<li><span><%= t :folders %></span>
<ul id="secondary">
<li><%=link_back_to_messages%></li>
</ul>
</li>
<li><%=link_send_mail%></li>
<li><%=link_mail_prefs%></li>
<li><%=link_mail_filters%></li>
<li><%=link_main%></li>
</ul>
</div>
<div id="tab_main">
<div id="tab_content">
<% content_for('sidebar') { %>
<div id="folders">
2009-09-01 16:10:46 +02:00
<h4><%= t :add_folder %></h4>
<hr/>
2009-02-07 22:22:25 +01:00
<% form_tag folders_path, :id => 'new_folder' do %>
<ul>
2009-09-01 16:10:46 +02:00
<li><label for='folder'><%= t :name %>:</label></li>
2009-02-07 22:22:25 +01:00
<li><%= text_field_tag 'folder', '', :size => 18 %></li>
2009-09-01 16:10:46 +02:00
<li><%= submit_tag t(:add_folder) %></li>
</ul>
2009-02-07 22:22:25 +01:00
<% end %>
</div>
<% } %>
<div id="messages">
<div id='msg-fl-list'>
<table>
2009-09-01 16:10:46 +02:00
<thead><tr><th><%= t :folder %></th><th><%= t :total_messages %></th><th><%= t :unseen%></th></tr></thead>
<tbody>
<% for folder in @folders %>
<tr>
<td><%=folder_manage_link(folder)%></td>
<td><%= folder.total %></td>
<td><%= folder.unseen > 0 ? "<b>#{folder.unseen}</b>" : "#{folder.unseen}" %></td></tr>
<% end %>
</tbody>
</table>
</div>
</div>
</div>
</div>