- <% msg = "Un-trash '" + if !object.name.blank? then object.name else object.uuid end + "'?" %>
- <%= link_to({action: 'untrash_items', selection: [object.uuid]}, remote: true, method: :post,
- data: {confirm: msg}) do %>
- <i class="fa fa-fw fa-recycle"></i>
- <% end %>
+ <%= link_to(url_for(object), {title: "Untrash", style: 'cursor: pointer;'}) do %>
+ <i class="fa fa-fw fa-recycle"></i>
+ <% end %>