X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/caf3ebfb538efbfc0b2e3b360186d68bdb78b744..f4ca9ad94a6bb006d1f3c7ba207837f1736d1247:/apps/workbench/app/views/projects/show.html.erb diff --git a/apps/workbench/app/views/projects/show.html.erb b/apps/workbench/app/views/projects/show.html.erb index 070a2a1cd7..6033a34910 100644 --- a/apps/workbench/app/views/projects/show.html.erb +++ b/apps/workbench/app/views/projects/show.html.erb @@ -1,7 +1,12 @@ -<% if @object.uuid != current_user.uuid # Not the "Home" project %> <% content_for :content_top do %> - <%= render partial: 'name_and_description' %> -<% end %> +

+ <% if @object.uuid == current_user.andand.uuid %> + Home + <% else %> + <%= render partial: "show_star" %> + <%= render_editable_attribute @object, 'name', nil, { 'data-emptytext' => "New project" } %> + <% end %> +

<% end %> <% content_for :tab_line_buttons do %> @@ -18,14 +23,13 @@ action_href: actions_path(id: @object.uuid), action_method: 'post', action_data: {selection_param: 'selection[]', copy_selections_into_project: @object.uuid, success: 'page-refresh'}.to_json), - { remote: true, title: "Copy a collection from another project into this one", data: {'event-after-select' => 'page-refresh', 'toggle' => 'dropdown'} }) do %> - Copy data from a different project + { remote: true, data: {'event-after-select' => 'page-refresh', 'toggle' => 'dropdown'} }) do %> + Copy data from another project <% end %>
  • <%= link_to(collections_path(options: {ensure_unique_name: true}, collection: {manifest_text: "", name: "New collection", owner_uuid: @object.uuid}, redirect_to_anchor: 'Upload'), { method: 'post', - title: "Upload files into a new collection", data: {toggle: 'dropdown'}}) do %> Upload files from my computer <% end %>