X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/a959f21c8147f26362df392bc3fd3290db69de85..1e31815d4a0d094633d4acb4f6265d6b8b6e3246:/apps/workbench/app/views/application/_arvados_attr_value.html.erb
diff --git a/apps/workbench/app/views/application/_arvados_attr_value.html.erb b/apps/workbench/app/views/application/_arvados_attr_value.html.erb
index 8f82b04696..98732dc3bf 100644
--- a/apps/workbench/app/views/application/_arvados_attr_value.html.erb
+++ b/apps/workbench/app/views/application/_arvados_attr_value.html.erb
@@ -1,14 +1,18 @@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
<% if attrvalue.is_a? Array and attrvalue.collect(&:class).uniq.compact == [String] %>
<% attrvalue.each do |message| %>
<%= message %>
<% end %>
<% else %>
- <% if obj.attribute_editable?(attr) and (!defined?(editable) || editable) %>
- <%= render_editable_attribute obj, attr %>
+ <% if attr and obj.attribute_editable?(attr) and (!defined?(editable) || editable) %>
<% if resource_class_for_uuid(attrvalue, {referring_object: obj, referring_attr: attr}) %>
-
- (<%= link_to_if_arvados_object attrvalue, {referring_attr: attr, referring_object: obj, with_class_name: true, friendly_name: true} %>)
+ <%= link_to_if_arvados_object attrvalue, {referring_attr: attr, referring_object: obj, with_class_name: true, friendly_name: true} %>
+
<% end %>
+ <%= render_editable_attribute obj, attr %>
<% elsif attr == 'uuid' %>
<%= link_to_if_arvados_object attrvalue, {referring_attr: attr, referring_object: obj, with_class_name: false, friendly_name: false} %>
<% else %>