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