Sha256: 6308f20a7746d68ab13f568f4390fc71368e2caf5274ae37032ddbd4b6a305cf
Contents?: true
Size: 1.84 KB
Versions: 10
Compression:
Stored size: 1.84 KB
Contents
.panel{:class => "panel-#{bootstrap_class_for_status(log.status)}"} .panel-heading - 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 - 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 = 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?('#<User:0x') ? (log.user.email rescue log.user) : log.user) - if (log.associated.present? rescue false) %br %strong Regarding: - if log.associated.to_s.starts_with?('#<') = "#{log.associated.class.name} ##{log.associated.to_param}" - else = log.associated - log.details.each do |key, value| - next unless value.present? .row .col-lg-12 %p %strong= "#{key.to_s.titleize}:" = format_log_details_value(log, key) - if log.logs.present? .row .col-lg-12 %br %p %strong Additional Entries: = "this log contains #{log.logs_count} additional sub entries" - if log.datatable.nil? == false %hr .row .col-lg-12= render_datatable(log.datatable)
Version data entries
10 entries across 10 versions & 1 rubygems