5826: use present? instead of !empty?
[arvados.git] / apps / workbench / app / views / projects / show.html.erb
index 78966f05e078b0da297fe6ccac632281bfea62de..2a85da83214303fed625725dea1a334067691ee2 100644 (file)
@@ -1,3 +1,13 @@
+<% content_for :content_top do %>
+  <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 %>
   <% if @object.editable? %>
     <div class="btn-group btn-group-sm">