Skip to content

A free open source IT asset/license management system

Converted table heading icons in People to CSS glyphs

snipee009fbe59f39
diff --git a/app/Presenters/UserPresenter.php b/app/Presenters/UserPresenter.php
index 2e7af67591..5f656f23a9 100644
--- a/app/Presenters/UserPresenter.php
+++ b/app/Presenters/UserPresenter.php
@@ -171,21 +171,22 @@ class UserPresenter extends Presenter
"formatter" => "usersLinkObjFormatter"
],
[
- "field" => "assets_count",
- "searchable" => false,
- "sortable" => true,
- "switchable" => true,
- "title" => ' <span class="hidden-md hidden-lg">Assets</span>'
- .'<span class="hidden-xs"><i class="fa fa-barcode fa-lg"></i></span>',
- "visible" => true,
+ 'field' => 'assets_count',
+ 'searchable' => false,
+ 'sortable' => true,
+ 'switchable' => true,
+ 'escape' => true,
+ 'class' => 'css-barcode',
+ 'title' => 'Assets',
+ 'visible' => true,
],
[
"field" => "licenses_count",
"searchable" => false,
"sortable" => true,
"switchable" => true,
- "title" => ' <span class="hidden-md hidden-lg">Licenses</span>'
- .'<span class="hidden-xs"><i class="fa fa-floppy-o fa-lg"></i></span>',
+ 'class' => 'css-license',
+ "title" => 'License',
"visible" => true,
],
[
@@ -193,8 +194,8 @@ class UserPresenter extends Presenter
"searchable" => false,
"sortable" => true,
"switchable" => true,
- "title" => ' <span class="hidden-md hidden-lg">Consumables</span>'
- .'<span class="hidden-xs"><i class="fa fa-tint fa-lg"></i></span>',
+ 'class' => 'css-consumable',
+ "title" => 'Consumables',
"visible" => true,
],
[
@@ -202,8 +203,8 @@ class UserPresenter extends Presenter
"searchable" => false,
"sortable" => true,
"switchable" => true,
- "title" => ' <span class="hidden-md hidden-lg">Accessories</span>'
- .'<span class="hidden-xs"><i class="fa fa-keyboard-o fa-lg"></i></span>',
+ 'class' => 'css-accessory',
+ "title" => 'Accessories',
"visible" => true,
],
[
diff --git a/resources/views/users/index.blade.php b/resources/views/users/index.blade.php
index 4760077cf8..347e4f5d94 100755
--- a/resources/views/users/index.blade.php
+++ b/resources/views/users/index.blade.php
@@ -14,6 +14,59 @@
@stop
@section('header_right')
+
+<style>
+
+ th.css-barcode > .th-inner,
+ th.css-license > .th-inner,
+ th.css-consumable > .th-inner,
+ th.css-accessory > .th-inner
+ {
+ font-size: 0px;
+ line-height: 0;
+ line-height: 4!important;
+ text-align: center;
+ text-rendering: auto;
+ -webkit-font-smoothing: antialiased;
+ -moz-osx-font-smoothing: grayscale;
+ }
+
+
+ th.css-barcode > .th-inner::before,
+ th.css-license > .th-inner::before,
+ th.css-consumable > .th-inner::before,
+ th.css-accessory > .th-inner::before
+
+ {
+ display: inline-block;
+ font: normal normal normal 14px/1 FontAwesome;
+ font-size: 20px;
+ }
+
+
+ th.css-barcode > .th-inner::before
+ {
+ content: "\f02a";
+ }
+
+ th.css-license > .th-inner::before
+ {
+ content: "\f0c7";
+ }
+
+ th.css-consumable > .th-inner::before
+ {
+ content: "\f043";
+ }
+
+ th.css-accessory > .th-inner::before
+ {
+ content: "\f11c";
+ }
+
+
+</style>
+
@can('create', \App\Models\User::class)
@if ($snipeSettings->ldap_enabled == 1)
<a href="{{ route('ldap/user') }}" class="btn btn-default pull-right"><span class="fa fa-sitemap"></span> LDAP Sync</a>
@@ -90,7 +143,9 @@
@stop
-@section('moar_scripts')
+@section('moar_scripts')val
+
+
@include ('partials.bootstrap-table')