diff options
author | James Thompson <james.b.thompson@gmail.com> | 2012-03-14 11:40:16 +0200 |
---|---|---|
committer | James Thompson <james.b.thompson@gmail.com> | 2012-03-14 11:40:16 +0200 |
commit | 56d7747f54e86993415b76c92e101608e5ea44e2 (patch) | |
tree | 025b7b37f50c4c291e7e676286e7767c40adb1f9 /app/views/refinery/banners/admin/banners/_records.html.erb | |
download | refinerycms-pc_banners-56d7747f54e86993415b76c92e101608e5ea44e2.tar.gz refinerycms-pc_banners-56d7747f54e86993415b76c92e101608e5ea44e2.tar.bz2 refinerycms-pc_banners-56d7747f54e86993415b76c92e101608e5ea44e2.zip |
initial commit
Diffstat (limited to 'app/views/refinery/banners/admin/banners/_records.html.erb')
-rw-r--r-- | app/views/refinery/banners/admin/banners/_records.html.erb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/views/refinery/banners/admin/banners/_records.html.erb b/app/views/refinery/banners/admin/banners/_records.html.erb new file mode 100644 index 0000000..109fb04 --- /dev/null +++ b/app/views/refinery/banners/admin/banners/_records.html.erb @@ -0,0 +1,18 @@ +<% if searching? %> + <h2><%= t('results_for', :scope => 'refinery.admin.search', :query => params[:search]) %></h2> +<% end %> +<div class='pagination_container'> + <% if @banners.any? %> + <%= render 'banners' %> + <% else %> + <p> + <% unless searching? %> + <strong> + <%= t('.no_items_yet') %> + </strong> + <% else %> + <%= t('no_results', :scope => 'refinery.admin.search') %> + <% end %> + </p> + <% end %> +</div> |