Sha256: 6896b9b3b40bf6bfc5f185124105c5de5562d211690bf313188b16958a5cb99d

Contents?: true

Size: 1.28 KB

Versions: 2

Compression:

Stored size: 1.28 KB

Contents

- content_for :breadcrumbs do
  = breadcrumbs(["Event Details", whoops_event_group_path(@event_group)])
  
- content_for :sidebar do
  .space
    %h3 Instances
    = paginate @events, :previous_label => "", :next_label => ""
    %ul#instances
      - @events.each_with_index do |event, index|
        %li{:class => ("selected" if index == 0)}= link_to event.event_time.to_s(:whoops_default), event
  .space
    %h3.info-revealer
      Search
    %form
      %p
        For more on searching, see "Search Event Details" in the 
        = link_to "documentation", "http://www.whoopsapp.com/#_search_event_details"

      %p= text_area_tag :query, params[:query]
      
      %p
        %button.btn.primary search
        %button.btn.secondary#reset reset

%article
  %header
    %h3= @event_group.message
  %table.span8.bordered-table
    %thead
      %tr
        %th.key Field
        %th Value
    %tbody
      - [:environment, :event_type, :last_recorded_at].each do |field|
        %tr
          %td.key= field.to_s.humanize
          %td.value= @event_group.send(field)

%article.module.width_full
  %header
    %h3 Details
  #event-details
    - if @events.empty?
      %p Your search returned no results.
    - else 
      = render :partial => "events/details", :object => @events.first, :as => :event

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
whoops-0.2.4 app/views/events/index.html.haml
whoops-0.2.3 app/views/events/index.html.haml