X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/6177a6474c312d5d5b9c1f0eaa3ebd089a64b5f1..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 ec79e7b9a8..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 %>
@@ -38,9 +38,9 @@

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

Created: <%= @object.created_at.to_s(:long) %> @@ -65,57 +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
-
-
- -
-
- -
-
- - - -
-
- Reference result -
Known good -- checked concordance against other datasets
-
-
- -
-
- + <% @objects[0..3].each do |object| %>
- Some other thing -
(Objects that are "starred" appear in this area)
+ <%= @objects.name_for(object) || object.class_for_display %> +
<%= object.respond_to?(:description) ? object.description : object.uuid %>
- + <%= render :partial => "show_object_button", :locals => {object: object, htmloptions: {class: 'btn-default btn-block'}} %>
+ <% end %>
+ +<% end %>
@@ -144,7 +112,7 @@
- +
@@ -160,32 +128,39 @@ - + + - <% @objects.each do |object| %> - - - <%= render :partial => "selection_checkbox", :locals => {object: object} %> - - - <%= render :partial => "show_object_button", :locals => {object: object} %> - - - <% 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' rescue object.modified_at %> - - - - <%= object.uuid %> - - + <% @objects_and_names.each do |object, name_link| %> + + + <%= 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 %> + + <% end %> @@ -206,6 +181,8 @@ uuid + +