.panel.card .panel-heading.card-header .row .col-md-10 - parents_of_log(log).each do |parent| = link_to(log.message, request.fullpath.sub('/' + log.to_param, '/' + parent.to_param)) = ' > ' %p= log.message.html_safe .col-md-2.text-right - if log.prev_log = link_to 'Prev', request.fullpath.sub('/' + log.to_param, '/' + log.prev_log.to_param), class: 'btn btn-primary' - if log.next_log = link_to 'Next', request.fullpath.sub('/' + log.to_param, '/' + log.prev_log.to_param), class: 'btn btn-primary' .panel-body.card-body .row .col-md-6 - status_class = bootstrap_class_for_status(log.status) %span.label.badge{:class => "label-#{status_class} badge-#{status_class}"}= log.status   = log.created_at.strftime("%F %H:%M:%S") = '(' + time_ago_in_words(log.created_at) + ' ago)' %br %br .col-md-6 - if log.user.present? %strong User:   = (log.user.to_s.starts_with?('#