aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery/banners/admin/banners/_actions.html.erb
blob: f2a168177072bf646af3fdec79cefd53dc0fa2bd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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>