mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-20 14:45:56 +08:00
Update shared status in inventory datatable [SCI-8655] (#5604)
This commit is contained in:
parent
0680379dd6
commit
89f1efc64e
|
@ -134,7 +134,8 @@
|
|||
}
|
||||
}
|
||||
|
||||
tr[data-shared=true] {
|
||||
tr[data-shared=true],
|
||||
tr[data-i-shared=true] {
|
||||
td.item-name::before {
|
||||
@include font-awesome;
|
||||
content: "\f0c0";
|
||||
|
|
|
@ -28,7 +28,8 @@ module RepositoriesDatatableHelper
|
|||
'data-delete-modal-url': team_repository_destroy_modal_path(team, repository_id: repository),
|
||||
'data-copy-modal-url': team_repository_copy_modal_path(team, repository_id: repository),
|
||||
'data-rename-modal-url': team_repository_rename_modal_path(team, repository_id: repository),
|
||||
'data-shared': repository.shared_with?(team)
|
||||
'data-shared': repository.shared_with?(team),
|
||||
'data-i-shared': repository.i_shared?(team)
|
||||
}
|
||||
)
|
||||
end
|
||||
|
@ -38,6 +39,7 @@ module RepositoriesDatatableHelper
|
|||
private
|
||||
|
||||
def shared_label(repository, team)
|
||||
return I18n.t('libraries.index.shared') if repository.i_shared?(team)
|
||||
return I18n.t('libraries.index.not_shared') unless repository.shared_with?(team)
|
||||
|
||||
if repository.shared_with_read?(team)
|
||||
|
|
|
@ -2235,6 +2235,7 @@ en:
|
|||
shared_for_viewing: "For viewing"
|
||||
shared_for_editing: "For editing"
|
||||
not_shared: "No"
|
||||
shared: "Yes"
|
||||
switch_view:
|
||||
active: Show active inventories
|
||||
archived: Show archived inventories
|
||||
|
|
Loading…
Reference in a new issue