mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-11-11 00:41:41 +08:00
Add size label
This commit is contained in:
parent
3fe3c2087f
commit
6edcf4b099
3 changed files with 3 additions and 2 deletions
|
|
@ -14,7 +14,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="file-metadata">
|
<div class="file-metadata">
|
||||||
<span><%= t('assets.placeholder.modified_label') %> <%= l(asset.updated_at, format: :full_date) if asset.updated_at %></span>
|
<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>
|
</div>
|
||||||
<div class="change-preview-type"
|
<div class="change-preview-type"
|
||||||
|
|
|
||||||
|
|
@ -15,7 +15,7 @@
|
||||||
<% end %>
|
<% end %>
|
||||||
<div class="file-metadata">
|
<div class="file-metadata">
|
||||||
<span><%= t('assets.placeholder.modified_label') %> <%= l(asset.updated_at, format: :full_date) if asset.updated_at %></span>
|
<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"
|
<div class="change-preview-type"
|
||||||
data-preview-type="inline"
|
data-preview-type="inline"
|
||||||
|
|
|
||||||
|
|
@ -2266,6 +2266,7 @@ en:
|
||||||
file_name_placeholder: 'Image'
|
file_name_placeholder: 'Image'
|
||||||
placeholder:
|
placeholder:
|
||||||
modified_label: "Modified:"
|
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_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_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.'
|
wopi_supported_presentation_formats_title: 'Only .pptx, ppsx, .odp file formats are supported for editing in Powerpoint Online.'
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue