Sha256: d727c8f896f2f85c708ece91d98451588d00f7e7adb9955d73e169289cbdbc6d

Contents?: true

Size: 1.05 KB

Versions: 16

Compression:

Stored size: 1.05 KB

Contents

<div id='actions'>
  <ul>
    <li>
      <%= render :partial => "/shared/admin/search", :locals => {:url => admin_news_items_url} %>
    </li>
    <li>
      <%= link_to "Create News Item", new_admin_news_item_url, :class => "add_icon" %>
    </li>
  </ul>
</div>
<div id='records'>
  <% if searching? %>
    <h2>Search Results for "<%= params[:search] %>"</h2>
    <% if @news_items.size > 0 %>
        <%= render :partial => "news_item", :collection => @news_items %>
    <% else %>
      <p>Sorry, no results found.</p>
    <% end %>
  <% else %>
    <% if @news_items.size > 0 %>
      <%= will_paginate @news_items, :previous_label => '&laquo;', :next_label => '&raquo;' %>
      <ul>
        <%= render :partial => "news_item", :collection => @news_items %>
      </ul>
      <%= will_paginate @news_items, :previous_label => '&laquo;', :next_label => '&raquo;' %>
    <% else %>
      <p>
        <strong>
          There are no news items yet.
          Click "Create News Item" to add your first news item.
        </strong>
      </p>
    <% end %>
  <% end %>
</div>

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
refinerycms-0.9.5.29 vendor/plugins/news/app/views/admin/news_items/index.html.erb
refinerycms-0.9.5.28 vendor/plugins/news/app/views/admin/news_items/index.html.erb
refinerycms-0.9.5.27 vendor/plugins/news/app/views/admin/news_items/index.html.erb
refinerycms-0.9.5.26 vendor/plugins/news/app/views/admin/news_items/index.html.erb
refinerycms-0.9.5.25 vendor/plugins/news/app/views/admin/news_items/index.html.erb
refinerycms-0.9.5.24 vendor/plugins/news/app/views/admin/news_items/index.html.erb
refinerycms-0.9.5.23 vendor/plugins/news/app/views/admin/news_items/index.html.erb
refinerycms-0.9.5.22 vendor/plugins/news/app/views/admin/news_items/index.html.erb
refinerycms-0.9.5.21 vendor/plugins/news/app/views/admin/news_items/index.html.erb
refinerycms-0.9.5.20 vendor/plugins/news/app/views/admin/news_items/index.html.erb
refinerycms-0.9.5.19 vendor/plugins/news/app/views/admin/news_items/index.html.erb
refinerycms-0.9.5.18 vendor/plugins/news/app/views/admin/news_items/index.html.erb
refinerycms-0.9.5.17 vendor/plugins/news/app/views/admin/news_items/index.html.erb
refinerycms-0.9.5.16 vendor/plugins/news/app/views/admin/news_items/index.html.erb
refinerycms-0.9.5.15 vendor/plugins/news/app/views/admin/news_items/index.html.erb
refinerycms-0.9.5.14 vendor/plugins/news/app/views/admin/news_items/index.html.erb