Fixed #15740 - use non-translated strings for icons
Some checks are pending
Crowdin Action / upload-sources-to-crowdin (push) Waiting to run
Docker images (Alpine) / docker (push) Waiting to run
Docker images / docker (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.1) (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.2) (push) Waiting to run
Tests in MySQL / PHP ${{ matrix.php-version }} (8.3) (push) Waiting to run
Tests in SQLite / PHP ${{ matrix.php-version }} (8.1.1) (push) Waiting to run

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2024-10-28 13:37:59 +00:00
parent 589f9cccdf
commit 86d784bd59

View file

@ -42,27 +42,27 @@ class ActionlogPresenter extends Presenter
// User related icons
if ($this->itemType() == 'user') {
if ($this->actionType()=='2fa reset') {
if ($this->action_type == '2fa reset') {
return 'fa-solid fa-mobile-screen';
}
if ($this->actionType()=='create new') {
if ($this->action_type == 'create new') {
return 'fa-solid fa-user-plus';
}
if ($this->actionType()=='merged') {
if ($this->action_type == 'merged') {
return 'fa-solid fa-people-arrows';
}
if ($this->actionType()=='delete') {
if ($this->action_type == 'delete') {
return 'fa-solid fa-user-minus';
}
if ($this->actionType()=='delete') {
if ($this->action_type == 'delete') {
return 'fa-solid fa-user-minus';
}
if ($this->actionType()=='update') {
if ($this->action_type == 'update') {
return 'fa-solid fa-user-pen';
}
@ -70,31 +70,31 @@ class ActionlogPresenter extends Presenter
}
// Everything else
if ($this->actionType()=='create new') {
if ($this->action_type == 'create new') {
return 'fa-solid fa-plus';
}
if ($this->actionType()=='delete') {
if ($this->action_type == 'delete') {
return 'fa-solid fa-trash';
}
if ($this->actionType()=='update') {
if ($this->action_type == 'update') {
return 'fa-solid fa-pen';
}
if ($this->actionType()=='restore') {
if ($this->action_type == 'restore') {
return 'fa-solid fa-trash-arrow-up';
}
if ($this->actionType()=='upload') {
if ($this->action_type == 'upload') {
return 'fas fa-paperclip';
}
if ($this->actionType()=='checkout') {
if ($this->action_type == 'checkout') {
return 'fa-solid fa-rotate-left';
}
if ($this->actionType()=='checkin from') {
if ($this->action_type == 'checkin from') {
return 'fa-solid fa-rotate-right';
}