.panel{:class => "panel-#{bootstrap_class_for_status(log.status)}"} .panel-heading .row .col-sm-10 - parents_of_log(log).each do |parent| = link_to(log.message, (request.fullpath.gsub(log.to_param, parent.to_param) rescue '#')) = ' > ' %p= log.message.html_safe .col-sm-2.text-right = link_to 'Prev', request.fullpath.gsub(log.to_param, log.prev_log.try(:to_param).to_s), class: 'btn btn-default', disabled: log.prev_log.blank? = link_to 'Next', request.fullpath.gsub(log.to_param, log.next_log.try(:to_param).to_s), class: 'btn btn-default', disabled: log.next_log.blank? .panel-body .row .col-lg-6 %span.label{:class => "label-#{bootstrap_class_for_status(log.status)}"}= log.status   = log.created_at.strftime("%Y-%m-%d %H:%M:%S") = '(' + time_ago_in_words(log.created_at) + ' ago)' %br %br .col-lg-6 - if log.user.present? %strong User:   = (log.user.to_s.starts_with?('#