Sha256: 947eecea4e8796297c4451563999be162e0c8d8847ad339a98c54f81c9ef49f8

Contents?: true

Size: 1.54 KB

Versions: 13

Compression:

Stored size: 1.54 KB

Contents

.panel.panel-default.card
  .panel-heading.card-header
    .row
      .col-md-8
        %p= log.message.to_s.gsub("\n", '<br>').html_safe

      .col-md-4.text-right
        - prev_log = log.prev_log
        - next_log = log.next_log

        - if prev_log.present?
          = link_to 'Prev', request.fullpath.sub('/' + log.to_param, '/' + prev_log.to_param), class: 'btn btn-primary'

        - if next_log.present?
          = link_to 'Next', request.fullpath.sub('/' + log.to_param, '/' + next_log.to_param), class: 'btn btn-primary'

  .panel-body.card-body
    .row
      .col-md-6
        %p
          - status_class = bootstrap_class_for_status(log.status)
          %span{class: (defined?(EffectiveBootstrap) ? "badge badge-#{status_class}" : "label label-#{status_class}")}= log.status

          = log.created_at.strftime("%F %H:%M:%S")
          = '(' + time_ago_in_words(log.created_at) + ' ago)'

      .col-md-6
        - if log.user.present?
          %p
            %strong User:
            = log.user

        - if log.associated_id.present? && log.associated_type.present? && (log.associated.present? rescue false)
          %p
            %strong Associated:
            - 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-md-12
          .mt-3
            %strong= "#{key.to_s.titleize}:"
          = format_log_details_value(log, key)

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
effective_logging-4.3.1 app/views/effective/logs/_log.html.haml
effective_logging-4.3.0 app/views/effective/logs/_log.html.haml
effective_logging-4.2.0 app/views/effective/logs/_log.html.haml
effective_logging-4.1.3 app/views/effective/logs/_log.html.haml
effective_logging-4.1.2 app/views/effective/logs/_log.html.haml
effective_logging-4.1.1 app/views/effective/logs/_log.html.haml
effective_logging-4.1.0 app/views/effective/logs/_log.html.haml
effective_logging-4.0.0 app/views/effective/logs/_log.html.haml
effective_logging-3.5.4 app/views/effective/logs/_log.html.haml
effective_logging-3.5.3 app/views/effective/logs/_log.html.haml
effective_logging-3.5.2 app/views/effective/logs/_log.html.haml
effective_logging-3.5.1 app/views/effective/logs/_log.html.haml
effective_logging-3.5.0 app/views/effective/logs/_log.html.haml