Sha256: a83e85e8c5ee898c84bf460e8effaab4782fecfbb851a224b8ec7af65875e3b3

Contents?: true

Size: 350 Bytes

Versions: 5

Compression:

Stored size: 350 Bytes

Contents

<% if @model.has_route?(:edit) && can?(:update, @model) %>
  <% if ! defined? path %>
    <!-- if defined we're called from gallery sort -->
    <% path = [:move_to_better, member] %>
  <% end %>
  <%= link_to(
    content_tag(
      :i,
      nil,
      class: 'fa fa-chevron-up'
    ),
    path,
    method: :put,
    remote: true
  ) %>
<% end %>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
adminpanel-2.4.2 app/views/adminpanel/icons/_move_to_better.html.erb
adminpanel-2.4.1 app/views/adminpanel/icons/_move_to_better.html.erb
adminpanel-2.4.0 app/views/adminpanel/icons/_move_to_better.html.erb
adminpanel-2.3.1 app/views/adminpanel/icons/_move_to_better.html.erb
adminpanel-2.3.0 app/views/adminpanel/icons/_move_to_better.html.erb