projects
/
arvados.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
5826: use present? instead of !empty?
[arvados.git]
/
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 5dd1017c8d4724844bdd802a3328dd79cd9f6494..2a85da83214303fed625725dea1a334067691ee2 100644
(file)
--- a/
apps/workbench/app/views/projects/show.html.erb
+++ b/
apps/workbench/app/views/projects/show.html.erb
@@
-1,7
+1,11
@@
-<% if @object.uuid != current_user.andand.uuid # Not the "Home" project %>
<% content_for :content_top do %>
<% content_for :content_top do %>
- <%= render partial: 'name_and_description' %>
-<% end %>
+ <h2>
+ <% if @object.uuid == current_user.andand.uuid %>
+ Home
+ <% else %>
+ <%= render_editable_attribute @object, 'name', nil, { 'data-emptytext' => "New project" } %>
+ <% end %>
+ </h2>
<% end %>
<% content_for :tab_line_buttons do %>
<% end %>
<% content_for :tab_line_buttons do %>