mirror of
https://github.com/snipe/snipe-it.git
synced 2025-03-05 20:52:15 -08:00
Fixes snipeSettings error if the user was created but the settings table isn’t populated yet
This commit is contained in:
parent
2603488bd6
commit
7393f0bbea
|
@ -34,7 +34,7 @@
|
||||||
<link rel="shortcut icon" type="image/ico" href="{{ asset('favicon.ico') }}">
|
<link rel="shortcut icon" type="image/ico" href="{{ asset('favicon.ico') }}">
|
||||||
|
|
||||||
|
|
||||||
@if ($snipeSettings->header_color)
|
@if (($snipeSettings) && ($snipeSettings->header_color))
|
||||||
<style>
|
<style>
|
||||||
.main-header .navbar, .main-header .logo {
|
.main-header .navbar, .main-header .logo {
|
||||||
background-color: {{ $snipeSettings->header_color }};
|
background-color: {{ $snipeSettings->header_color }};
|
||||||
|
@ -58,7 +58,7 @@
|
||||||
|
|
||||||
<body class="hold-transition login-page">
|
<body class="hold-transition login-page">
|
||||||
|
|
||||||
@if ($snipeSettings->logo!='')
|
@if (($snipeSettings) && ($snipeSettings->logo!=''))
|
||||||
<center><img class="logo" style="padding-top: 20px; padding-bottom: 10px;" src="{{ config('app.url') }}/uploads/{{ $snipeSettings->logo }}"></center>
|
<center><img class="logo" style="padding-top: 20px; padding-bottom: 10px;" src="{{ config('app.url') }}/uploads/{{ $snipeSettings->logo }}"></center>
|
||||||
@endif
|
@endif
|
||||||
<!-- Content -->
|
<!-- Content -->
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
<link rel="shortcut icon" type="image/ico" href="{{ asset('favicon.ico') }}">
|
<link rel="shortcut icon" type="image/ico" href="{{ asset('favicon.ico') }}">
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
@if ($snipeSettings)
|
||||||
@if ($snipeSettings->header_color)
|
@if ($snipeSettings->header_color)
|
||||||
.main-header .navbar, .main-header .logo {
|
.main-header .navbar, .main-header .logo {
|
||||||
background-color: {{ $snipeSettings->header_color }};
|
background-color: {{ $snipeSettings->header_color }};
|
||||||
|
@ -56,6 +57,7 @@
|
||||||
@if ($snipeSettings->custom_css)
|
@if ($snipeSettings->custom_css)
|
||||||
{{ $snipeSettings->show_custom_css() }}
|
{{ $snipeSettings->show_custom_css() }}
|
||||||
@endif
|
@endif
|
||||||
|
@endif
|
||||||
@media (max-width: 400px) {
|
@media (max-width: 400px) {
|
||||||
.navbar-left {
|
.navbar-left {
|
||||||
margin: 2px;
|
margin: 2px;
|
||||||
|
|
Loading…
Reference in a new issue