mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-08 04:47:22 +08:00
Add translation for read-only items
This commit is contained in:
parent
ec8af5f943
commit
0effb3ee69
2 changed files with 2 additions and 1 deletions
|
@ -444,7 +444,7 @@ var RepositoryDatatable = (function(global) {
|
||||||
let content = data;
|
let content = data;
|
||||||
let icon = '<i class="repository-row-edit-icon fas fa-pencil-alt"></i>';
|
let icon = '<i class="repository-row-edit-icon fas fa-pencil-alt"></i>';
|
||||||
if (!row.recordEditable) {
|
if (!row.recordEditable) {
|
||||||
icon = '<i class="repository-row-lock-icon fas fa-lock"></i>';
|
icon = `<i class="repository-row-lock-icon fas fa-lock" title="${I18n.t('repositories.table.locked_item')}"></i>`;
|
||||||
}
|
}
|
||||||
content = icon + content;
|
content = icon + content;
|
||||||
return content;
|
return content;
|
||||||
|
|
|
@ -1055,6 +1055,7 @@ en:
|
||||||
added_on: "Added on"
|
added_on: "Added on"
|
||||||
added_by: "Added by"
|
added_by: "Added by"
|
||||||
enter_row_name: "Enter name"
|
enter_row_name: "Enter name"
|
||||||
|
locked_item: "This is read-only item."
|
||||||
assets:
|
assets:
|
||||||
select_file_btn: "Select File (Max %{max_size} MB)..."
|
select_file_btn: "Select File (Max %{max_size} MB)..."
|
||||||
text:
|
text:
|
||||||
|
|
Loading…
Add table
Reference in a new issue