2009-01-07 20:27:12 +01:00
|
|
|
<h1><%=_('Mailbox')%></h1>
|
|
|
|
<div id="header">
|
|
|
|
<ul id="primary">
|
|
|
|
<li><span><%= _('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">
|
|
|
|
<h4><%=_('Add folder')%></h4>
|
|
|
|
<hr/>
|
2009-02-07 22:22:25 +01:00
|
|
|
<% form_tag folders_path, :id => 'new_folder' do %>
|
2009-01-07 20:27:12 +01:00
|
|
|
<ul>
|
2009-02-07 22:22:25 +01:00
|
|
|
<li><label for='folder'><%=_('Name')%>:</label></li>
|
|
|
|
<li><%= text_field_tag 'folder', '', :size => 18 %></li>
|
|
|
|
<li><%= submit_tag _('Add folder') %></li>
|
2009-01-07 20:27:12 +01:00
|
|
|
</ul>
|
2009-02-07 22:22:25 +01:00
|
|
|
<% end %>
|
2009-01-07 20:27:12 +01:00
|
|
|
</div>
|
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<div id="messages">
|
|
|
|
<div id='msg-fl-list'>
|
|
|
|
<table>
|
|
|
|
<thead><tr><th><%=_('Folder')%></th><th><%= _('Total messages') %></th><th><%= _('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>
|