Skip to content

Commit

Permalink
no lang buttons above lists if only one locale
Browse files Browse the repository at this point in the history
  • Loading branch information
sdebacker committed May 12, 2014
1 parent 580794d commit a2456e6
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/views/admin/_buttons-list.blade.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
<div class="btn-toolbar" role="toolbar">
<div class="btn-group pull-right">
@section('btn-locales')
@foreach (Config::get('app.locales') as $locale)
{{ Html::langButton($locale) }}
@endforeach
@if (count(Config::get('app.locales')) > 1)
@foreach (Config::get('app.locales') as $locale)
{{ Html::langButton($locale) }}
@endforeach
@endif
@show
</div>
</div>

0 comments on commit a2456e6

Please sign in to comment.