]> BookStack Code Mirror - bookstack/commitdiff
Add "register" to nav. 1146/head
authorqianmengnet <redacted>
Mon, 26 Nov 2018 01:05:38 +0000 (09:05 +0800)
committerqianmengnet <redacted>
Mon, 26 Nov 2018 01:05:38 +0000 (09:05 +0800)
Add "register" to nav.You need to click "login" to find register, which is not convenient for people who are not familiar with the app.

resources/views/base.blade.php

index e6d0b776101f2773ee254883000ff990f129e796..cd8063e12a1b755a81827d9fd63471c386e73db2 100644 (file)
@@ -57,6 +57,9 @@
                             @endif
                             @if(!signedInUser())
                                 <a href="{{ baseUrl('/login') }}">@icon('login') {{ trans('auth.log_in') }}</a>
+                                                           @if(setting('registration-enabled', false))
+                                    <a href="{{ baseUrl("/register") }}">@icon('new-user') {{ trans('auth.sign_up') }}</a>
+                                @endif
                             @endif
                         </div>
                         @if(signedInUser())