mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-26 06:04:08 -08:00
footer now uses flex
This commit is contained in:
parent
42f198ffed
commit
0cca45d858
|
@ -73,13 +73,18 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
|
|||
'location_id' => 'integer',
|
||||
'company_id' => 'integer',
|
||||
'vip' => 'boolean',
|
||||
'created_at' => 'datetime',
|
||||
'updated_at' => 'datetime',
|
||||
'deleted_at' => 'datetime',
|
||||
'start_date' => 'datetime:Y-m-d',
|
||||
'end_date' => 'datetime:Y-m-d',
|
||||
];
|
||||
|
||||
|
||||
protected $dates = [
|
||||
'created_at',
|
||||
'updated_at',
|
||||
'deleted_at',
|
||||
'start_date' => 'date_format:Y-m-d',
|
||||
'end_date' => 'date_format:Y-m-d',
|
||||
];
|
||||
|
||||
|
||||
/**
|
||||
* Model validation rules
|
||||
*
|
||||
|
@ -267,7 +272,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
|
|||
{
|
||||
// At this point the endpoint is the same for everything.
|
||||
// In the future this may want to be adapted for individual notifications.
|
||||
$this->endpoint = \App\Models\Setting::getSettings()->webhook_endpoint;
|
||||
$this->endpoint = \App\Models\Setting::getSettings()->slack_endpoint;
|
||||
|
||||
return $this->endpoint;
|
||||
}
|
||||
|
@ -353,7 +358,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
|
|||
$totalCount = $assetsCount + $licensesCount + $accessoriesCount + $consumablesCount;
|
||||
|
||||
return (int) $totalCount;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Establishes the user -> actionlogs relationship
|
||||
|
@ -555,7 +560,7 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
|
|||
$username = str_slug($first_name).str_slug($last_name);
|
||||
} elseif ($format == 'firstnamelastinitial') {
|
||||
$username = str_slug(($first_name.substr($last_name, 0, 1)));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
$user['first_name'] = $first_name;
|
||||
|
@ -652,9 +657,9 @@ class User extends SnipeModel implements AuthenticatableContract, AuthorizableCo
|
|||
*/
|
||||
public function scopeSimpleNameSearch($query, $search)
|
||||
{
|
||||
$query = $query->where('first_name', 'LIKE', '%'.$search.'%')
|
||||
->orWhere('last_name', 'LIKE', '%'.$search.'%')
|
||||
->orWhereRaw('CONCAT('.DB::getTablePrefix().'users.first_name," ",'.DB::getTablePrefix().'users.last_name) LIKE ?', ["%{$search}%"]);
|
||||
$query = $query->where('first_name', 'LIKE', '%'.$search.'%')
|
||||
->orWhere('last_name', 'LIKE', '%'.$search.'%')
|
||||
->orWhereRaw('CONCAT('.DB::getTablePrefix().'users.first_name," ",'.DB::getTablePrefix().'users.last_name) LIKE ?', ["%{$search}%"]);
|
||||
|
||||
return $query;
|
||||
}
|
||||
|
|
|
@ -850,13 +850,11 @@
|
|||
</section>
|
||||
|
||||
</div><!-- /.content-wrapper -->
|
||||
|
||||
@if($snipeSettings->footer_text!='')
|
||||
<footer class="main-footer hidden-print" style="height:100px;">
|
||||
@if ($snipeSettings->footer_text!='')
|
||||
<footer class="main-footer hidden-print" style="display:flex;flex-direction:row;" >
|
||||
@else
|
||||
<footer class="main-footer hidden-print">
|
||||
@endif
|
||||
|
||||
<div class="pull-right hidden-xs">
|
||||
@if ($snipeSettings->version_footer!='off')
|
||||
@if (($snipeSettings->version_footer=='on') || (($snipeSettings->version_footer=='admin') && (Auth::user()->isSuperUser()=='1')))
|
||||
|
@ -884,7 +882,7 @@
|
|||
|
||||
</div>
|
||||
@if ($snipeSettings->footer_text!='')
|
||||
<div class="pull-right">
|
||||
<div class="pull-right" style="display: flex;flex-direction: row;">
|
||||
{!! Helper::parseEscapedMarkedown($snipeSettings->footer_text) !!}
|
||||
</div>
|
||||
@endif
|
||||
|
|
Loading…
Reference in a new issue