diff --git a/app/views/global_activities/references/_asset.html.erb b/app/views/global_activities/references/_asset.html.erb index 979279aaf..1ac9f07ee 100644 --- a/app/views/global_activities/references/_asset.html.erb +++ b/app/views/global_activities/references/_asset.html.erb @@ -1,8 +1,18 @@ -<%= render partial: "global_activities/references/my_module.html.erb", - locals: { team: team, subject: subject.my_module, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %> -
- <% name = subject.blob.metadata["name"] || subject.blob.filename.to_s %> - - <%= name.truncate(Constants::NAME_TRUNCATION_LENGTH) %> - -
+<% case (subject&.result || subject&.step) %> +<% when Result %> + <%= render partial: "global_activities/references/result.html.erb", + locals: { team: team, subject: subject.result, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %> +<% when Step %> + <%= render partial: "global_activities/references/protocol.html.erb", + locals: { team: team, subject: subject.step.protocol, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %> +<% else %> + <%= render partial: "global_activities/references/my_module.html.erb", + locals: { team: team, subject: nil, breadcrumbs: breadcrumbs, values: values, type_of: type_of } %> +
+   + <% name = breadcrumbs['result'] || breadcrumbs['step'] %> + + <%= name.truncate(Constants::NAME_TRUNCATION_LENGTH) %> + +
+<% end %>