Sha256: 061126e9b7189b049baf1b22a9a3c2372b87591e101437458e34da6f20dc4207

Contents?: true

Size: 1.64 KB

Versions: 13

Compression:

Stored size: 1.64 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
    = form_for :event_group, :url => whoops_event_group_path(@event_group), :method => :put do |f|
      - if @event_group.archived
        = f.hidden_field :archived, :value => false
        = f.submit :class => "btn", :value => "unarchive"
      - else 
        = f.hidden_field :archived, :value => true
        = f.submit :class => "btn", :value => "archive"
    %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

13 entries across 13 versions & 1 rubygems

Version Path
whoops-0.5.5 app/views/events/index.html.haml
whoops-0.5.4 app/views/events/index.html.haml
whoops-0.5.3 app/views/events/index.html.haml
whoops-0.5.2 app/views/events/index.html.haml
whoops-0.5.1 app/views/events/index.html.haml
whoops-0.5.0 app/views/events/index.html.haml
whoops-0.4.0 app/views/events/index.html.haml
whoops-0.3.5 app/views/events/index.html.haml
whoops-0.3.4 app/views/events/index.html.haml
whoops-0.3.3 app/views/events/index.html.haml
whoops-0.3.2 app/views/events/index.html.haml
whoops-0.3.1 app/views/events/index.html.haml
whoops-0.3 app/views/events/index.html.haml