Unverified Commit 2eb6b0da authored by KaMe's avatar KaMe Committed by GitHub

hide dropdown language if you only have one.

Only show locale drop down if you have more than 1 language on the admin.
parent fb845a42
...@@ -19,6 +19,7 @@ ...@@ -19,6 +19,7 @@
</a> </a>
</li> </li>
<li><a href="{{ url('/') }}"><i class="fa fa-eye"></i> {{ trans('core::core.general.view website') }}</a></li> <li><a href="{{ url('/') }}"><i class="fa fa-eye"></i> {{ trans('core::core.general.view website') }}</a></li>
@if(count(LaravelLocalization::getSupportedLocales())>1)
<li class="dropdown"> <li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
<i class="fa fa-flag"></i> <i class="fa fa-flag"></i>
...@@ -37,6 +38,7 @@ ...@@ -37,6 +38,7 @@
@endforeach @endforeach
</ul> </ul>
</li> </li>
@endif
<!-- User Account: style can be found in dropdown.less --> <!-- User Account: style can be found in dropdown.less -->
<li class="dropdown user user-menu"> <li class="dropdown user user-menu">
<a href="#" class="dropdown-toggle" data-toggle="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment