9587: show trash page contents in Recent tab pane
authorradhika <radhika@curoverse.com>
Fri, 2 Jun 2017 21:45:06 +0000 (17:45 -0400)
committerradhika <radhika@curoverse.com>
Fri, 2 Jun 2017 21:45:06 +0000 (17:45 -0400)
apps/workbench/app/controllers/trash_items_controller.rb
apps/workbench/app/views/trash_items/_create_new_object_button.html.erb [new file with mode: 0644]
apps/workbench/app/views/trash_items/_show_recent.html.erb [moved from apps/workbench/app/views/trash_items/_show_trash_items.html.erb with 100% similarity]
apps/workbench/app/views/trash_items/index.html.erb

index db3457cc30c5ea52397158282ceb92bf4c5b4e61..31581bb8461f37d618674cfa535e296fc51bffee 100644 (file)
@@ -3,6 +3,10 @@ class TrashItemsController < ApplicationController
     Collection
   end
 
+  def show_pane_list
+    %w(Recent)
+  end
+
   def find_objects_for_index
     # If it's not the index rows partial display, just return
     # The /index request will again be invoked to display the
diff --git a/apps/workbench/app/views/trash_items/_create_new_object_button.html.erb b/apps/workbench/app/views/trash_items/_create_new_object_button.html.erb
new file mode 100644 (file)
index 0000000..2ba9e1a
--- /dev/null
@@ -0,0 +1 @@
+<%# There is no such thing %>
index bd55a3fdb5ea8b1e92079f0c7a5d43533e4cbb8a..5f5bc839172caf66e8cceb2b847359933e81938c 100644 (file)
@@ -1 +1 @@
-<%= render partial: 'show_trash_items' %>
+<%= render file: 'application/index.html.erb', locals: local_assigns %>