X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b7de0ac72fe6e5270d58940f782e630789391f05..1010c9e519409f0eb36971df6c382fc7cc0e2732:/apps/workbench/app/views/projects/_index_projects.html.erb diff --git a/apps/workbench/app/views/projects/_index_projects.html.erb b/apps/workbench/app/views/projects/_index_projects.html.erb index b05a87dd49..e726a46780 100644 --- a/apps/workbench/app/views/projects/_index_projects.html.erb +++ b/apps/workbench/app/views/projects/_index_projects.html.erb @@ -1,16 +1,22 @@ +<%# Copyright (C) The Arvados Authors. All rights reserved. + +SPDX-License-Identifier: AGPL-3.0 %> +
<% tree.each do |projectnode| %> <% rowtype = projectnode[:object].class %> <% next if rowtype != Group and !show_root_node %> -
+
<% if show_root_node and rowtype == String %> - + <%= projectnode[:object] %> <% elsif show_root_node and rowtype == User %> <% if projectnode[:object].uuid == current_user.andand.uuid %> - - My Projects + + <%= link_to project_path(id: projectnode[:object].uuid) do %> + Home + <% end %> <% else %> <%= projectnode[:object].friendly_link_name %> @@ -22,8 +28,8 @@ <% end %> <% end %>
- <% if not projectnode[:object].description.blank? %> -
<%= projectnode[:object].description %>
+ <% if projectnode[:object].respond_to?(:description) and not projectnode[:object].description.blank? %> +
<%= render_attribute_as_textile(projectnode[:object], "description", projectnode[:object].description, true) %>
<% end %>
<% end %>