Sha256: 9ffa46e9739f8fbb0b401221719c68a94bf03f99fb7c5278157c49f7c5a4ce48

Contents?: true

Size: 660 Bytes

Versions: 6

Compression:

Stored size: 660 Bytes

Contents

%h1= _("Chats")

= simple_search_form_for @ransack, @ransack_params do |f|
  = f.input :state_eq, :as => :select, :collection => Chatty::Chat.translated_states
  = f.submit _("Search")

%table
  %thead
    %tr
      %th= Chatty::Chat.human_attribute_name(:id)
      %th= Chatty::Chat.human_attribute_name(:handled)
      %th= Chatty::Chat.human_attribute_name(:created_at)
  %tbody
    - @chats.each do |chat|
      %tr
        %td= link_to chat.id, chat_path(chat)
        %td= chat.handled? ? _("Yes") : _("No")
        %td= l(chat.created_at, :format => :long)
    - if @chats.none?
      %tr
        %td{:colspan => 3}
          = _("No chats was found.")

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
chatty-0.0.6 app/views/chatty/chats/index.html.haml
chatty-0.0.5 app/views/chatty/chats/index.html.haml
chatty-0.0.4 app/views/chatty/chats/index.html.haml
chatty-0.0.3 app/views/chatty/chats/index.html.haml
chatty-0.0.2 app/views/chatty/chats/index.html.haml
chatty-0.0.1 app/views/chatty/chats/index.html.haml