Sha256: 84ff0fa24c424de42ea9e755586308f40a7777e0e74c8a4d65ad0dce78d64a60

Contents?: true

Size: 1.39 KB

Versions: 1

Compression:

Stored size: 1.39 KB

Contents

:ruby
  count = local_assigns.fetch :count, true
  last_time = local_assigns.fetch :last_time, true
  env = local_assigns.fetch :env, false
%table
  %thead
    %tr
      %th
      %th.hide-md Class
      %th Message
      %th.hide-md.hide-lg{style: 'width: 100px'} Server
      %th.hide-md.hide-lg Process
      - if env
        %th.hide-md.hide-lg Environment
      %th.hide-md Created at
      - if last_time
        %th.hide-md Last time
      - if count
        %th Last 30 days
        %th Total count
  %tbody
    - notifications.each do |notification|
      %tr
        %td= link_to notification.id, notification_path(notification)
        %td.hide-md= link_to notification.exception_class, notification_path(notification)
        %td= link_to notification.exception_message, notification_path(notification)
        %td.hide-md.hide-lg= link_to notification.server, notification_path(notification)
        %td.hide-md.hide-lg= link_to notification.process, notification_path(notification)
        - if env
          %td.hide-md.hide-lg= link_to notification.env, notification_path(notification)
        %td.hide-md= notification.created_at.strftime(time_format)
        - if last_time
          %td.hide-md= notification.last_time.strftime(time_format)
        - if count
          %td
            %div.sparkline{data: {values: notification.similar_count_sparkline.to_json}}
          %td= notification.similar_count

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
exception_notification_server-0.0.1 app/views/exception_notification_server/notifications/_notifications.html.haml