mirror of
https://github.com/snipe/snipe-it.git
synced 2025-02-02 08:21:09 -08:00
Icon display on recent activity
This commit is contained in:
parent
aad1ba4ab3
commit
975b266cb0
|
@ -88,6 +88,7 @@
|
|||
<table class="table table-hover table-fixed break-word">
|
||||
<thead>
|
||||
<tr>
|
||||
<th></th>
|
||||
<th class="col-md-2"><span class="line"></span>{{ trans('general.date') }}</th>
|
||||
<th class="col-md-2"><span class="line"></span>{{ trans('general.admin') }}</th>
|
||||
<th class="col-md-2"><span class="line"></span>{{ trans('table.actions') }}</th>
|
||||
|
@ -99,6 +100,21 @@
|
|||
@if (count($recent_activity) > 0)
|
||||
@foreach ($recent_activity as $activity)
|
||||
<tr>
|
||||
<td>
|
||||
@if ($activity->asset_type=="hardware")
|
||||
<i class="fa fa-barcode"></i>
|
||||
@elseif ($activity->asset_type=="accessory")
|
||||
<i class="fa fa-keyboard-o"></i>
|
||||
@elseif ($activity->asset_type=="consumable")
|
||||
<i class="fa fa-tint"></i>
|
||||
@elseif ($activity->asset_type=="license")
|
||||
<i class="fa fa-floppy-o"></i>
|
||||
@elseif ($activity->asset_type=="component")
|
||||
<i class="fa fa-hdd-o"></i>
|
||||
@else
|
||||
<i class="fa fa-paperclip"></i>
|
||||
@endif
|
||||
</td>
|
||||
<td>{{ date("M d, Y H:iA", strtotime($activity->created_at)) }}</td>
|
||||
<td>
|
||||
@if ($activity->action_type!='requested')
|
||||
|
|
Loading…
Reference in a new issue