Fix 2.4.2 upgrade notes formatting refs #19330
[arvados.git] / apps / workbench / app / views / application / _show_recent.html.erb
index c36f27ccc74ea35c55eadc877bb784d52f085003..537cce7a3182feb25aee0e4a6ca1fd5cad5472a2 100644 (file)
@@ -1,3 +1,7 @@
+<%# Copyright (C) The Arvados Authors. All rights reserved.
+
+SPDX-License-Identifier: AGPL-3.0 %>
+
 <% if objects.empty? %>
 <br/>
 <p style="text-align: center">
@@ -6,7 +10,7 @@
 
 <% else %>
 
-<% attr_blacklist = ' created_at modified_at modified_by_user_uuid modified_by_client_uuid updated_at owner_uuid group_class' %>
+<% attr_blacklist = ' created_at modified_at modified_by_user_uuid modified_by_client_uuid updated_at owner_uuid group_class properties' %>
 
 <%= render partial: "paging", locals: {results: objects, object: @object} %>
 
@@ -15,7 +19,9 @@
 <table class="table table-condensed arv-index">
   <thead>
     <tr>
-      <th></th>
+      <% if objects.first and objects.first.class.goes_in_projects? %>
+        <th></th>
+      <% end %>
       <th></th>
       <% objects.first.attributes_for_display.each do |attr, attrvalue| %>
       <% next if attr_blacklist.index(" "+attr) %>
         <%= controller.model_class.attribute_info[attr.to_sym].andand[:column_heading] or attr.sub /_uuid/, '' %>
       </th>
       <% end %>
+      <th>
+        <!-- a column for user's home -->
+      </th>
       <th>
         <!-- a column for delete buttons -->
       </th>
     </tr>
   </thead>
-      
+
   <tbody>
     <% objects.each do |object| %>
     <tr data-object-uuid="<%= object.uuid %>">
-      <td>
-        <%= render :partial => "selection_checkbox", :locals => {:object => object} %>
-      </td>
+      <% if objects.first.class.goes_in_projects? %>
+        <td>
+          <%= render :partial => "selection_checkbox", :locals => {:object => object} %>
+        </td>
+      <% end %>
       <td>
         <%= render :partial => "show_object_button", :locals => {object: object, size: 'xs'} %>
       </td>
       <% next if attr_blacklist.index(" "+attr) %>
       <td class="arv-object-<%= object.class.to_s %> arv-attr-<%= attr %>">
         <% if attr == 'uuid' %>
-        <span class="arvados-uuid"><%= attrvalue %></span>
-        <% else %>
-        <% if object.attribute_editable? attr %>
-        <%= render_editable_attribute object, attr %>
+          <span class="arvados-uuid"><%= attrvalue %></span>
         <% else %>
-        <%= resource_class_for_uuid(attrvalue, referring_attr: attr, referring_object: @object).to_s %>
-        <%= attrvalue %>
-        <% end %>
-        <%= link_to_if_arvados_object(attrvalue, { referring_object: @object, link_text: raw('<i class="icon-hand-right"></i>') }) if resource_class_for_uuid(attrvalue, {referring_object: @object}) %>
+          <%= link_to_if_arvados_object attrvalue, {referring_attr: attr, referring_object: object, with_class_name: true, friendly_name: true} %>
         <% end %>
       </td>
       <% end %>
+      <td>
+        <%= render partial: 'show_home_button', locals: {object:object} %>
+      </td>
       <td>
         <%= render partial: 'delete_object_button', locals: {object:object} %>
       </td>