mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-10 07:34:06 -08:00
Merge pull request #12793 from snipe/fixes/use_app_url_more_consistently
Fixed #12772 - use the APP_URL config more consistently
This commit is contained in:
commit
39e6ca82bb
|
@ -84,7 +84,7 @@ class SettingsController extends Controller
|
||||||
}
|
}
|
||||||
$pageURL = $protocol.$host.$_SERVER['REQUEST_URI'];
|
$pageURL = $protocol.$host.$_SERVER['REQUEST_URI'];
|
||||||
|
|
||||||
$start_settings['url_config'] = url('/').'/setup';
|
$start_settings['url_config'] = config('app.url').'/setup';
|
||||||
$start_settings['url_valid'] = ($start_settings['url_config'] === $pageURL);
|
$start_settings['url_valid'] = ($start_settings['url_config'] === $pageURL);
|
||||||
$start_settings['real_url'] = $pageURL;
|
$start_settings['real_url'] = $pageURL;
|
||||||
$start_settings['php_version_min'] = true;
|
$start_settings['php_version_min'] = true;
|
||||||
|
|
|
@ -20,13 +20,13 @@ class CheckForSetup
|
||||||
|
|
||||||
if (Setting::setupCompleted()) {
|
if (Setting::setupCompleted()) {
|
||||||
if ($request->is('setup*')) {
|
if ($request->is('setup*')) {
|
||||||
return redirect(url('/'));
|
return redirect(config('app.url'));
|
||||||
} else {
|
} else {
|
||||||
return $next($request);
|
return $next($request);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (! ($request->is('setup*')) && ! ($request->is('.env')) && ! ($request->is('health'))) {
|
if (! ($request->is('setup*')) && ! ($request->is('.env')) && ! ($request->is('health'))) {
|
||||||
return redirect(url('/').'/setup');
|
return redirect(config('app.url').'/setup');
|
||||||
}
|
}
|
||||||
|
|
||||||
return $next($request);
|
return $next($request);
|
||||||
|
|
|
@ -267,7 +267,7 @@ class Location extends SnipeModel
|
||||||
|
|
||||||
foreach ($locations_with_children[$parent_id] as $location) {
|
foreach ($locations_with_children[$parent_id] as $location) {
|
||||||
$location->use_text = $prefix.' '.$location->name;
|
$location->use_text = $prefix.' '.$location->name;
|
||||||
$location->use_image = ($location->image) ? url('/').'/uploads/locations/'.$location->image : null;
|
$location->use_image = ($location->image) ? config('app.url').'/uploads/locations/'.$location->image : null;
|
||||||
$results[] = $location;
|
$results[] = $location;
|
||||||
//now append the children. (if we have any)
|
//now append the children. (if we have any)
|
||||||
if (array_key_exists($location->id, $locations_with_children)) {
|
if (array_key_exists($location->id, $locations_with_children)) {
|
||||||
|
|
|
@ -24,7 +24,7 @@ class FirstAdminNotification extends Notification
|
||||||
$this->_data['last_name'] = $content['last_name'];
|
$this->_data['last_name'] = $content['last_name'];
|
||||||
$this->_data['username'] = $content['username'];
|
$this->_data['username'] = $content['username'];
|
||||||
$this->_data['password'] = $content['password'];
|
$this->_data['password'] = $content['password'];
|
||||||
$this->_data['url'] = url('/');
|
$this->_data['url'] = config('app.url');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -24,7 +24,7 @@ class WelcomeNotification extends Notification
|
||||||
$this->_data['last_name'] = htmlspecialchars_decode($content['last_name']);
|
$this->_data['last_name'] = htmlspecialchars_decode($content['last_name']);
|
||||||
$this->_data['username'] = htmlspecialchars_decode($content['username']);
|
$this->_data['username'] = htmlspecialchars_decode($content['username']);
|
||||||
$this->_data['password'] = htmlspecialchars_decode($content['password']);
|
$this->_data['password'] = htmlspecialchars_decode($content['password']);
|
||||||
$this->_data['url'] = url('/');
|
$this->_data['url'] = config('app.url');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -210,7 +210,7 @@ class AssetModelPresenter extends Presenter
|
||||||
public function imageUrl()
|
public function imageUrl()
|
||||||
{
|
{
|
||||||
if (! empty($this->image)) {
|
if (! empty($this->image)) {
|
||||||
return '<img src="'.url('/').'/uploads/models/'.$this->image.'" alt="'.$this->name.'" height="50" width="50">';
|
return '<img src="'.config('app.url').'/uploads/models/'.$this->image.'" alt="'.$this->name.'" height="50" width="50">';
|
||||||
}
|
}
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
|
@ -223,7 +223,7 @@ class AssetModelPresenter extends Presenter
|
||||||
public function imageSrc()
|
public function imageSrc()
|
||||||
{
|
{
|
||||||
if (! empty($this->image)) {
|
if (! empty($this->image)) {
|
||||||
return url('/').'/uploads/models/'.$this->image;
|
return config('app.url').'/uploads/models/'.$this->image;
|
||||||
}
|
}
|
||||||
|
|
||||||
return '';
|
return '';
|
||||||
|
|
|
@ -406,7 +406,7 @@ class UserPresenter extends Presenter
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set a fun, gender-neutral default icon
|
// Set a fun, gender-neutral default icon
|
||||||
return url('/').'/img/default-sm.png';
|
return config('app.url').'/img/default-sm.png';
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -161,7 +161,7 @@ class Saml
|
||||||
//Let onelogin/php-saml know to use 'X-Forwarded-*' headers if it is from a trusted proxy
|
//Let onelogin/php-saml know to use 'X-Forwarded-*' headers if it is from a trusted proxy
|
||||||
OneLogin_Saml2_Utils::setProxyVars(request()->isFromTrustedProxy());
|
OneLogin_Saml2_Utils::setProxyVars(request()->isFromTrustedProxy());
|
||||||
|
|
||||||
data_set($settings, 'sp.entityId', url('/'));
|
data_set($settings, 'sp.entityId', config('app.url'));
|
||||||
data_set($settings, 'sp.assertionConsumerService.url', route('saml.acs'));
|
data_set($settings, 'sp.assertionConsumerService.url', route('saml.acs'));
|
||||||
data_set($settings, 'sp.singleLogoutService.url', route('saml.sls'));
|
data_set($settings, 'sp.singleLogoutService.url', route('saml.sls'));
|
||||||
data_set($settings, 'sp.x509cert', $setting->saml_sp_x509cert);
|
data_set($settings, 'sp.x509cert', $setting->saml_sp_x509cert);
|
||||||
|
|
|
@ -104,8 +104,8 @@
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
@if ($requestableModel->image)
|
@if ($requestableModel->image)
|
||||||
<a href="{{ url('/') }}/uploads/models/{{ $requestableModel->image }}" data-toggle="lightbox" data-type="image">
|
<a href="{{ config('app.url') }}/uploads/models/{{ $requestableModel->image }}" data-toggle="lightbox" data-type="image">
|
||||||
<img src="{{ url('/') }}/uploads/models/{{ $requestableModel->image }}" style="max-height: {{ $snipeSettings->thumbnail_max_h }}px; width: auto;" class="img-responsive">
|
<img src="{{ config('app.url') }}/uploads/models/{{ $requestableModel->image }}" style="max-height: {{ $snipeSettings->thumbnail_max_h }}px; width: auto;" class="img-responsive">
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
|
@ -54,11 +54,11 @@
|
||||||
function maintenanceActions(value, row) {
|
function maintenanceActions(value, row) {
|
||||||
var actions = '<nobr>';
|
var actions = '<nobr>';
|
||||||
if ((row) && (row.available_actions.update === true)) {
|
if ((row) && (row.available_actions.update === true)) {
|
||||||
actions += '<a href="{{ url('/') }}/hardware/maintenances/' + row.id + '/edit" class="btn btn-sm btn-warning" data-tooltip="true" title="Update"><i class="fas fa-pencil-alt"></i></a> ';
|
actions += '<a href="{{ config('app.url') }}/hardware/maintenances/' + row.id + '/edit" class="btn btn-sm btn-warning" data-tooltip="true" title="Update"><i class="fas fa-pencil-alt"></i></a> ';
|
||||||
}
|
}
|
||||||
actions += '</nobr>'
|
actions += '</nobr>'
|
||||||
if ((row) && (row.available_actions.delete === true)) {
|
if ((row) && (row.available_actions.delete === true)) {
|
||||||
actions += '<a href="{{ url('/') }}/hardware/maintenances/' + row.id + '" '
|
actions += '<a href="{{ config('app.url') }}/hardware/maintenances/' + row.id + '" '
|
||||||
+ ' class="btn btn-danger btn-sm delete-asset" data-tooltip="true" '
|
+ ' class="btn btn-danger btn-sm delete-asset" data-tooltip="true" '
|
||||||
+ ' data-toggle="modal" '
|
+ ' data-toggle="modal" '
|
||||||
+ ' data-content="{{ trans('general.sure_to_delete') }} ' + row.name + '?" '
|
+ ' data-content="{{ trans('general.sure_to_delete') }} ' + row.name + '?" '
|
||||||
|
|
|
@ -16,11 +16,11 @@
|
||||||
<div class="col-md-8 col-md-offset-2">
|
<div class="col-md-8 col-md-offset-2">
|
||||||
|
|
||||||
<div style="padding-top: 200px">
|
<div style="padding-top: 200px">
|
||||||
<img src="{{ url('/') }}/img/sad-panda.png" style="width: 200px; height: 200px;" class="pull-left">
|
<img src="{{ config('app.url') }}/img/sad-panda.png" style="width: 200px; height: 200px;" class="pull-left">
|
||||||
<div class="error-content">
|
<div class="error-content">
|
||||||
<h2><i class="fas fa-exclamation-triangle text-yellow"></i> 403 Forbidden.</h2>
|
<h2><i class="fas fa-exclamation-triangle text-yellow"></i> 403 Forbidden.</h2>
|
||||||
<p>
|
<p>
|
||||||
Sad panda. You are not authorized to do the thing. Maybe <a href="{{ url('/') }}">return to the dashboard</a>, or contact your administrator.
|
Sad panda. You are not authorized to do the thing. Maybe <a href="{{ config('app.url') }}">return to the dashboard</a>, or contact your administrator.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -16,12 +16,12 @@
|
||||||
<div class="col-md-8 col-md-offset-2">
|
<div class="col-md-8 col-md-offset-2">
|
||||||
|
|
||||||
<div style="padding-top: 200px">
|
<div style="padding-top: 200px">
|
||||||
<img src="{{ url('/') }}/img/sad-panda.png" style="width: 200px; height: 200px;" class="pull-left">
|
<img src="{{ config('app.url') }}/img/sad-panda.png" style="width: 200px; height: 200px;" class="pull-left">
|
||||||
<div class="error-content">
|
<div class="error-content">
|
||||||
<h2><i class="fas fa-exclamation-triangle text-yellow"></i> 404 Page not found.</h2>
|
<h2><i class="fas fa-exclamation-triangle text-yellow"></i> 404 Page not found.</h2>
|
||||||
<p>
|
<p>
|
||||||
Sad panda. We could not find the page you were looking for.
|
Sad panda. We could not find the page you were looking for.
|
||||||
You should maybe <a href="{{ url('/') }}">return to the dashboard</a>.
|
You should maybe <a href="{{ config('app.url') }}">return to the dashboard</a>.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -29,7 +29,7 @@
|
||||||
<div class="col-md-12">
|
<div class="col-md-12">
|
||||||
|
|
||||||
<div class="col-md-2">
|
<div class="col-md-2">
|
||||||
<img src="{{ url('/') }}/img/sad-panda.png" class="pull-right" style="width: 140px; height: 140px;">
|
<img src="{{ config('app.url') }}/img/sad-panda.png" class="pull-right" style="width: 140px; height: 140px;">
|
||||||
</div>
|
</div>
|
||||||
<div class="alert alert-warning fade in">
|
<div class="alert alert-warning fade in">
|
||||||
<h2> {{ trans('general.maintenance_mode') }}</h2>
|
<h2> {{ trans('general.maintenance_mode') }}</h2>
|
||||||
|
|
|
@ -198,7 +198,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
url: "{{ url('/') }}/models/" + modelid + "/custom_fields",
|
url: "{{ config('app.url') }}/models/" + modelid + "/custom_fields",
|
||||||
headers: {
|
headers: {
|
||||||
"X-Requested-With": 'XMLHttpRequest',
|
"X-Requested-With": 'XMLHttpRequest',
|
||||||
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
|
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
|
||||||
|
@ -230,7 +230,7 @@
|
||||||
if (status_id != '') {
|
if (status_id != '') {
|
||||||
$(".status_spinner").css("display", "inline");
|
$(".status_spinner").css("display", "inline");
|
||||||
$.ajax({
|
$.ajax({
|
||||||
url: "{{url('/') }}/api/v1/statuslabels/" + status_id + "/deployable",
|
url: "{{config('app.url') }}/api/v1/statuslabels/" + status_id + "/deployable",
|
||||||
headers: {
|
headers: {
|
||||||
"X-Requested-With": 'XMLHttpRequest',
|
"X-Requested-With": 'XMLHttpRequest',
|
||||||
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
|
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
|
||||||
|
|
|
@ -64,7 +64,7 @@
|
||||||
@if (($request->itemType() == "asset") && ($request->requestable))
|
@if (($request->itemType() == "asset") && ($request->requestable))
|
||||||
<a href="{{ $request->requestable->getImageUrl() }}" data-toggle="lightbox" data-type="image"><img src="{{ $request->requestable->getImageUrl() }}" style="max-height: {{ $snipeSettings->thumbnail_max_h }}px; width: auto;" class="img-responsive" alt="{{ $request->requestable->name }}"></a>
|
<a href="{{ $request->requestable->getImageUrl() }}" data-toggle="lightbox" data-type="image"><img src="{{ $request->requestable->getImageUrl() }}" style="max-height: {{ $snipeSettings->thumbnail_max_h }}px; width: auto;" class="img-responsive" alt="{{ $request->requestable->name }}"></a>
|
||||||
@elseif (($request->itemType() == "asset_model") && ($request->requestable))
|
@elseif (($request->itemType() == "asset_model") && ($request->requestable))
|
||||||
<a href="{{ url('/') }}/uploads/models/{{ $request->requestable->image }}" data-toggle="lightbox" data-type="image"><img src="{{ url('/') }}/uploads/models/{{ $request->requestable->image }}" style="max-height: {{ $snipeSettings->thumbnail_max_h }}px; width: auto;" class="img-responsive" alt="{{ $request->requestable->name }}"></a>
|
<a href="{{ config('app.url') }}/uploads/models/{{ $request->requestable->image }}" data-toggle="lightbox" data-type="image"><img src="{{ config('app.url') }}/uploads/models/{{ $request->requestable->image }}" style="max-height: {{ $snipeSettings->thumbnail_max_h }}px; width: auto;" class="img-responsive" alt="{{ $request->requestable->name }}"></a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -72,11 +72,11 @@
|
||||||
<td>
|
<td>
|
||||||
|
|
||||||
@if ($request->itemType() == "asset")
|
@if ($request->itemType() == "asset")
|
||||||
<a href="{{ url('/') }}/hardware/{{ $request->requestable->id }}">
|
<a href="{{ config('app.url') }}/hardware/{{ $request->requestable->id }}">
|
||||||
{{ $request->name() }}
|
{{ $request->name() }}
|
||||||
</a>
|
</a>
|
||||||
@elseif ($request->itemType() == "asset_model")
|
@elseif ($request->itemType() == "asset_model")
|
||||||
<a href="{{ url('/') }}/models/{{ $request->requestable->id }}">
|
<a href="{{ config('app.url') }}/models/{{ $request->requestable->id }}">
|
||||||
{{ $request->name() }}
|
{{ $request->name() }}
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
@ -95,7 +95,7 @@
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
@if ($request->requestingUser())
|
@if ($request->requestingUser())
|
||||||
<a href="{{ url('/') }}/users/{{ $request->requestingUser()->id }}">
|
<a href="{{ config('app.url') }}/users/{{ $request->requestingUser()->id }}">
|
||||||
{{ $request->requestingUser()->present()->fullName() }}
|
{{ $request->requestingUser()->present()->fullName() }}
|
||||||
</a>
|
</a>
|
||||||
@else
|
@else
|
||||||
|
@ -106,9 +106,9 @@
|
||||||
<td>
|
<td>
|
||||||
@if ($request->itemType() == "asset")
|
@if ($request->itemType() == "asset")
|
||||||
@if ($request->requestable->assigned_to=='')
|
@if ($request->requestable->assigned_to=='')
|
||||||
<a href="{{ url('/') }}/hardware/{{ $request->requestable->id }}/checkout" class="btn btn-sm bg-maroon" data-tooltip="true" title="{{ trans('general.checkout_user_tooltip') }}">{{ trans('general.checkout') }}</a>
|
<a href="{{ config('app.url') }}/hardware/{{ $request->requestable->id }}/checkout" class="btn btn-sm bg-maroon" data-tooltip="true" title="{{ trans('general.checkout_user_tooltip') }}">{{ trans('general.checkout') }}</a>
|
||||||
@else
|
@else
|
||||||
<a href="{{ url('/') }}/hardware/{{ $request->requestable->id }}/checkin" class="btn btn-sm bg-purple" data-tooltip="true" title="{{ trans('general.checkin_toolip') }}">{{ trans('general.checkin') }}</a>
|
<a href="{{ config('app.url') }}/hardware/{{ $request->requestable->id }}/checkin" class="btn btn-sm bg-purple" data-tooltip="true" title="{{ trans('general.checkin_toolip') }}">{{ trans('general.checkin') }}</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
||||||
@endif
|
@endif
|
||||||
|
|
|
@ -21,7 +21,7 @@
|
||||||
|
|
||||||
|
|
||||||
<meta name="csrf-token" content="{{ csrf_token() }}">
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
||||||
<meta name="baseUrl" content="{{ url('/') }}/">
|
<meta name="baseUrl" content="{{ config('app.url') }}/">
|
||||||
|
|
||||||
<script nonce="{{ csrf_token() }}">
|
<script nonce="{{ csrf_token() }}">
|
||||||
window.Laravel = { csrfToken: '{{ csrf_token() }}' };
|
window.Laravel = { csrfToken: '{{ csrf_token() }}' };
|
||||||
|
@ -105,21 +105,21 @@
|
||||||
<div class="nav navbar-nav navbar-left">
|
<div class="nav navbar-nav navbar-left">
|
||||||
<div class="left-navblock">
|
<div class="left-navblock">
|
||||||
@if ($snipeSettings->brand == '3')
|
@if ($snipeSettings->brand == '3')
|
||||||
<a class="logo navbar-brand no-hover" href="{{ url('/') }}">
|
<a class="logo navbar-brand no-hover" href="{{ config('app.url') }}">
|
||||||
@if ($snipeSettings->logo!='')
|
@if ($snipeSettings->logo!='')
|
||||||
<img class="navbar-brand-img" src="{{ Storage::disk('public')->url($snipeSettings->logo) }}" alt="{{ $snipeSettings->site_name }} logo">
|
<img class="navbar-brand-img" src="{{ Storage::disk('public')->url($snipeSettings->logo) }}" alt="{{ $snipeSettings->site_name }} logo">
|
||||||
@endif
|
@endif
|
||||||
{{ $snipeSettings->site_name }}
|
{{ $snipeSettings->site_name }}
|
||||||
</a>
|
</a>
|
||||||
@elseif ($snipeSettings->brand == '2')
|
@elseif ($snipeSettings->brand == '2')
|
||||||
<a class="logo navbar-brand no-hover" href="{{ url('/') }}">
|
<a class="logo navbar-brand no-hover" href="{{ config('app.url') }}">
|
||||||
@if ($snipeSettings->logo!='')
|
@if ($snipeSettings->logo!='')
|
||||||
<img class="navbar-brand-img" src="{{ Storage::disk('public')->url($snipeSettings->logo) }}" alt="{{ $snipeSettings->site_name }} logo">
|
<img class="navbar-brand-img" src="{{ Storage::disk('public')->url($snipeSettings->logo) }}" alt="{{ $snipeSettings->site_name }} logo">
|
||||||
@endif
|
@endif
|
||||||
<span class="sr-only">{{ $snipeSettings->site_name }}</span>
|
<span class="sr-only">{{ $snipeSettings->site_name }}</span>
|
||||||
</a>
|
</a>
|
||||||
@else
|
@else
|
||||||
<a class="logo navbar-brand no-hover" href="{{ url('/') }}">
|
<a class="logo navbar-brand no-hover" href="{{ config('app.url') }}">
|
||||||
{{ $snipeSettings->site_name }}
|
{{ $snipeSettings->site_name }}
|
||||||
</a>
|
</a>
|
||||||
@endif
|
@endif
|
||||||
|
|
|
@ -36,13 +36,13 @@
|
||||||
|
|
||||||
<h3>
|
<h3>
|
||||||
@if ($snipeSettings->logo!='')
|
@if ($snipeSettings->logo!='')
|
||||||
<img class="print-logo" src="{{ url('/') }}/uploads/{{ $snipeSettings->logo }}">
|
<img class="print-logo" src="{{ config('app.url') }}/uploads/{{ $snipeSettings->logo }}">
|
||||||
@endif
|
@endif
|
||||||
{{ $snipeSettings->site_name }}
|
{{ $snipeSettings->site_name }}
|
||||||
</h3>
|
</h3>
|
||||||
@elseif ($snipeSettings->brand == '2')
|
@elseif ($snipeSettings->brand == '2')
|
||||||
@if ($snipeSettings->logo!='')
|
@if ($snipeSettings->logo!='')
|
||||||
<img class="print-logo" src="{{ url('/') }}/uploads/{{ $snipeSettings->logo }}">
|
<img class="print-logo" src="{{ config('app.url') }}/uploads/{{ $snipeSettings->logo }}">
|
||||||
@endif
|
@endif
|
||||||
@else
|
@else
|
||||||
<h3>{{ $snipeSettings->site_name }}</h3>
|
<h3>{{ $snipeSettings->site_name }}</h3>
|
||||||
|
|
|
@ -10,7 +10,7 @@ Go To {{$snipeSettings->site_name}}
|
||||||
|
|
||||||
{{ trans('mail.best_regards') }} <br>
|
{{ trans('mail.best_regards') }} <br>
|
||||||
@if ($snipeSettings->show_url_in_emails=='1')
|
@if ($snipeSettings->show_url_in_emails=='1')
|
||||||
<p><a href="{{ url('/') }}">{{ $snipeSettings->site_name }}</a></p>
|
<p><a href="{{ config('app.url') }}">{{ $snipeSettings->site_name }}</a></p>
|
||||||
@else
|
@else
|
||||||
<p>{{ $snipeSettings->site_name }}</p>
|
<p>{{ $snipeSettings->site_name }}</p>
|
||||||
@endif
|
@endif
|
||||||
|
|
|
@ -12,7 +12,7 @@ Go To {{$snipeSettings->site_name}}
|
||||||
|
|
||||||
{{ trans('mail.best_regards') }} <br>
|
{{ trans('mail.best_regards') }} <br>
|
||||||
@if ($snipeSettings->show_url_in_emails=='1')
|
@if ($snipeSettings->show_url_in_emails=='1')
|
||||||
<p><a href="{{ url('/') }}">{{ $snipeSettings->site_name }}</a></p>
|
<p><a href="{{ config('app.url') }}">{{ $snipeSettings->site_name }}</a></p>
|
||||||
@else
|
@else
|
||||||
<p>{{ $snipeSettings->site_name }}</p>
|
<p>{{ $snipeSettings->site_name }}</p>
|
||||||
@endif
|
@endif
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
url: '{{ url('/') }}/api/v1/users/' + userid + '/assets',
|
url: '{{ config('app.url') }}/api/v1/users/' + userid + '/assets',
|
||||||
headers: {
|
headers: {
|
||||||
"X-Requested-With": 'XMLHttpRequest',
|
"X-Requested-With": 'XMLHttpRequest',
|
||||||
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
|
"X-CSRF-TOKEN": $('meta[name="csrf-token"]').attr('content')
|
||||||
|
@ -45,7 +45,7 @@
|
||||||
} else {
|
} else {
|
||||||
table_html += "<td></td> ";
|
table_html += "<td></td> ";
|
||||||
}
|
}
|
||||||
table_html += '<td><a href="{{ url('/') }}/hardware/' + asset.id + '">';
|
table_html += '<td><a href="{{ config('app.url') }}/hardware/' + asset.id + '">';
|
||||||
|
|
||||||
if ((asset.name == '') && (asset.name != null)) {
|
if ((asset.name == '') && (asset.name != null)) {
|
||||||
table_html += " " + asset.model.name;
|
table_html += " " + asset.model.name;
|
||||||
|
|
|
@ -173,7 +173,7 @@
|
||||||
function genericRowLinkFormatter(destination) {
|
function genericRowLinkFormatter(destination) {
|
||||||
return function (value,row) {
|
return function (value,row) {
|
||||||
if (value) {
|
if (value) {
|
||||||
return '<a href="{{ url('/') }}/' + destination + '/' + row.id + '">' + value + '</a>';
|
return '<a href="{{ config('app.url') }}/' + destination + '/' + row.id + '">' + value + '</a>';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
@ -215,7 +215,7 @@
|
||||||
text_help = '';
|
text_help = '';
|
||||||
}
|
}
|
||||||
|
|
||||||
return '<nobr><a href="{{ url('/') }}/' + destination + '/' + value.id + '" data-toggle="tooltip" title="'+ status_meta[value.status_meta] + '"> <i class="fa ' + icon_style + ' text-' + text_color + '"></i> ' + value.name + ' ' + text_help + ' </a> </nobr>';
|
return '<nobr><a href="{{ config('app.url') }}/' + destination + '/' + value.id + '" data-toggle="tooltip" title="'+ status_meta[value.status_meta] + '"> <i class="fa ' + icon_style + ' text-' + text_color + '"></i> ' + value.name + ' ' + text_help + ' </a> </nobr>';
|
||||||
} else if ((value) && (value.name)) {
|
} else if ((value) && (value.name)) {
|
||||||
|
|
||||||
// Add some overrides for any funny urls we have
|
// Add some overrides for any funny urls we have
|
||||||
|
@ -225,13 +225,13 @@
|
||||||
var dpolymorphicItemFormatterest = 'fields/';
|
var dpolymorphicItemFormatterest = 'fields/';
|
||||||
}
|
}
|
||||||
|
|
||||||
return '<nobr><a href="{{ url('/') }}/' + dpolymorphicItemFormatterest + dest + '/' + value.id + '">' + value.name + '</a></span>';
|
return '<nobr><a href="{{ config('app.url') }}/' + dpolymorphicItemFormatterest + dest + '/' + value.id + '">' + value.name + '</a></span>';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
function hardwareAuditFormatter(value, row) {
|
function hardwareAuditFormatter(value, row) {
|
||||||
return '<a href="{{ url('/') }}/hardware/audit/' + row.id + '/" class="btn btn-sm bg-yellow" data-tooltip="true" title="Audit this item">{{ trans('general.audit') }}</a>';
|
return '<a href="{{ config('app.url') }}/hardware/audit/' + row.id + '/" class="btn btn-sm bg-yellow" data-tooltip="true" title="Audit this item">{{ trans('general.audit') }}</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -261,15 +261,15 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((row.available_actions) && (row.available_actions.clone === true)) {
|
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="{{ trans('general.clone_item') }}"><i class="far fa-clone" aria-hidden="true"></i><span class="sr-only">Clone</span></a> ';
|
actions += '<a href="{{ config('app.url') }}/' + dest + '/' + row.id + '/clone" class="btn btn-sm btn-info" data-tooltip="true" title="{{ trans('general.clone_item') }}"><i class="far fa-clone" aria-hidden="true"></i><span class="sr-only">Clone</span></a> ';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((row.available_actions) && (row.available_actions.update === true)) {
|
if ((row.available_actions) && (row.available_actions.update === true)) {
|
||||||
actions += '<a href="{{ url('/') }}/' + dest + '/' + row.id + '/edit" class="btn btn-sm btn-warning" data-tooltip="true" title="{{ trans('general.update') }}"><i class="fas fa-pencil-alt" aria-hidden="true"></i><span class="sr-only">{{ trans('general.update') }}</span></a> ';
|
actions += '<a href="{{ config('app.url') }}/' + dest + '/' + row.id + '/edit" class="btn btn-sm btn-warning" data-tooltip="true" title="{{ trans('general.update') }}"><i class="fas fa-pencil-alt" aria-hidden="true"></i><span class="sr-only">{{ trans('general.update') }}</span></a> ';
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((row.available_actions) && (row.available_actions.delete === true)) {
|
if ((row.available_actions) && (row.available_actions.delete === true)) {
|
||||||
actions += '<a href="{{ url('/') }}/' + dest + '/' + row.id + '" '
|
actions += '<a href="{{ config('app.url') }}/' + dest + '/' + row.id + '" '
|
||||||
+ ' class="btn btn-danger btn-sm delete-asset" data-toggle="tooltip" '
|
+ ' class="btn btn-danger btn-sm delete-asset" data-toggle="tooltip" '
|
||||||
+ ' data-toggle="modal" '
|
+ ' data-toggle="modal" '
|
||||||
+ ' data-content="{{ trans('general.sure_to_delete') }} ' + row.name + '?" '
|
+ ' data-content="{{ trans('general.sure_to_delete') }} ' + row.name + '?" '
|
||||||
|
@ -281,7 +281,7 @@
|
||||||
|
|
||||||
|
|
||||||
if ((row.available_actions) && (row.available_actions.restore === true)) {
|
if ((row.available_actions) && (row.available_actions.restore === true)) {
|
||||||
actions += '<form style="display: inline;" method="POST" action="{{ url('/') }}/' + dest + '/' + row.id + '/restore"> ';
|
actions += '<form style="display: inline;" method="POST" action="{{ config('app.url') }}/' + dest + '/' + row.id + '/restore"> ';
|
||||||
actions += '@csrf';
|
actions += '@csrf';
|
||||||
actions += '<button class="btn btn-sm btn-warning" data-toggle="tooltip" title="{{ trans('general.restore') }}"><i class="fas fa-retweet"></i></button> ';
|
actions += '<button class="btn btn-sm btn-warning" data-toggle="tooltip" title="{{ trans('general.restore') }}"><i class="fas fa-retweet"></i></button> ';
|
||||||
}
|
}
|
||||||
|
@ -332,7 +332,7 @@
|
||||||
value.name = value.name + ' (' + value.username + ')';
|
value.name = value.name + ' (' + value.username + ')';
|
||||||
}
|
}
|
||||||
|
|
||||||
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>';
|
return '<nobr><a href="{{ config('app.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 {
|
} else {
|
||||||
return '';
|
return '';
|
||||||
|
@ -364,9 +364,9 @@
|
||||||
function licenseSeatInOutFormatter(value, row) {
|
function licenseSeatInOutFormatter(value, row) {
|
||||||
// The user is allowed to check the license seat out and it's available
|
// The user is allowed to check the license seat out and it's available
|
||||||
if ((row.available_actions.checkout == true) && (row.user_can_checkout == true) && ((!row.asset_id) && (!row.assigned_to))) {
|
if ((row.available_actions.checkout == true) && (row.user_can_checkout == true) && ((!row.asset_id) && (!row.assigned_to))) {
|
||||||
return '<a href="{{ url('/') }}/licenses/' + row.license_id + '/checkout/'+row.id+'" class="btn btn-sm bg-maroon" data-toggle="tooltip" title="{{ trans('general.checkout_tooltip') }}">{{ trans('general.checkout') }}</a>';
|
return '<a href="{{ config('app.url') }}/licenses/' + row.license_id + '/checkout/'+row.id+'" class="btn btn-sm bg-maroon" data-toggle="tooltip" title="{{ trans('general.checkout_tooltip') }}">{{ trans('general.checkout') }}</a>';
|
||||||
} else {
|
} else {
|
||||||
return '<a href="{{ url('/') }}/licenses/' + row.id + '/checkin" class="btn btn-sm bg-purple" data-toggle="tooltip" title="Check in this license seat.">{{ trans('general.checkin') }}</a>';
|
return '<a href="{{ config('app.url') }}/licenses/' + row.id + '/checkin" class="btn btn-sm bg-purple" data-toggle="tooltip" title="Check in this license seat.">{{ trans('general.checkin') }}</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -376,7 +376,7 @@
|
||||||
|
|
||||||
// The user is allowed to check items out, AND the item is deployable
|
// The user is allowed to check items out, AND the item is deployable
|
||||||
if ((row.available_actions.checkout == true) && (row.user_can_checkout == true) && ((!row.asset_id) && (!row.assigned_to))) {
|
if ((row.available_actions.checkout == true) && (row.user_can_checkout == true) && ((!row.asset_id) && (!row.assigned_to))) {
|
||||||
return '<a href="{{ url('/') }}/' + destination + '/' + row.id + '/checkout" class="btn btn-sm bg-maroon" data-toggle="tooltip" title="{{ trans('general.checkout_tooltip') }}">{{ trans('general.checkout') }}</a>';
|
return '<a href="{{ config('app.url') }}/' + destination + '/' + row.id + '/checkout" class="btn btn-sm bg-maroon" data-toggle="tooltip" title="{{ trans('general.checkout_tooltip') }}">{{ trans('general.checkout') }}</a>';
|
||||||
|
|
||||||
// The user is allowed to check items out, but the item is not deployable
|
// The user is allowed to check items out, but the item is not deployable
|
||||||
} else if (((row.user_can_checkout == false)) && (row.available_actions.checkout == true) && (!row.assigned_to)) {
|
} else if (((row.user_can_checkout == false)) && (row.available_actions.checkout == true) && (!row.assigned_to)) {
|
||||||
|
@ -385,9 +385,9 @@
|
||||||
// The user is allowed to check items in
|
// The user is allowed to check items in
|
||||||
} else if (row.available_actions.checkin == true) {
|
} else if (row.available_actions.checkin == true) {
|
||||||
if (row.assigned_to) {
|
if (row.assigned_to) {
|
||||||
return '<a href="{{ url('/') }}/' + destination + '/' + row.id + '/checkin" class="btn btn-sm bg-purple" data-toggle="tooltip" title="Check this item in so it is available for re-imaging, re-issue, etc.">{{ trans('general.checkin') }}</a>';
|
return '<a href="{{ config('app.url') }}/' + destination + '/' + row.id + '/checkin" class="btn btn-sm bg-purple" data-toggle="tooltip" title="Check this item in so it is available for re-imaging, re-issue, etc.">{{ trans('general.checkin') }}</a>';
|
||||||
} else if (row.assigned_pivot_id) {
|
} else if (row.assigned_pivot_id) {
|
||||||
return '<a href="{{ url('/') }}/' + destination + '/' + row.assigned_pivot_id + '/checkin" class="btn btn-sm bg-purple" data-toggle="tooltip" title="Check this item in so it is available for re-imaging, re-issue, etc.">{{ trans('general.checkin') }}</a>';
|
return '<a href="{{ config('app.url') }}/' + destination + '/' + row.assigned_pivot_id + '/checkin" class="btn btn-sm bg-purple" data-toggle="tooltip" title="Check this item in so it is available for re-imaging, re-issue, etc.">{{ trans('general.checkin') }}</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -403,9 +403,9 @@
|
||||||
if (value.assigned_to_self == true){
|
if (value.assigned_to_self == true){
|
||||||
return '<button class="btn btn-danger btn-sm disabled" data-toggle="tooltip" title="Cancel this item request">{{ trans('button.cancel') }}</button>';
|
return '<button class="btn btn-danger btn-sm disabled" data-toggle="tooltip" title="Cancel this item request">{{ trans('button.cancel') }}</button>';
|
||||||
} else if (value.available_actions.cancel == true) {
|
} else if (value.available_actions.cancel == true) {
|
||||||
return '<form action="{{ url('/') }}/account/request-asset/'+ value.id + '" method="POST">@csrf<button class="btn btn-danger btn-sm" data-toggle="tooltip" title="Cancel this item request">{{ trans('button.cancel') }}</button></form>';
|
return '<form action="{{ config('app.url') }}/account/request-asset/'+ value.id + '" method="POST">@csrf<button class="btn btn-danger btn-sm" data-toggle="tooltip" title="Cancel this item request">{{ trans('button.cancel') }}</button></form>';
|
||||||
} else if (value.available_actions.request == true) {
|
} else if (value.available_actions.request == true) {
|
||||||
return '<form action="{{ url('/') }}/account/request-asset/'+ value.id + '" method="POST">@csrf<button class="btn btn-primary btn-sm" data-toggle="tooltip" title="Request this item">{{ trans('button.request') }}</button></form>';
|
return '<form action="{{ config('app.url') }}/account/request-asset/'+ value.id + '" method="POST">@csrf<button class="btn btn-primary btn-sm" data-toggle="tooltip" title="Request this item">{{ trans('button.request') }}</button></form>';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -506,7 +506,7 @@
|
||||||
if (value) {
|
if (value) {
|
||||||
var groups = '';
|
var groups = '';
|
||||||
for (var index in value.rows) {
|
for (var index in value.rows) {
|
||||||
groups += '<a href="{{ url('/') }}/admin/groups/' + value.rows[index].id + '" class="label label-default">' + value.rows[index].name + '</a> ';
|
groups += '<a href="{{ config('app.url') }}/admin/groups/' + value.rows[index].id + '" class="label label-default">' + value.rows[index].name + '</a> ';
|
||||||
}
|
}
|
||||||
return groups;
|
return groups;
|
||||||
}
|
}
|
||||||
|
@ -535,20 +535,20 @@
|
||||||
|
|
||||||
function deployedLocationFormatter(row, value) {
|
function deployedLocationFormatter(row, value) {
|
||||||
if ((row) && (row!=undefined)) {
|
if ((row) && (row!=undefined)) {
|
||||||
return '<a href="{{ url('/') }}/locations/' + row.id + '">' + row.name + '</a>';
|
return '<a href="{{ config('app.url') }}/locations/' + row.id + '">' + row.name + '</a>';
|
||||||
} else if (value.rtd_location) {
|
} else if (value.rtd_location) {
|
||||||
return '<a href="{{ url('/') }}/locations/' + value.rtd_location.id + '" data-toggle="tooltip" title="Default Location">' + value.rtd_location.name + '</a>';
|
return '<a href="{{ config('app.url') }}/locations/' + value.rtd_location.id + '" data-toggle="tooltip" title="Default Location">' + value.rtd_location.name + '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function groupsAdminLinkFormatter(value, row) {
|
function groupsAdminLinkFormatter(value, row) {
|
||||||
return '<a href="{{ url('/') }}/admin/groups/' + row.id + '">' + value + '</a>';
|
return '<a href="{{ config('app.url') }}/admin/groups/' + row.id + '">' + value + '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
function assetTagLinkFormatter(value, row) {
|
function assetTagLinkFormatter(value, row) {
|
||||||
if ((row.asset) && (row.asset.id)) {
|
if ((row.asset) && (row.asset.id)) {
|
||||||
return '<a href="{{ url('/') }}/hardware/' + row.asset.id + '">' + row.asset.asset_tag + '</a>';
|
return '<a href="{{ config('app.url') }}/hardware/' + row.asset.id + '">' + row.asset.asset_tag + '</a>';
|
||||||
}
|
}
|
||||||
return '';
|
return '';
|
||||||
|
|
||||||
|
@ -556,14 +556,14 @@
|
||||||
|
|
||||||
function departmentNameLinkFormatter(value, row) {
|
function departmentNameLinkFormatter(value, row) {
|
||||||
if ((row.assigned_user) && (row.assigned_user.department) && (row.assigned_user.department.name)) {
|
if ((row.assigned_user) && (row.assigned_user.department) && (row.assigned_user.department.name)) {
|
||||||
return '<a href="{{ url('/') }}/department/' + row.assigned_user.department.id + '">' + row.assigned_user.department.name + '</a>';
|
return '<a href="{{ config('app.url') }}/department/' + row.assigned_user.department.id + '">' + row.assigned_user.department.name + '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function assetNameLinkFormatter(value, row) {
|
function assetNameLinkFormatter(value, row) {
|
||||||
if ((row.asset) && (row.asset.name)) {
|
if ((row.asset) && (row.asset.name)) {
|
||||||
return '<a href="{{ url('/') }}/hardware/' + row.asset.id + '">' + row.asset.name + '</a>';
|
return '<a href="{{ config('app.url') }}/hardware/' + row.asset.id + '">' + row.asset.name + '</a>';
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -602,19 +602,19 @@
|
||||||
|
|
||||||
function assetCompanyFilterFormatter(value, row) {
|
function assetCompanyFilterFormatter(value, row) {
|
||||||
if (value) {
|
if (value) {
|
||||||
return '<a href="{{ url('/') }}/hardware/?company_id=' + row.id + '">' + value + '</a>';
|
return '<a href="{{ config('app.url') }}/hardware/?company_id=' + row.id + '">' + value + '</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function assetCompanyObjFilterFormatter(value, row) {
|
function assetCompanyObjFilterFormatter(value, row) {
|
||||||
if ((row) && (row.company)) {
|
if ((row) && (row.company)) {
|
||||||
return '<a href="{{ url('/') }}/hardware/?company_id=' + row.company.id + '">' + row.company.name + '</a>';
|
return '<a href="{{ config('app.url') }}/hardware/?company_id=' + row.company.id + '">' + row.company.name + '</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function usersCompanyObjFilterFormatter(value, row) {
|
function usersCompanyObjFilterFormatter(value, row) {
|
||||||
if (value) {
|
if (value) {
|
||||||
return '<a href="{{ url('/') }}/users/?company_id=' + row.id + '">' + value + '</a>';
|
return '<a href="{{ config('app.url') }}/users/?company_id=' + row.id + '">' + value + '</a>';
|
||||||
} else {
|
} else {
|
||||||
return value;
|
return value;
|
||||||
}
|
}
|
||||||
|
@ -623,13 +623,13 @@
|
||||||
function employeeNumFormatter(value, row) {
|
function employeeNumFormatter(value, row) {
|
||||||
|
|
||||||
if ((row) && (row.assigned_to) && ((row.assigned_to.employee_number))) {
|
if ((row) && (row.assigned_to) && ((row.assigned_to.employee_number))) {
|
||||||
return '<a href="{{ url('/') }}/users/' + row.assigned_to.id + '">' + row.assigned_to.employee_number + '</a>';
|
return '<a href="{{ config('app.url') }}/users/' + row.assigned_to.id + '">' + row.assigned_to.employee_number + '</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function orderNumberObjFilterFormatter(value, row) {
|
function orderNumberObjFilterFormatter(value, row) {
|
||||||
if (value) {
|
if (value) {
|
||||||
return '<a href="{{ url('/') }}/hardware/?order_number=' + row.order_number + '">' + row.order_number + '</a>';
|
return '<a href="{{ config('app.url') }}/hardware/?order_number=' + row.order_number + '">' + row.order_number + '</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -67,7 +67,7 @@
|
||||||
<!-- SAML SP Details -->
|
<!-- SAML SP Details -->
|
||||||
<!-- SAML SP Entity ID -->
|
<!-- SAML SP Entity ID -->
|
||||||
{{ Form::label('saml_sp_entitiyid', trans('admin/settings/general.saml_sp_entityid')) }}
|
{{ Form::label('saml_sp_entitiyid', trans('admin/settings/general.saml_sp_entityid')) }}
|
||||||
{{ Form::text('saml_sp_entitiyid', url('/'), ['class' => 'form-control', 'readonly']) }}
|
{{ Form::text('saml_sp_entitiyid', config('app.url'), ['class' => 'form-control', 'readonly']) }}
|
||||||
<br>
|
<br>
|
||||||
<!-- SAML SP ACS -->
|
<!-- SAML SP ACS -->
|
||||||
{{ Form::label('saml_sp_acs_url', trans('admin/settings/general.saml_sp_acs_url')) }}
|
{{ Form::label('saml_sp_acs_url', trans('admin/settings/general.saml_sp_acs_url')) }}
|
||||||
|
|
|
@ -14,6 +14,6 @@
|
||||||
{{ trans('general.create_admin_success') }}
|
{{ trans('general.create_admin_success') }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<p>{{ trans('general.create_admin_redirect') }} <a href="{{ url('/') }}">{{ url('/') }}</a></p>
|
<p>{{ trans('general.create_admin_redirect') }} <a href="{{ config('app.url') }}">{{ config('app.url') }}</a></p>
|
||||||
</div>
|
</div>
|
||||||
@stop
|
@stop
|
||||||
|
|
|
@ -106,7 +106,7 @@
|
||||||
|
|
||||||
function statuslabelsAssetLinkFormatter(value, row) {
|
function statuslabelsAssetLinkFormatter(value, row) {
|
||||||
if ((row) && (row.name)) {
|
if ((row) && (row.name)) {
|
||||||
return '<a href="{{ url('/') }}/hardware/?status_id=' + row.id + '"> ' + row.name + '</a>';
|
return '<a href="{{ config('app.url') }}/hardware/?status_id=' + row.id + '"> ' + row.name + '</a>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,13 +36,13 @@
|
||||||
|
|
||||||
<h2>
|
<h2>
|
||||||
@if ($snipeSettings->logo!='')
|
@if ($snipeSettings->logo!='')
|
||||||
<img class="print-logo" src="{{ url('/') }}/uploads/{{ $snipeSettings->logo }}">
|
<img class="print-logo" src="{{ config('app.url') }}/uploads/{{ $snipeSettings->logo }}">
|
||||||
@endif
|
@endif
|
||||||
{{ $snipeSettings->site_name }}
|
{{ $snipeSettings->site_name }}
|
||||||
</h2>
|
</h2>
|
||||||
@elseif ($snipeSettings->brand == '2')
|
@elseif ($snipeSettings->brand == '2')
|
||||||
@if ($snipeSettings->logo!='')
|
@if ($snipeSettings->logo!='')
|
||||||
<img class="print-logo" src="{{ url('/') }}/uploads/{{ $snipeSettings->logo }}">
|
<img class="print-logo" src="{{ config('app.url') }}/uploads/{{ $snipeSettings->logo }}">
|
||||||
@endif
|
@endif
|
||||||
@else
|
@else
|
||||||
<h2>{{ $snipeSettings->site_name }}</h2>
|
<h2>{{ $snipeSettings->site_name }}</h2>
|
||||||
|
|
|
@ -6,13 +6,13 @@
|
||||||
|
|
||||||
@if ($snipeSettings->brand == '3')
|
@if ($snipeSettings->brand == '3')
|
||||||
@if ($snipeSettings->logo!='')
|
@if ($snipeSettings->logo!='')
|
||||||
<img class="navbar-brand-img logo" src="{{ url('/') }}/uploads/{{ $snipeSettings->logo }}">
|
<img class="navbar-brand-img logo" src="{{ config('app.url') }}/uploads/{{ $snipeSettings->logo }}">
|
||||||
@endif
|
@endif
|
||||||
{{ $snipeSettings->site_name }}
|
{{ $snipeSettings->site_name }}
|
||||||
|
|
||||||
@elseif ($snipeSettings->brand == '2')
|
@elseif ($snipeSettings->brand == '2')
|
||||||
@if ($snipeSettings->logo!='')
|
@if ($snipeSettings->logo!='')
|
||||||
<img class="navbar-brand-img logo" src="{{ url('/') }}/uploads/{{ $snipeSettings->logo }}">
|
<img class="navbar-brand-img logo" src="{{ config('app.url') }}/uploads/{{ $snipeSettings->logo }}">
|
||||||
@endif
|
@endif
|
||||||
@else
|
@else
|
||||||
{{ $snipeSettings->site_name }}
|
{{ $snipeSettings->site_name }}
|
||||||
|
|
|
@ -86,13 +86,13 @@ $style = [
|
||||||
|
|
||||||
@if ($snipeSettings->brand == '3')
|
@if ($snipeSettings->brand == '3')
|
||||||
@if ($logo!='')
|
@if ($logo!='')
|
||||||
<img class="navbar-brand-img logo" style="max-width: 50px;" src="{{ url('/') }}/uploads/{{ $logo }}">
|
<img class="navbar-brand-img logo" style="max-width: 50px;" src="{{ config('app.url') }}/uploads/{{ $logo }}">
|
||||||
@endif
|
@endif
|
||||||
{{ $snipeSettings->site_name }}
|
{{ $snipeSettings->site_name }}
|
||||||
|
|
||||||
@elseif ($snipeSettings->brand == '2')
|
@elseif ($snipeSettings->brand == '2')
|
||||||
@if ($logo!='')
|
@if ($logo!='')
|
||||||
<img class="navbar-brand-img logo" style="max-width: 50px;" src="{{ url('/') }}/uploads/{{ $logo }}">
|
<img class="navbar-brand-img logo" style="max-width: 50px;" src="{{ config('app.url') }}/uploads/{{ $logo }}">
|
||||||
@endif
|
@endif
|
||||||
@else
|
@else
|
||||||
{{ $snipeSettings->site_name }}
|
{{ $snipeSettings->site_name }}
|
||||||
|
@ -203,7 +203,7 @@ $style = [
|
||||||
<td style="{{ $fontFamily }} {{ $style['email-footer_cell'] }}">
|
<td style="{{ $fontFamily }} {{ $style['email-footer_cell'] }}">
|
||||||
<p style="{{ $style['paragraph-sub'] }}">
|
<p style="{{ $style['paragraph-sub'] }}">
|
||||||
© {{ date('Y') }}
|
© {{ date('Y') }}
|
||||||
<a style="{{ $style['anchor'] }}" href="{{ url('/') }}" target="_blank">{{ $snipeSettings->site_name }}</a>.
|
<a style="{{ $style['anchor'] }}" href="{{ config('app.url') }}" target="_blank">{{ $snipeSettings->site_name }}</a>.
|
||||||
{{ trans('mail.rights_reserved') }}
|
{{ trans('mail.rights_reserved') }}
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue