Skip to content
Snippets Groups Projects

Add size and formats for download

Merged Gyan Gupta requested to merge feature/435-add-size-and-formats-for-download into develop
Files
3
<div class="download-all">
<% total_size = (@crc_dataset || @dataset).files_size.first || 0 %>
<% message = total_size < ENV.fetch('DOWNLOAD_FILES_SIZE_LIMIT', '100000000').to_i ? '.zip_file_message' : 'shall_file_message' %>
<% message = total_size < ENV.fetch('DOWNLOAD_FILES_SIZE_LIMIT', '100000000').to_i ? '.zip_file_message' : '.shell_file_message' %>
<%= link_to t(:'hyrax.download_all'), main_app.download_all_path(presenter.id), disabled: download_all_button_available?(presenter.id) ? false : true, id: "download-all", class: "btn btn-default matomo_download", data:{ document_id: presenter.id } %>
<span class="fa fa-info-circle download-info" data-toggle="tooltip" title="<%= t("#{message}", size: total_size.to_s(:human_size))%>" aria-hidden="true"></span>
</div>
\ No newline at end of file
Loading