2875: add new partial to display name and description.
[arvados.git] / apps / workbench / app / views / projects / show.html.erb
index 2551760ff2e5ad15dee9457d526bffee3579cdea..a0ae2d3036ccd69a5ee14a4ee86e55f8179504b6 100644 (file)
@@ -1,14 +1,6 @@
 <% if @object.uuid != current_user.uuid # Not the "Home" project %>
 <% content_for :content_top do %>
-
-<h2>
-  <%= render_editable_attribute @object, 'name', nil, { 'data-emptytext' => "New project" } %>
-</h2>
-
-<div class="arv-description-as-subtitle">
-  <%= render_editable_attribute @object, 'description', nil, { 'data-emptytext' => "(No description provided)", 'data-toggle' => 'manual' } %>
-</div>
-
+  <%= render partial: 'name_and_description' %>
 <% end %>
 <% end %>