Sha256: d19718823fba6320ceb9cced3ceb3283e82bd182dc752f20f2d37e8fc2151f26

Contents?: true

Size: 1.02 KB

Versions: 3

Compression:

Stored size: 1.02 KB

Contents

<div id="title-bar">
  <h2 class="page-title">Search Results for &ldquo;<%= params[:q] %>&rdquo;</h2>
</div>

<div id="page-content">
  <section class="data-table">
    <table>
      <thead>
        <tr>
          <th></th>
          <th></th>
          <th></th>
        </tr>
      </thead>
      <tbody>
        <% if @collection.size > 0 %>
          <% @collection.each do |item| %>
            <tr>
              <%= content_tag(:td, item.searchable_type.gsub(/Cambium::/, ''),
                              :class => 'search-type') %>
              <%= content_tag(:td, item.searchable.to_s) %>
              <%= content_tag(
                :td,
                link_to('', cambium_route(:edit, item.searchable)),
                :class => 'actions'
              ) %>
            </tr>
          <% end %>
        <% else %>
          <tr>
            <td colspan="3" class="no-results">
              No items matched your search results.
            </td>
          </tr>
        <% end %>
      </tbody>
    </table>
  </section>
</div>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
cambium-1.3.2 app/views/cambium/admin/search/index.html.erb
cambium-1.3.1 app/views/cambium/admin/search/index.html.erb
cambium-1.3.0 app/views/cambium/admin/search/index.html.erb