app/views/effective/logs/_log.html.haml in effective_logging-1.6.0 vs app/views/effective/logs/_log.html.haml in effective_logging-1.7.0
- old
+ new
@@ -3,12 +3,17 @@
- parents_of_log(log).each do |parent|
= link_to(log.message, (request.fullpath.gsub(log.to_param, parent.to_param) rescue '#'))
= ' > '
%strong= log.message
.pull-right
- = link_to_if(log.prev_log.present?, '< Prev', (request.fullpath.gsub(log.to_param, log.prev_log.try(:to_param).to_s))) { 'Prev' }
- = ' - '
- = link_to_if(log.next_log.present?, 'Next >', (request.fullpath.gsub(log.to_param, log.next_log.try(:to_param).to_s))) { 'Next' }
+ - if log.prev_log.present?
+ = link_to '< Prev', request.fullpath.gsub(log.to_param, log.prev_log.try(:to_param).to_s)
+
+ - if log.prev_log && log.next_log
+ = ' - '
+
+ - if log.next_log.present?
+ = link_to 'Next >', request.fullpath.gsub(log.to_param, log.next_log.try(:to_param).to_s)
.panel-body
.row
.col-lg-6
%span.label{:class => "label-#{bootstrap_class_for_status(log.status)}"}= log.status