X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/f107a5232d5e8788ae19daf1c5f6639f0c3cdb68..7276cc563eb93589279f58b045f893a7c3b83835:/apps/workbench/app/views/folders/show.html.erb diff --git a/apps/workbench/app/views/folders/show.html.erb b/apps/workbench/app/views/folders/show.html.erb index c02c48b921..11bb52c70b 100644 --- a/apps/workbench/app/views/folders/show.html.erb +++ b/apps/workbench/app/views/folders/show.html.erb @@ -3,16 +3,16 @@

- <%= render_editable_attribute @object, 'name', nil, { 'data-emptytext' => "New folder" } %> + <%= render_editable_attribute @object, 'name', nil, {data: {emptytext: "New folder"}} %>

-

- <%= render_editable_attribute @object, 'description', nil, { 'data-emptytext' => "Created: #{@object.created_at.to_s(:long)}", 'data-toggle' => 'manual', 'id' => "#{@object.uuid}-description" } %> -

+ <%= render_editable_attribute @object, 'description', nil, { 'data-emptytext' => "Created: #{@object.created_at.to_s(:long)}", 'data-toggle' => 'manual', 'id' => "#{@object.uuid}-description" } %> <% if @object.attribute_editable? 'description' %> - Edit description +
+ Edit description +
<% end %>
@@ -24,7 +24,7 @@ Activity -
+
@@ -38,9 +38,9 @@

<% end %> <% if @logs.any? %> - <%= link_to raw('Show all activity   '), - logs_path(filters: [['object_uuid','=',@object.uuid]]), - class: 'btn btn-sm btn-info' %> + <%= link_to raw('Show all activity   '), + logs_path(filters: [['object_uuid','=',@object.uuid]].to_json), + class: 'btn btn-xs btn-default' %> <% else %>

Created: <%= @object.created_at.to_s(:long) %> @@ -65,42 +65,22 @@ -->

Owner: <%= link_to_if_arvados_object @object.owner_uuid, friendly_name: true %>

+ <% if @share_links.any? %> +

Shared with: + <% @share_links.andand.each do |link| %> +
<%= link_to_if_arvados_object link.tail_uuid, friendly_name: true %> + <% end %> +

+ <% end %>
+<% if @show_cards %> +
-
-
- - - -
-
- Test dataset -
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
-
-
- -
-
- -
-
- - - -
-
- GATK Exome Pipeline -
exome p.e. fastq -> vcf
-
-
- -
-
- + <% @objects[0..3].each do |object| %>
- Reference result -
Known good -- checked concordance against other datasets
+ <%= @objects.name_for(object) || object.class_for_display %> +
<%= object.respond_to?(:description) ? object.description : object.uuid %>
- -
-
- -
-
- - - -
-
- Some other thing -
(Objects that are "starred" appear in this area)
-
-
- + <%= render :partial => "show_object_button", :locals => {object: object, htmloptions: {class: 'btn-default btn-block'}} %>
+ <% end %>
+ +<% end %>
@@ -144,7 +112,7 @@
- +
@@ -152,46 +120,68 @@

- +
+ + + + - - + - <% @objects.each do |object| %> - - - - - - + <% @objects_and_names.each do |object, name_link| %> + + + + + + + + + <% end %> + + +
- <% name_link = @objects.links_for(object, 'name').first || Link.new(link_class: "name", owner_uuid: @object.uuid, tail_uuid: @object.uuid, head_uuid: object.uuid, name: "") %> - <%= render_editable_attribute name_link, 'name', nil, { 'data-emptytext' => "Unnamed #{object.class}" } %> - - <%= object.content_summary %> - - - <%= raw distance_of_time_in_words(object.modified_at, Time.now).sub('about ','~').sub(' ',' ') + ' ago' %> - - - <%= link_to_if_arvados_object(object, {no_tags: true}) %> -
+ <%= render :partial => "selection_checkbox", :locals => {object: object} %> + + <%= render :partial => "show_object_button", :locals => {object: object, size: 'xs'} %> + + <%= render_editable_attribute name_link, 'name', nil, {data: {emptytext: "Unnamed #{object.class_for_display}"}} %> + + <%= object.content_summary %> + + + <%= raw distance_of_time_in_words(object.modified_at, Time.now).sub('about ','~').sub(' ',' ') + ' ago' rescue object.modified_at %> + + + <%= object.uuid %> + + <% if @object.editable? %> + <%= link_to({action: 'remove_item', id: @object.uuid, item_uuid: ((name_link && name_link.uuid) || object.uuid)}, method: :delete, remote: true, data: {confirm: "You are about to remove #{object.class_for_display} #{object.uuid} from this folder.\n\nAre you sure?"}, class: 'btn btn-xs btn-default') do %> + Remove + <% end %> + <% end %> +
- Name - Modified + name + + type + + modified + + uuid - UUID