app/views/effective/logs/_log.html.haml in effective_logging-3.4.1 vs app/views/effective/logs/_log.html.haml in effective_logging-3.5.0

- old
+ new

@@ -1,12 +1,9 @@ .panel.panel-default.card .panel-heading.card-header .row .col-md-8 - - parents_of_log(log).each do |parent| - = link_to(log.message, request.fullpath.sub('/' + log.to_param, '/' + parent.to_param)) - = ' > ' %p= log.message.to_s.gsub("\n", '<br>').html_safe .col-md-4.text-right - prev_log = log.prev_log - next_log = log.next_log @@ -29,11 +26,11 @@ .col-md-6 - if log.user.present? %p %strong User: - = (log.user.to_s.starts_with?('#<User:0x') ? (log.user.email rescue log.user) : log.user) + = log.user - if log.associated_id.present? && log.associated_type.present? && (log.associated.present? rescue false) %p %strong Associated: - if log.associated.to_s.starts_with?('#<') @@ -46,10 +43,5 @@ .row .col-md-12 .mt-3 %strong= "#{key.to_s.titleize}:" = format_log_details_value(log, key) - - - if log.logs.present? - %hr - %p This log contains #{log.logs_count} additional sub entries: - = render_datatable(log.child_logs_datatable)