+ <% if check_trash.andand.any? %>
+ <h2>Trashed</h2>
+
+ <p>The <%= req_item %> is in the trash.
+
+ <% object = check_trash.first %>
+
+ <% if object.is_trashed
+ untrash_object = object
+ else
+ end %>
+
+ <% if untrash_object.editable? %>
+ <% msg = "Untrash '" + if !untrash_object.name.blank? then untrash_object.name else untrash_object.uuid end + "'?" %>
+ <%= link_to({action: 'untrash_items', selection: [untrash_object.uuid], controller: :trash_items}, remote: true, method: :post,
+ title: "Untrash", style: 'cursor: pointer;') do %>
+
+ <% end %>
+
+ <%= form_tag url_for({action: 'untrash_items', controller: :trash_items}), {method: :post} %>
+ <%= hidden_field_tag :selection, [untrash_object.uuid] %>
+ <button type="submit">Click here to untrash this item <i class="fa fa-fw fa-recycle"></i></button>
+ <% end %>
+ <% else %>
+ <% %>
+ <% end %>
+ </p>
+
+ <% else %>
+