Merge remote-tracking branch 'origin/master' into 2884-improved-picker
[arvados.git] / apps / workbench / app / views / projects / _show_permissions.html.erb
1 <div>
2   <div class="row">
3     <div class="col-md-6 col-md-push-6">
4       <div class="panel panel-default">
5         <div class="panel-heading">
6           Additional permissions
7         </div>
8         <div class="panel-body">
9           <p>
10             <% if not @share_links.any? %>
11               <span class="deemphasize">(No additional permissions)</span>
12             <% else %>
13               Also shared with:
14               <% @share_links.andand.each do |link| %>
15                 <br /><%= link_to_if_arvados_object link.tail_uuid, friendly_name: true %>
16               <% end %>
17             <% end %>
18           </p>
19         </div>
20       </div>
21     </div>
22     <div class="col-md-6 col-md-pull-6">
23       <% if @object.owner %>
24         <div class="panel panel-default">
25           <div class="panel-heading">
26             Inherited permissions
27           </div>
28           <div class="panel-body">
29             <p>Permissions for this project are inherited by the owner or parent project:
30             </p>
31             <p style="margin-left: 4em">
32               <% if User == resource_class_for_uuid(@object.owner_uuid) %>
33                 <i class="fa fa-fw fa-user"></i>
34               <% else %>
35                 <i class="fa fa-fw fa-folder"></i>
36               <% end %>
37               <%= link_to_if_arvados_object @object.owner_uuid, friendly_name: true %>
38             </p>
39           </div>
40         </div>
41       <% end %>
42     </div>
43   </div>
44 </div>