aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/banners/admin/banners/_actions.html.erb
diff options
context:
space:
mode:
Diffstat (limited to 'app/views/refinery/banners/admin/banners/_actions.html.erb')
-rw-r--r--app/views/refinery/banners/admin/banners/_actions.html.erb25
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>