Sha256: 5a25a2d25e791f70214d983a95ab96d6c2252471b6abe439727f5270fda0bd32

Contents?: true

Size: 1.59 KB

Versions: 10

Compression:

Stored size: 1.59 KB

Contents

:ruby
  count = local_assigns.fetch :count, true
  last_time = local_assigns.fetch :last_time, true
  env = local_assigns.fetch :env, false
  checkbox = local_assigns.fetch :checkbox, false
%table
  %thead
    %tr
      %th
      - if checkbox
        %th= check_box_tag 'ids-select-all', 'select-all'
      %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)
        - if checkbox
          %td= check_box_tag 'ids[]', notification.id
        %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

10 entries across 10 versions & 1 rubygems

Version Path
exception_notification_server-0.0.11 app/views/exception_notification_server/notifications/_notifications.html.haml
exception_notification_server-0.0.10 app/views/exception_notification_server/notifications/_notifications.html.haml
exception_notification_server-0.0.9 app/views/exception_notification_server/notifications/_notifications.html.haml
exception_notification_server-0.0.8 app/views/exception_notification_server/notifications/_notifications.html.haml
exception_notification_server-0.0.7 app/views/exception_notification_server/notifications/_notifications.html.haml
exception_notification_server-0.0.6 app/views/exception_notification_server/notifications/_notifications.html.haml
exception_notification_server-0.0.5 app/views/exception_notification_server/notifications/_notifications.html.haml
exception_notification_server-0.0.4 app/views/exception_notification_server/notifications/_notifications.html.haml
exception_notification_server-0.0.3 app/views/exception_notification_server/notifications/_notifications.html.haml
exception_notification_server-0.0.2 app/views/exception_notification_server/notifications/_notifications.html.haml