[ARVADOS] updated: 58c4c9004cb4d3cf237831ffe32e64d530c320d7

git at public.curoverse.com git at public.curoverse.com
Mon Jul 7 14:22:52 EDT 2014


Summary of changes:
 apps/workbench/app/views/collections/_show_chooser_preview.html.erb | 2 +-
 apps/workbench/app/views/collections/_show_files.html.erb           | 2 ++
 2 files changed, 3 insertions(+), 1 deletion(-)

       via  58c4c9004cb4d3cf237831ffe32e64d530c320d7 (commit)
      from  b654f5db50078accc595a169aad5e4548446c19f (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.


commit 58c4c9004cb4d3cf237831ffe32e64d530c320d7
Author: Peter Amstutz <peter.amstutz at curoverse.com>
Date:   Mon Jul 7 14:22:48 2014 -0400

    Don't render selection check boxes when using show_file partials from chooser
    modal.  closes #3103.

diff --git a/apps/workbench/app/views/collections/_show_chooser_preview.html.erb b/apps/workbench/app/views/collections/_show_chooser_preview.html.erb
index 4477357..4a0a837 100644
--- a/apps/workbench/app/views/collections/_show_chooser_preview.html.erb
+++ b/apps/workbench/app/views/collections/_show_chooser_preview.html.erb
@@ -1,2 +1,2 @@
 <%= render partial: "show_source_summary" %>
-<%= render partial: "show_files" %>
+<%= render partial: "show_files", locals: {no_checkboxes: true} %>
diff --git a/apps/workbench/app/views/collections/_show_files.html.erb b/apps/workbench/app/views/collections/_show_files.html.erb
index c461163..8576d40 100644
--- a/apps/workbench/app/views/collections/_show_files.html.erb
+++ b/apps/workbench/app/views/collections/_show_files.html.erb
@@ -27,6 +27,7 @@
        <div class="collection_files_row">
         <div class="collection_files_buttons pull-right">
           <%= raw(human_readable_bytes_html(size)) %>
+          <% if !defined? no_checkboxes or !no_checkboxes %>
           <%= check_box_tag 'uuids[]', "#{@object.uuid}/#{file_path}", false, {
                 :class => 'persistent-selection',
                 :friendly_type => "File",
@@ -35,6 +36,7 @@
                                  uuid: @object.uuid, file: file_path),
                 :title => "Include #{file_path} in your selections",
               } %>
+          <% end %>
           <%= link_to(raw('<i class="fa fa-search"></i>'),
                       link_params.merge(disposition: 'inline'),
                       {title: "View #{file_path}", class: "btn btn-info btn-sm"}) %>

-----------------------------------------------------------------------


hooks/post-receive
-- 




More information about the arvados-commits mailing list