replace {{ trans() }}
with @lang()
This commit is contained in:
parent
542b919bd1
commit
e075b9061e
10 changed files with 105 additions and 105 deletions
|
@ -20,14 +20,14 @@
|
|||
@extends('layouts.master')
|
||||
|
||||
@section('title')
|
||||
{{ trans('base.account.header') }}
|
||||
@lang('base.account.header')
|
||||
@endsection
|
||||
|
||||
@section('content-header')
|
||||
<h1>{{ trans('base.account.header') }}<small>{{ trans('base.account.header_sub')}}</small></h1>
|
||||
<h1>@lang('base.account.header')<small>@lang('base.account.header_sub')</small></h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('index') }}">{{ trans('strings.home') }}</a></li>
|
||||
<li class="active">{{ trans('strings.account') }}</li>
|
||||
<li><a href="{{ route('index') }}">@lang('strings.home')</a></li>
|
||||
<li class="active">@lang('strings.account')</li>
|
||||
</ol>
|
||||
@endsection
|
||||
|
||||
|
@ -36,25 +36,25 @@
|
|||
<div class="col-sm-6">
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{ trans('base.account.update_pass') }}</h3>
|
||||
<h3 class="box-title">@lang('base.account.update_pass')</h3>
|
||||
</div>
|
||||
<form action="{{ route('account.password') }}" method="post">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="current_password" class="control-label">{{ trans('base.account.current_password') }}</label>
|
||||
<label for="current_password" class="control-label">@lang('base.account.current_password')</label>
|
||||
<div>
|
||||
<input type="password" class="form-control" name="current_password" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="new_password" class="control-label">{{ trans('base.account.new_password') }}</label>
|
||||
<label for="new_password" class="control-label">@lang('base.account.new_password')</label>
|
||||
<div>
|
||||
<input type="password" class="form-control" name="new_password" />
|
||||
<p class="text-muted"><small>{{ trans('auth.password_requirements') }}</small></p>
|
||||
<p class="text-muted"><small>@lang('auth.password_requirements')</small></p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="new_password_again" class="control-label">{{ trans('base.account.new_password_again') }}</label>
|
||||
<label for="new_password_again" class="control-label">@lang('base.account.new_password_again')</label>
|
||||
<div>
|
||||
<input type="password" class="form-control" name="new_password_confirmation" />
|
||||
</div>
|
||||
|
@ -62,7 +62,7 @@
|
|||
</div>
|
||||
<div class="box-footer">
|
||||
{!! csrf_field() !!}
|
||||
<input type="submit" class="btn btn-primary btn-sm" value="{{ trans('base.account.update_pass') }}" />
|
||||
<input type="submit" class="btn btn-primary btn-sm" value="@lang('base.account.update_pass')" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
@ -70,18 +70,18 @@
|
|||
<div class="col-sm-6">
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{ trans('base.account.update_email') }}</h3>
|
||||
<h3 class="box-title">@lang('base.account.update_email')</h3>
|
||||
</div>
|
||||
<form action="{{ route('account.email') }}" method="post">
|
||||
<div class="box-body">
|
||||
<div class="form-group">
|
||||
<label for="new_email" class="control-label">{{ trans('base.account.new_email') }}</label>
|
||||
<label for="new_email" class="control-label">@lang('base.account.new_email')</label>
|
||||
<div>
|
||||
<input type="text" class="form-control" name="new_email" />
|
||||
</div>
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<label for="password" class="control-label">{{ trans('base.account.current_password') }}</label>
|
||||
<label for="password" class="control-label">@lang('base.account.current_password')</label>
|
||||
<div>
|
||||
<input type="password" class="form-control" name="password" />
|
||||
</div>
|
||||
|
@ -89,7 +89,7 @@
|
|||
</div>
|
||||
<div class="box-footer">
|
||||
{!! csrf_field() !!}
|
||||
<input type="submit" class="btn btn-primary btn-sm" value="{{ trans('base.account.update_email') }}" />
|
||||
<input type="submit" class="btn btn-primary btn-sm" value="@lang('base.account.update_email')" />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
|
@ -20,14 +20,14 @@
|
|||
@extends('layouts.master')
|
||||
|
||||
@section('title')
|
||||
{{ trans('base.api.index.header') }}
|
||||
@lang('base.api.index.header')
|
||||
@endsection
|
||||
|
||||
@section('content-header')
|
||||
<h1>{{ trans('base.api.index.header') }}<small>{{ trans('base.api.index.header_sub')}}</small></h1>
|
||||
<h1>@lang('base.api.index.header')<small>@lang('base.api.index.header_sub')</small></h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('index') }}">{{ trans('strings.home') }}</a></li>
|
||||
<li class="active">{{ trans('strings.api_access') }}</li>
|
||||
<li><a href="{{ route('index') }}">@lang('strings.home')</a></li>
|
||||
<li class="active">@lang('strings.api_access')</li>
|
||||
</ol>
|
||||
@endsection
|
||||
|
||||
|
@ -36,16 +36,16 @@
|
|||
<div class="col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{{ trans('base.api.index.list')}}</h3>
|
||||
<h3 class="box-title">@lang('base.api.index.list')</h3>
|
||||
</div>
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{{ trans('strings.public_key') }}</th>
|
||||
<th>{{ trans('strings.memo') }}</th>
|
||||
<th class="text-center hidden-sm hidden-xs">{{ trans('strings.created') }}</th>
|
||||
<th class="text-center hidden-sm hidden-xs">{{ trans('strings.expires') }}</th>
|
||||
<th>@lang('strings.public_key')</th>
|
||||
<th>@lang('strings.memo')</th>
|
||||
<th class="text-center hidden-sm hidden-xs">@lang('strings.created')</th>
|
||||
<th class="text-center hidden-sm hidden-xs">@lang('strings.expires')</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@foreach ($keys as $key)
|
||||
|
@ -72,7 +72,7 @@
|
|||
</div>
|
||||
<div class="box-footer">
|
||||
<a href="{{ route('account.api.new') }}">
|
||||
<button class="btn btn-sm btn-success">{{ trans('base.api.index.create_new') }}</button>
|
||||
<button class="btn btn-sm btn-success">@lang('base.api.index.create_new')</button>
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -20,14 +20,14 @@
|
|||
@extends('layouts.master')
|
||||
|
||||
@section('title')
|
||||
{{ trans('base.index.header') }}
|
||||
@lang('base.index.header')
|
||||
@endsection
|
||||
|
||||
@section('content-header')
|
||||
<h1>{{ trans('base.index.header') }}<small>{{ trans('base.index.header_sub')}}</small></h1>
|
||||
<h1>@lang('base.index.header')<small>@lang('base.index.header_sub')</small></h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('index') }}">{{ trans('strings.home') }}</a></li>
|
||||
<li class="active">{{ trans('strings.servers') }}</li>
|
||||
<li><a href="{{ route('index') }}">@lang('strings.home')</a></li>
|
||||
<li class="active">@lang('strings.servers')</li>
|
||||
</ol>
|
||||
@endsection
|
||||
|
||||
|
@ -36,10 +36,10 @@
|
|||
<div class="col-xs-12">
|
||||
<div class="box">
|
||||
<div class="box-header">
|
||||
<h3 class="box-title">{{ trans('base.index.list') }}</h3>
|
||||
<h3 class="box-title">@lang('base.index.list')</h3>
|
||||
<div class="box-tools">
|
||||
<div class="input-group input-group-sm" style="width: 150px;">
|
||||
<input type="text" name="table_search" class="form-control pull-right" placeholder="{{ trans('strings.search') }}">
|
||||
<input type="text" name="table_search" class="form-control pull-right" placeholder="@lang('strings.search')">
|
||||
<div class="input-group-btn">
|
||||
<button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
|
||||
</div>
|
||||
|
@ -50,13 +50,13 @@
|
|||
<table class="table table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{{ trans('strings.id') }}</th>
|
||||
<th>{{ trans('strings.name') }}</th>
|
||||
<th>{{ trans('strings.node') }}</th>
|
||||
<th>{{ trans('strings.connection') }}</th>
|
||||
<th class="text-center hidden-sm hidden-xs">{{ trans('strings.memory') }}</th>
|
||||
<th class="text-center hidden-sm hidden-xs">{{ trans('strings.cpu') }}</th>
|
||||
<th class="text-center">{{ trans('strings.status') }}</th>
|
||||
<th>@lang('strings.id')</th>
|
||||
<th>@lang('strings.name')</th>
|
||||
<th>@lang('strings.node')</th>
|
||||
<th>@lang('strings.connection')</th>
|
||||
<th class="text-center hidden-sm hidden-xs">@lang('strings.memory')</th>
|
||||
<th class="text-center hidden-sm hidden-xs">@lang('strings.cpu')</th>
|
||||
<th class="text-center">@lang('strings.status')</th>
|
||||
</tr>
|
||||
@foreach($servers as $server)
|
||||
<tr class="dynamic-update" data-server="{{ $server->uuidShort }}">
|
||||
|
@ -68,7 +68,7 @@
|
|||
<td class="text-center hidden-sm hidden-xs"><span data-action="cpu" data-cpumax="{{ $server->cpu }}">--</span> %</td>
|
||||
<td class="text-center" data-action="status">
|
||||
@if($server->suspended === 1)
|
||||
<span class="label label-warning">{{ trans('strings.suspended') }}</span>
|
||||
<span class="label label-warning">@lang('strings.suspended')</span>
|
||||
@else
|
||||
<span class="label label-default"><i class="fa fa-refresh fa-fw fa-spin"></i></span>
|
||||
@endif
|
||||
|
|
|
@ -20,15 +20,15 @@
|
|||
@extends('layouts.master')
|
||||
|
||||
@section('title')
|
||||
{{ trans('base.security.header') }}
|
||||
@lang('base.security.header')
|
||||
@endsection
|
||||
|
||||
@section('content-header')
|
||||
<h1>{{ trans('base.security.header') }}<small>{{ trans('base.security.header_sub')}}</small></h1>
|
||||
<h1>@lang('base.security.header')<small>@lang('base.security.header_sub')</small></h1>
|
||||
<ol class="breadcrumb">
|
||||
<li><a href="{{ route('index') }}">{{ trans('strings.home') }}</a></li>
|
||||
<li><a href="{{ route('account') }}">{{ trans('strings.account') }}</a></li>
|
||||
<li class="active">{{ trans('strings.security') }}</li>
|
||||
<li><a href="{{ route('index') }}">@lang('strings.home')</a></li>
|
||||
<li><a href="{{ route('account') }}">@lang('strings.account')</a></li>
|
||||
<li class="active">@lang('strings.security')</li>
|
||||
</ol>
|
||||
@endsection
|
||||
|
||||
|
@ -37,15 +37,15 @@
|
|||
<div class="col-md-6">
|
||||
<div class="box">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{ trans('base.security.sessions') }}</h3>
|
||||
<h3 class="box-title">@lang('base.security.sessions')</h3>
|
||||
</div>
|
||||
<div class="box-body table-responsive no-padding">
|
||||
<table class="table table-hover">
|
||||
<tbody>
|
||||
<tr>
|
||||
<th>{{ trans('strings.id') }}</th>
|
||||
<th>{{ trans('strings.ip') }}</th>
|
||||
<th>{{ trans('strings.last_activity') }}</th>
|
||||
<th>@lang('strings.id')</th>
|
||||
<th>@lang('strings.ip')</th>
|
||||
<th>@lang('strings.last_activity')</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
@foreach($sessions as $session)
|
||||
|
@ -55,7 +55,7 @@
|
|||
<td>{{ Carbon::createFromTimestamp($session->last_activity)->diffForHumans() }}</td>
|
||||
<td>
|
||||
<a href="{{ route('account.security.revoke', $session->id) }}">
|
||||
<button class="btn btn-xs btn-danger"><i class="fa fa-trash-o"></i> {{ trans('strings.revoke') }}</button>
|
||||
<button class="btn btn-xs btn-danger"><i class="fa fa-trash-o"></i> @lang('strings.revoke')</button>
|
||||
</a>
|
||||
</td>
|
||||
</tr>
|
||||
|
@ -68,34 +68,34 @@
|
|||
<div class="col-md-6">
|
||||
<div class="box {{ (Auth::user()->use_totp) ? 'box-success' : 'box-danger' }}">
|
||||
<div class="box-header with-border">
|
||||
<h3 class="box-title">{{ trans('base.security.2fa_header') }}</h3>
|
||||
<h3 class="box-title">@lang('base.security.2fa_header')</h3>
|
||||
</div>
|
||||
@if(Auth::user()->use_totp)
|
||||
<form action="{{ route('account.security.totp') }}" method="post">
|
||||
<div class="box-body">
|
||||
<p>{{ trans('base.security.2fa_enabled') }}</p>
|
||||
<p>@lang('base.security.2fa_enabled')</p>
|
||||
<div class="form-group">
|
||||
<label for="new_password_again" class="control-label">{{ trans('strings.2fa_token') }}</label>
|
||||
<label for="new_password_again" class="control-label">@lang('strings.2fa_token')</label>
|
||||
<div>
|
||||
<input type="text" class="form-control" name="token" />
|
||||
<p class="text-muted small">{{ trans('base.security.2fa_token_help') }}</p>
|
||||
<p class="text-muted small">@lang('base.security.2fa_token_help')</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! csrf_field() !!}
|
||||
{{ method_field('DELETE') }}
|
||||
<button type="submit" class="btn btn-danger btn-sm">{{ trans('base.security.disable_2fa') }}</button>
|
||||
<button type="submit" class="btn btn-danger btn-sm">@lang('base.security.disable_2fa')</button>
|
||||
</div>
|
||||
</form>
|
||||
@else
|
||||
<form action="#" method="post" id="do_2fa">
|
||||
<div class="box-body">
|
||||
{{ trans('base.security.2fa_disabled') }}
|
||||
@lang('base.security.2fa_disabled')
|
||||
</div>
|
||||
<div class="box-footer">
|
||||
{!! csrf_field() !!}
|
||||
<button type="submit" class="btn btn-success btn-sm">{{ trans('base.security.enable_2fa') }}</button>
|
||||
<button type="submit" class="btn btn-success btn-sm">@lang('base.security.enable_2fa')</button>
|
||||
</div>
|
||||
</form>
|
||||
@endif
|
||||
|
@ -107,7 +107,7 @@
|
|||
<div class="modal-content">
|
||||
<form action="#" method="post" id="2fa_token_verify">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title">{{ trans('base.security.2fa_qr') }}</h4>
|
||||
<h4 class="modal-title">@lang('base.security.2fa_qr')</h4>
|
||||
</div>
|
||||
<div class="modal-body" id="modal_insert_content">
|
||||
<div class="row">
|
||||
|
@ -118,9 +118,9 @@
|
|||
<center><span id="hide_img_load"><i class="fa fa-spinner fa-spin"></i> Loading QR Code...</span><img src="" id="qr_image_insert" style="display:none;"/><br /><code id="2fa_secret_insert"></code></center>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<div class="alert alert-info">{{ trans('base.security.2fa_checkpoint_help') }}</div>
|
||||
<div class="alert alert-info">@lang('base.security.2fa_checkpoint_help')</div>
|
||||
<div class="form-group">
|
||||
<label class="control-label" for="2fa_token">{{ trans('strings.2fa_token') }}</label>
|
||||
<label class="control-label" for="2fa_token">@lang('strings.2fa_token')</label>
|
||||
{!! csrf_field() !!}
|
||||
<input class="form-control" type="text" name="2fa_token" id="2fa_token" />
|
||||
</div>
|
||||
|
@ -128,8 +128,8 @@
|
|||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="submit" class="btn btn-primary btn-sm" id="submit_action">{{ trans('strings.submit') }}</button>
|
||||
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal" id="close_reload">{{ trans('strings.close') }}</button>
|
||||
<button type="submit" class="btn btn-primary btn-sm" id="submit_action">@lang('strings.submit')</button>
|
||||
<button type="button" class="btn btn-default btn-sm" data-dismiss="modal" id="close_reload">@lang('strings.close')</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
|
Reference in a new issue