Add size label

This commit is contained in:
aignatov-bio 2020-10-26 15:10:06 +01:00
parent 3fe3c2087f
commit 6edcf4b099
3 changed files with 3 additions and 2 deletions

View file

@ -14,7 +14,7 @@
<% end %>
<div class="file-metadata">
<span><%= t('assets.placeholder.modified_label') %> <%= l(asset.updated_at, format: :full_date) if asset.updated_at %></span>
<span><%= number_to_human_size(asset.file_size) %></span>
<span><%= t('assets.placeholder.size_label', size: number_to_human_size(asset.file_size)) %></span>
</div>
</div>
<div class="change-preview-type"

View file

@ -15,7 +15,7 @@
<% end %>
<div class="file-metadata">
<span><%= t('assets.placeholder.modified_label') %> <%= l(asset.updated_at, format: :full_date) if asset.updated_at %></span>
<span><%= number_to_human_size(asset.file_size) %></span>
<span><%= t('assets.placeholder.size_label', size: number_to_human_size(asset.file_size)) %></span>
</div>
<div class="change-preview-type"
data-preview-type="inline"

View file

@ -2266,6 +2266,7 @@ en:
file_name_placeholder: 'Image'
placeholder:
modified_label: "Modified:"
size_label: "Size: %{size}"
wopi_supported_text_formats_title: 'Only .docx, .docm, .odt file formats are supported for editing in Word Online.'
wopi_supported_table_formats_title: 'Only .xlsx, .xlsm, .xlsb, .ods file formats are supported for editing in Excel Online.'
wopi_supported_presentation_formats_title: 'Only .pptx, ppsx, .odp file formats are supported for editing in Powerpoint Online.'