Sha256: ecdc0be2046be632bcada31bd74d0c62ea69c7854ab91b9093846039ebb20e3d

Contents?: true

Size: 1.89 KB

Versions: 17

Compression:

Stored size: 1.89 KB

Contents

.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?('#<User:0x') ? (log.user.email rescue log.user) : log.user)
        - if (log.associated.present? rescue false)
          %br
          %strong Regarding:
          &nbsp;
          - 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

17 entries across 17 versions & 1 rubygems

Version Path
effective_logging-1.11.5 app/views/effective/logs/_log.html.haml
effective_logging-1.11.4 app/views/effective/logs/_log.html.haml
effective_logging-1.11.3 app/views/effective/logs/_log.html.haml
effective_logging-1.11.2 app/views/effective/logs/_log.html.haml
effective_logging-1.11.1 app/views/effective/logs/_log.html.haml
effective_logging-1.11.0 app/views/effective/logs/_log.html.haml
effective_logging-1.10.18 app/views/effective/logs/_log.html.haml
effective_logging-1.10.17 app/views/effective/logs/_log.html.haml
effective_logging-1.10.16 app/views/effective/logs/_log.html.haml
effective_logging-1.10.15 app/views/effective/logs/_log.html.haml
effective_logging-1.10.14 app/views/effective/logs/_log.html.haml
effective_logging-1.10.13 app/views/effective/logs/_log.html.haml
effective_logging-1.10.12 app/views/effective/logs/_log.html.haml
effective_logging-1.10.11 app/views/effective/logs/_log.html.haml
effective_logging-1.10.10 app/views/effective/logs/_log.html.haml
effective_logging-1.10.9 app/views/effective/logs/_log.html.haml
effective_logging-1.10.8 app/views/effective/logs/_log.html.haml