v_box { div { collection_filter :log_entries h2(class: 'content-title') {"Log Entries"} } div { smart_table(:log_entries, columns: { "Date" => -> (log_entry) { log_entry.created_at.to_date }, 'Time EST' => -> (log_entry) { log_entry.created_at.strftime('%T') }, 'User' => -> (log_entry) { helpers.link_to_if(log_entry.username.present?, helpers.truncate(log_entry.username||'', length: 25), log_entries_path(filter: {username: log_entry.username})) }, 'Action' => -> (log_entry) { helpers.link_to(log_entry.action, log_entries_path(filter: {action: log_entry.action}))}, 'When' => :created_at_in_words, 'Notes' => :notes }, show_search: false) } }