X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/56d8ed80ce834a051be71d2bcf76a346b7bc7f0b..fc10c21d75b15e36c4f861fdd17bf985ca83d888:/apps/workbench/app/views/collections/_index_tbody.html.erb
diff --git a/apps/workbench/app/views/collections/_index_tbody.html.erb b/apps/workbench/app/views/collections/_index_tbody.html.erb
index f8fbcdc833..dd077aa2a4 100644
--- a/apps/workbench/app/views/collections/_index_tbody.html.erb
+++ b/apps/workbench/app/views/collections/_index_tbody.html.erb
@@ -1,26 +1,51 @@
-<% @collections.each do |c| %>
+<% @objects.each do |c| %>
-
- <%= link_to_if_arvados_object c.uuid %>
- |
- <% c.files.each do |file| %>
- <%= file[0] == '.' ? file[1] : "#{file[0]}/#{file[1]}" %>
+ <%=
+ 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'} %>
+ |
+
+ <%= c.uuid %>
+ |
+
+ <% i = 0 %>
+ <% while i < 3 and i < c.files.length %>
+ <% file = c.files[i] %>
+ <% file_path = "#{file[0]}/#{file[1]}" %>
+ <%= link_to file[1], {controller: 'collections', action: 'show_file', uuid: c.uuid, file: file_path, size: file[2], disposition: 'inline'}, {title: 'View in browser'} %>
+ <% i += 1 %>
<% end %>
- |
- <%= raw(distance_of_time_in_words(c.created_at, Time.now).sub('about ','~').sub(' ',' ')) if c.created_at %>
- |
- <% if @collection_info[c.uuid] %>
- <%= @collection_info[c.uuid][:tags].uniq.join ', ' %>
+ <% if i < c.files.length %>
+ ⋮
<% end %>
- |
- <% if @collection_info[c.uuid][:wanted_by_me] %>
- 2×
- <% elsif @collection_info[c.uuid][:wanted] %>
- 2×
- <% else %>
- cache
+ |
+
+ <%= c.created_at.to_s if c.created_at %>
+ |
+
+ Add
+
+ <% 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.andand.uuid %>
+
+ <% end %>
+
+ <% end %>
<% end %>
+
|