X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/35336cd73e444534cb2eda20e3730464cc4e6553..fc10c21d75b15e36c4f861fdd17bf985ca83d888:/apps/workbench/app/views/collections/_index_tbody.html.erb?ds=sidebyside
diff --git a/apps/workbench/app/views/collections/_index_tbody.html.erb b/apps/workbench/app/views/collections/_index_tbody.html.erb
index 96b73979eb..dd077aa2a4 100644
--- a/apps/workbench/app/views/collections/_index_tbody.html.erb
+++ b/apps/workbench/app/views/collections/_index_tbody.html.erb
@@ -1,11 +1,22 @@
-<% @collections.each do |c| %>
+<% @objects.each do |c| %>
- <%= render :partial => "selection_checkbox", :locals => {:object => c} %>
+ <%=
+ friendly_name = c.friendly_link_name
+ @collection_info[c.uuid][:tag_links].each do |tag_link|
+ friendly_name += raw(" #{tag_link.name}")
+ end
+ render partial: "selection_checkbox", locals: {
+ object: c,
+ friendly_name: friendly_name
+ }
+ %>
+
+ <%= render :partial => "show_object_button", :locals => {object: c, size: 'xs'} %>
|
- <%= link_to_if_arvados_object c.uuid %>
+ <%= c.uuid %>
|
<% i = 0 %>
@@ -19,18 +30,8 @@
⋮
<% end %>
|
- <%= link_to_if_arvados_object c.owner_uuid, friendly_name: true %> |
-
- <%= raw(distance_of_time_in_words(c.created_at, Time.now).sub('about ','~').sub(' ',' ')) if c.created_at %>
- |
- <% if @collection_info[c.uuid][:wanted_by_me] %>
- 2×
- <% elsif @collection_info[c.uuid][:wanted] %>
- 2×
- <% else %>
- cache
- <% end %>
+ <%= c.created_at.to_s if c.created_at %>
|
Add
@@ -38,7 +39,7 @@
<% if @collection_info[c.uuid] %>
<% @collection_info[c.uuid][:tag_links].each do |tag_link| %>
<%= tag_link.name %>
- <% if tag_link.owner_uuid == current_user.uuid %>
+ <% if tag_link.owner_uuid == current_user.andand.uuid %>
<% end %>
|