- <table class="messages">
- <thead>
- <tr>
- <th><%= t '.from' %></th>
- <th><%= t '.subject' %></th>
- <th><%= t '.date' %></th>
- <th></th>
- <th></th>
- </tr>
- </thead>
- <tbody>
- <%= render :partial => "message_summary", :collection => current_user.messages %>
- </tbody>
- </table>
+ <%= render :partial => "messages_table", :locals => { :columns => %w[from subject date], :messages => current_user.messages, :inner_partial => "message_summary" } %>