Merge branch '8784-dir-listings'
[arvados.git] / apps / workbench / app / views / container_requests / _name_and_description.html.erb
1 <%# Copyright (C) The Arvados Authors. All rights reserved.
2
3 SPDX-License-Identifier: AGPL-3.0 %>
4
5 <%
6   wu = @object.work_unit
7   template_uuid = wu.template_uuid
8   template = Workflow.find?(template_uuid) if template_uuid
9   div_class = "col-sm-12"
10   div_class = "col-sm-6" if template
11 %>
12
13 <div class="<%=div_class%>">
14   <%= render partial: 'object_name' %>
15   <%= render partial: 'object_description' %>
16 </div>
17
18 <% if template %>
19   <div class="alert alert-info <%=div_class%>">
20      This container request was created from the workflow <%= link_to_if_arvados_object template, friendly_name: true %><br />
21      <% if template.modified_at && (template.modified_at > @object.created_at) %>
22         Note: This workflow has been modified since this container request was created.
23      <% end %>
24   </div>
25 <% end %>