<% pdf_url = asset.pdf? ? asset_download_path(asset) : asset_pdf_preview_path(asset) pdf_size = !asset.pdf? && asset.pdf_preview_ready? ? asset.file_pdf_preview&.blob&.byte_size : asset.file_size blocked = pdf_size > Constants::PDF_PREVIEW_MAX_SIZE_MB.megabyte %>
<%= t('pdf_preview.pages.of') %> ...
<%= image_tag 'pdf_js/blocked.svg', class: 'image' %>

<%= t('pdf_preview.blocked.title') %>

<%= t('pdf_preview.blocked.description') %>