<%= @box %> <% dirs = ['inbox','outbox'] dirs.delete(@box) dirs.each do |d| %>
<%= d %>
<% end %> <% @idx = 0 @threads.each do |object| @object = object %> <%= erb :object %> <% end %> <% unless @box == 'shared' %>
Delete all
<% end %>