:ruby show_path = if datatables_active_admin_path? admin_effective_log_path(log) elsif datatables_admin_path? effective_logging.admin_log_path(log) else effective_logging.log_path(log) end - if log.logs_count.to_i > 0 = link_to "View (#{log.logs_count} more)".html_safe, show_path - else = link_to 'View', show_path