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/_actions.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/_actions.html.erb')
-rw-r--r-- | app/views/refinery/banners/admin/banners/_actions.html.erb | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app/views/refinery/banners/admin/banners/_actions.html.erb b/app/views/refinery/banners/admin/banners/_actions.html.erb new file mode 100644 index 0000000..f2a1681 --- /dev/null +++ b/app/views/refinery/banners/admin/banners/_actions.html.erb @@ -0,0 +1,25 @@ +<ul> + <% if ::Refinery::Banners::Admin::BannersController.searchable? %> + <li> + <%= render '/refinery/admin/search', :url => refinery.banners_admin_banners_path %> + </li> + <% end %> + <li> + <%= link_to t('.create_new'), refinery.new_banners_admin_banner_path, + :class => "add_icon" %> + </li> +<% if !searching? && ::Refinery::Banners::Admin::BannersController.sortable? && ::Refinery::Banners::Banner.any? %> + <li> + <%= link_to t('.reorder', :what => "Banners"), + refinery.banners_admin_banners_path, + :id => "reorder_action", + :class => "reorder_icon" %> + + <%= link_to t('.reorder_done', :what => "Banners"), + refinery.banners_admin_banners_path, + :id => "reorder_action_done", + :style => "display: none;", + :class => "reorder_icon" %> + </li> +<% end %> +</ul> |