Skip to content

A free open source IT asset/license management system

Few more icon updates

snipead6f073c825c
diff --git a/app/Presenters/ActionlogPresenter.php b/app/Presenters/ActionlogPresenter.php
index 80af3b120d..a687468bac 100644
--- a/app/Presenters/ActionlogPresenter.php
+++ b/app/Presenters/ActionlogPresenter.php
@@ -41,18 +41,17 @@ class ActionlogPresenter extends Presenter
$itemicon = 'fa fa-paperclip';
if ($this->itemType() == 'asset') {
- $itemicon = 'fa fa-barcode';
+ return 'fa fa-barcode';
} elseif ($this->itemType() == 'accessory') {
- $itemicon = 'far fa-keyboard';
+ return 'far fa-keyboard';
} elseif ($this->itemType() == 'consumable') {
- $itemicon = 'fa fa-tint';
+ return 'fa fa-tint';
} elseif ($this->itemType() == 'license') {
- $itemicon = 'far fa-save';
+ return 'far fa-save';
} elseif ($this->itemType() == 'component') {
- $itemicon = 'far fa-hdd';
+ return 'far fa-hdd';
}
- return $itemicon;
}
public function actionType()
diff --git a/resources/views/partials/bootstrap-table.blade.php b/resources/views/partials/bootstrap-table.blade.php
index 121cfee2af..909cdc28da 100644
--- a/resources/views/partials/bootstrap-table.blade.php
+++ b/resources/views/partials/bootstrap-table.blade.php
@@ -205,7 +205,7 @@
}
if ((row.available_actions) && (row.available_actions.clone === true)) {
- actions += '<a href="{{ url('/') }}/' + dest + '/' + row.id + '/clone" class="btn btn-sm btn-info" data-tooltip="true" title="Clone Item"><i class="fa fa-copy" aria-hidden="true"></i><span class="sr-only">Clone</span></a>&nbsp;';
+ actions += '<a href="{{ url('/') }}/' + dest + '/' + row.id + '/clone" class="btn btn-sm btn-info" data-tooltip="true" title="Clone Item"><i class="far fa-clone" aria-hidden="true"></i><span class="sr-only">Clone</span></a>&nbsp;';
}
if ((row.available_actions) && (row.available_actions.update === true)) {
@@ -224,7 +224,7 @@
}
if ((row.available_actions) && (row.available_actions.restore === true)) {
- actions += '<a href="{{ url('/') }}/' + dest + '/' + row.id + '/restore" class="btn btn-sm btn-warning" data-toggle="tooltip" title="Restore"><i class="fa fa-retweet"></i></a>&nbsp;';
+ actions += '<a href="{{ url('/') }}/' + dest + '/' + row.id + '/restore" class="btn btn-sm btn-warning" data-toggle="tooltip" title="Restore"><i class="far fa-clone"></i></a>&nbsp;';
}
actions +='</nobr>';
@@ -244,28 +244,28 @@
if (value.type == 'asset') {
item_destination = 'hardware';
- item_icon = 'fa-barcode';
+ item_icon = 'fa fa-barcode';
} else if (value.type == 'accessory') {
item_destination = 'accessories';
- item_icon = 'fa-keyboard-o';
+ item_icon = 'far fa-keyboard';
} else if (value.type == 'component') {
item_destination = 'components';
- item_icon = 'fa-hdd-o';
+ item_icon = 'far fa-hdd';
} else if (value.type == 'consumable') {
item_destination = 'consumables';
- item_icon = 'fa-tint';
+ item_icon = 'fa fa-tint';
} else if (value.type == 'license') {
item_destination = 'licenses';
- item_icon = 'fa-floppy-o';
+ item_icon = 'far fa-save';
} else if (value.type == 'user') {
item_destination = 'users';
- item_icon = 'fa-user';
+ item_icon = 'fa fa-user';
} else if (value.type == 'location') {
item_destination = 'locations'
- item_icon = 'fa-map-marker';
+ item_icon = 'far fa-hdd';
}
- return '<nobr><a href="{{ url('/') }}/' + item_destination +'/' + value.id + '" data-tooltip="true" title="' + value.type + '"><i class="fa ' + item_icon + ' text-{{ $snipeSettings->skin!='' ? $snipeSettings->skin : 'blue' }} "></i> ' + value.name + '</a></nobr>';
+ return '<nobr><a href="{{ url('/') }}/' + item_destination +'/' + value.id + '" data-tooltip="true" title="' + value.type + '"><i class="' + item_icon + ' text-{{ $snipeSettings->skin!='' ? $snipeSettings->skin : 'blue' }} "></i> ' + value.name + '</a></nobr>';
} else {
return '';