Sha256: f0927b0379edbb592fc9d6fe2e8cbfd93eccbe3b30fdff78d057042ad767136f

Contents?: true

Size: 789 Bytes

Versions: 13

Compression:

Stored size: 789 Bytes

Contents

<%= render :partial => "submenu" %>
<div id='records'>
  <% if searching? %>
    <h2><%= t('shared.admin.search.results_for', :query => params[:search]) %></h2>
    <% if @inquiries.any? %>
      <ul>
        <%= render :partial => "inquiry", :collection => @inquiries %>
      </ul>
    <% else %>
      <p><%= t('shared.admin.search.no_results') %></p>
    <% end %>
  <% else %>
    <% if @grouped_inquiries.any? -%>
      <% @grouped_inquiries.each do |container| %>
        <h3><%= l((inquiry_group = container.last).first.created_at) %></h3>
        <ul>
          <%= render :partial => 'inquiry', :collection => inquiry_group %>
        </ul>
      <% end %>
    <% else -%>
      <p>
        <strong><%= t('.no_inquiries') %></strong>
      </p>
    <% end -%>
  <% end %>
</div>

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
refinerycms-inquiries-0.9.9.1 app/views/admin/inquiries/index.html.erb
refinerycms-inquiries-0.9.9 app/views/admin/inquiries/index.html.erb
refinerycms-inquiries-0.9.8.10 app/views/admin/inquiries/index.html.erb
refinerycms-inquiries-0.9.8.9 app/views/admin/inquiries/index.html.erb
refinerycms-inquiries-0.9.8.8 app/views/admin/inquiries/index.html.erb
refinerycms-inquiries-0.9.8.7 app/views/admin/inquiries/index.html.erb
refinerycms-inquiries-0.9.8.6 app/views/admin/inquiries/index.html.erb
refinerycms-inquiries-0.9.8.5 app/views/admin/inquiries/index.html.erb
refinerycms-inquiries-0.9.8.4 app/views/admin/inquiries/index.html.erb
refinerycms-inquiries-0.9.8.3 app/views/admin/inquiries/index.html.erb
refinerycms-inquiries-0.9.8.2 app/views/admin/inquiries/index.html.erb
refinerycms-inquiries-0.9.8.1 app/views/admin/inquiries/index.html.erb
refinerycms-inquiries-0.9.8 app/views/admin/inquiries/index.html.erb