メンテナンス中はヘッダーにログイン等を表示しない

This commit is contained in:
shibafu 2020-05-16 14:47:17 +09:00
parent e9414517b9
commit 2a50ee4f5b

View File

@ -172,32 +172,34 @@
</div> </div>
</div> </div>
@endauth @endauth
@guest @if (!App::isDownForMaintenance())
<!-- PC navbar --> @guest
<div class="d-none d-lg-flex navbar-collapse"> <!-- PC navbar -->
<ul class="navbar-nav ml-auto mr-2"> <div class="d-none d-lg-flex navbar-collapse">
<li class="nav-item"> <ul class="navbar-nav ml-auto mr-2">
<a href="{{ route('register') }}" class="nav-link">会員登録</a> <li class="nav-item">
</li> <a href="{{ route('register') }}" class="nav-link">会員登録</a>
</ul> </li>
<form class="form-inline"> </ul>
<a href="{{ route('login') }}" class="btn btn-outline-secondary">ログイン</a> <form class="form-inline">
</form> <a href="{{ route('login') }}" class="btn btn-outline-secondary">ログイン</a>
</div> </form>
<!-- SP navbar --> </div>
<div class="d-lg-none"> <!-- SP navbar -->
<div class="row mt-2"> <div class="d-lg-none">
<div class="col"> <div class="row mt-2">
<a class="btn btn-outline-secondary" href="{{ route('register') }}" role="button">会員登録</a> <div class="col">
</div> <a class="btn btn-outline-secondary" href="{{ route('register') }}" role="button">会員登録</a>
<div class="col"> </div>
<form class="form-inline"> <div class="col">
<a class="btn btn-outline-secondary" href="{{ route('login') }}">ログイン</a> <form class="form-inline">
</form> <a class="btn btn-outline-secondary" href="{{ route('login') }}">ログイン</a>
</form>
</div>
</div> </div>
</div> </div>
</div> @endguest
@endguest @endif
</div> </div>
</div> </div>
</nav> </nav>