Use @lang blade helper (#637)

This commit is contained in:
Lance Pioch 2017-09-21 19:05:10 -04:00 committed by Dane Everitt
parent 0c21d401e3
commit 7c41a6965b
4 changed files with 9 additions and 9 deletions

View file

@ -82,8 +82,8 @@
<label for="root_admin" class="control-label">Administrator</label> <label for="root_admin" class="control-label">Administrator</label>
<div> <div>
<select name="root_admin" class="form-control"> <select name="root_admin" class="form-control">
<option value="0">{{ trans('strings.no') }}</option> <option value="0">@lang('strings.no')</option>
<option value="1">{{ trans('strings.yes') }}</option> <option value="1">@lang('strings.yes')</option>
</select> </select>
<p class="text-muted"><small>Setting this to 'Yes' gives a user full administrative access.</small></p> <p class="text-muted"><small>Setting this to 'Yes' gives a user full administrative access.</small></p>
</div> </div>

View file

@ -99,8 +99,8 @@
<label for="root_admin" class="control-label">Administrator</label> <label for="root_admin" class="control-label">Administrator</label>
<div> <div>
<select name="root_admin" class="form-control"> <select name="root_admin" class="form-control">
<option value="0">{{ trans('strings.no') }}</option> <option value="0">@lang('strings.no')</option>
<option value="1" {{ $user->root_admin ? 'selected="selected"' : '' }}>{{ trans('strings.yes') }}</option> <option value="1" {{ $user->root_admin ? 'selected="selected"' : '' }}>@lang('strings.yes')</option>
</select> </select>
<p class="text-muted"><small>Setting this to 'Yes' gives a user full administrative access.</small></p> <p class="text-muted"><small>Setting this to 'Yes' gives a user full administrative access.</small></p>
</div> </div>

View file

@ -75,15 +75,15 @@
</a> </a>
</li> </li>
{{--<li>--}} {{--<li>--}}
{{--<a href="#" data-action="control-sidebar" data-toggle="tooltip" data-placement="bottom" title="{{ @trans('strings.servers') }}"><i class="fa fa-server"></i></a>--}} {{--<a href="#" data-action="control-sidebar" data-toggle="tooltip" data-placement="bottom" title="@lang('strings.servers')"><i class="fa fa-server"></i></a>--}}
{{--</li>--}} {{--</li>--}}
@if(Auth::user()->root_admin) @if(Auth::user()->root_admin)
<li> <li>
<li><a href="{{ route('admin.index') }}" data-toggle="tooltip" data-placement="bottom" title="{{ @trans('strings.admin_cp') }}"><i class="fa fa-gears"></i></a></li> <li><a href="{{ route('admin.index') }}" data-toggle="tooltip" data-placement="bottom" title="@lang('strings.admin_cp')"><i class="fa fa-gears"></i></a></li>
</li> </li>
@endif @endif
<li> <li>
<li><a href="{{ route('auth.logout') }}" id="logoutButton" data-toggle="tooltip" data-placement="bottom" title="{{ @trans('strings.logout') }}"><i class="fa fa-sign-out"></i></a></li> <li><a href="{{ route('auth.logout') }}" id="logoutButton" data-toggle="tooltip" data-placement="bottom" title="@lang('strings.logout')"><i class="fa fa-sign-out"></i></a></li>
</li> </li>
</ul> </ul>
</div> </div>

View file

@ -40,7 +40,7 @@
<div class="box-header with-border"> <div class="box-header with-border">
<h3 class="box-title">{{ $file }}</h3> <h3 class="box-title">{{ $file }}</h3>
<div class="pull-right box-tools"> <div class="pull-right box-tools">
<a href="/server/{{ $server->uuidShort }}/files#{{ rawurlencode($directory) }}" class="pull-right"><button class="btn btn-default btn-sm">{{ trans('server.files.edit.return') }}</button></a> <a href="/server/{{ $server->uuidShort }}/files#{{ rawurlencode($directory) }}" class="pull-right"><button class="btn btn-default btn-sm">@lang('server.files.edit.return')</button></a>
</div> </div>
</div> </div>
<input type="hidden" name="file" value="{{ $file }}" /> <input type="hidden" name="file" value="{{ $file }}" />
@ -49,7 +49,7 @@
<div class="box-body" style="height:500px;" id="editor"></div> <div class="box-body" style="height:500px;" id="editor"></div>
<div class="box-footer with-border"> <div class="box-footer with-border">
<button class="btn btn-sm btn-primary" id="save_file"><i class="fa fa-fw fa-save"></i> &nbsp;@lang('server.files.edit.save')</button> <button class="btn btn-sm btn-primary" id="save_file"><i class="fa fa-fw fa-save"></i> &nbsp;@lang('server.files.edit.save')</button>
<a href="/server/{{ $server->uuidShort }}/files#{{ rawurlencode($directory) }}" class="pull-right"><button class="btn btn-default btn-sm">{{ trans('server.files.edit.return') }}</button></a> <a href="/server/{{ $server->uuidShort }}/files#{{ rawurlencode($directory) }}" class="pull-right"><button class="btn btn-default btn-sm">@lang('server.files.edit.return')</button></a>
</div> </div>
</div> </div>
</div> </div>