X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/3dc2b0008be4e09b47f73aeeb97d005cd7836619..03bee5d2ecc62b0fe7aaae67e8d5fffcdeeb4880:/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..96b73979eb 100644
--- a/apps/workbench/app/views/collections/_index_tbody.html.erb
+++ b/apps/workbench/app/views/collections/_index_tbody.html.erb
@@ -1,19 +1,29 @@
<% @collections.each do |c| %>
-
+
+ <%= render :partial => "selection_checkbox", :locals => {:object => c} %>
+ |
<%= link_to_if_arvados_object c.uuid %>
- |
- <% c.files.each do |file| %>
- <%= file[0] == '.' ? file[1] : "#{file[0]}/#{file[1]}" %>
+ |
+
+ <% 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 %>
- |
+ |
+ <%= 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] %>
@@ -22,6 +32,20 @@
cache
<% end %>
|
+
+ 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.uuid %>
+
+ <% end %>
+
+ <% end %>
+ <% end %>
+
+ |
<% end %>