X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/75eaaaa74a4a7ec6821008fe93dbee598ee24dee..7ea93a3e137a3375daa76073ddbd582deb22141c:/apps/workbench/app/views/application/_show_recent.html.erb diff --git a/apps/workbench/app/views/application/_show_recent.html.erb b/apps/workbench/app/views/application/_show_recent.html.erb index f423c04934..8712c0a7c3 100644 --- a/apps/workbench/app/views/application/_show_recent.html.erb +++ b/apps/workbench/app/views/application/_show_recent.html.erb @@ -8,9 +8,6 @@ <% attr_blacklist = ' created_at modified_at modified_by_user_uuid modified_by_client_uuid updated_at owner_uuid group_class properties' %> -<% show_home_link = (current_user.is_admin and controller.model_class == User) %> -<% show_delete_btn = (controller.model_class != User) %> - <%= render partial: "paging", locals: {results: objects, object: @object} %> <%= form_tag do |f| %> @@ -28,11 +25,9 @@ <%= controller.model_class.attribute_info[attr.to_sym].andand[:column_heading] or attr.sub /_uuid/, '' %> <% end %> - <% if show_home_link %> - - - - <% end %> + + + @@ -61,15 +56,11 @@ <% end %> <% end %> - <% if show_home_link %> - - <%= link_to 'Home', "/projects/#{object.uuid}" %> - - <% end %> - <% if show_delete_btn %> - <%= render partial: 'delete_object_button', locals: {object:object} %> - <% end %> + <%= render partial: 'show_home_button', locals: {object:object} %> + + + <%= render partial: 'delete_object_button', locals: {object:object} %> <% end %>