only show version number when on dev branch

This commit is contained in:
Dennis 2022-08-18 15:40:33 +02:00 committed by GitHub
parent c973774ac1
commit 8b2aacb927
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -403,9 +403,9 @@
<strong>Copyright &copy; 2021-{{ date('Y') }} <a
href="{{ url('/') }}">{{ env('APP_NAME', 'Laravel') }}</a>.</strong>
All rights
reserved. Powered by <a href="https://controlpanel.gg">ControlPanel</a>. Version
@if(config("BRANCHNAME") != "main")
<b>{{ config('app')['version'] }} - {{config("BRANCHNAME")}}</b>
reserved. Powered by <a href="https://controlpanel.gg">ControlPanel</a>.
@if(!str_contains(config("BRANCHNAME"),"main"))
Version <b>{{ config('app')['version'] }} - {{config("BRANCHNAME")}}</b>
@endif
</footer>