X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/928565a23bf5ff54fb524b6c38f8e2b0f4b27725..f97f243abfaaae4b04d0dc7fc02e6f54685b16fb:/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 b41234505e..ec5a09e3c6 100644
--- a/apps/workbench/app/views/collections/_index_tbody.html.erb
+++ b/apps/workbench/app/views/collections/_index_tbody.html.erb
@@ -1,8 +1,17 @@
<% @collections.each do |c| %>
-
- <%= link_to_if_arvados_object c.uuid %>
+ <% 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 %>
@@ -16,23 +25,26 @@
⋮
<% end %>
|
- <%= render partial: 'application/arvados_attr_value', locals: { obj: c, attr: "owner_uuid", attrvalue: c.owner_uuid } %> |
- <%= raw(distance_of_time_in_words(c.created_at, Time.now).sub('about ','~').sub(' ',' ')) if c.created_at %>
+ <%= c.created_at.to_s if c.created_at %>
|
- <% if @collection_info[c.uuid] %>
- <%= @collection_info[c.uuid][:tags].uniq.join ', ' %>
- <% end %>
+ <% current_state = @collection_info[c.uuid][:wanted_by_me] ? 'persistent' : 'cache' %>
+ <%= render partial: 'toggle_persist', locals: { uuid: c.uuid, current_state: current_state } %>
|
-
- <% if @collection_info[c.uuid][:wanted_by_me] %>
- 2×
- <% elsif @collection_info[c.uuid][:wanted] %>
- 2×
- <% else %>
- cache
+ |
+ 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 %>
+
|