|
20 | 20 | @extends('layouts.master') |
21 | 21 |
|
22 | 22 | @section('title') |
23 | | - Databases |
| 23 | + @lang('server.config.database.header') |
24 | 24 | @endsection |
25 | 25 |
|
26 | 26 | @section('content-header') |
27 | | - <h1>Databases<small>All databases available for this server.</small></h1> |
| 27 | + <h1>@lang('server.config.database.header')<small>@lang('server.config.database.header_sub')</small></h1> |
28 | 28 | <ol class="breadcrumb"> |
29 | | - <li><a href="{{ route('index') }}">{{ trans('strings.home') }}</a></li> |
| 29 | + <li><a href="{{ route('index') }}">@lang('strings.home')</a></li> |
30 | 30 | <li><a href="{{ route('server.index', $server->uuidShort) }}">{{ $server->name }}</a></li> |
31 | | - <li>{{ trans('strings.configuration') }}</li> |
32 | | - <li class="active">{{ trans('strings.databases') }}</li> |
| 31 | + <li>@lang('navigation.server.configuration')</li> |
| 32 | + <li class="active">@lang('navigation.server.databases')</li> |
33 | 33 | </ol> |
34 | 34 | @endsection |
35 | 35 |
|
|
38 | 38 | <div class="col-xs-12"> |
39 | 39 | <div class="box"> |
40 | 40 | <div class="box-header with-border"> |
41 | | - <h3 class="box-title">Your Databases</h3> |
| 41 | + <h3 class="box-title">@lang('server.config.database.your_dbs')</h3> |
42 | 42 | </div> |
43 | 43 | @if(count($databases) > 0) |
44 | 44 | <div class="box-body table-responsive no-padding"> |
45 | 45 | <table class="table table-hover"> |
46 | 46 | <tbody> |
47 | 47 | <tr> |
48 | | - <th>Database</th> |
49 | | - <th>Username</th> |
50 | | - <th>Password</th> |
51 | | - <th>MySQL Host</th> |
| 48 | + <th>@lang('strings.database')</th> |
| 49 | + <th>@lang('strings.username')</th> |
| 50 | + <th>@lang('strings.password')</th> |
| 51 | + <th>@lang('server.config.database.host')</th> |
52 | 52 | </tr> |
53 | 53 | @foreach($databases as $database) |
54 | 54 | <tr> |
55 | 55 | <td>{{ $database->database }}</td> |
56 | 56 | <td>{{ $database->username }}</td> |
57 | 57 | <td><code>{{ Crypt::decrypt($database->password) }}</code> |
58 | 58 | @can('reset-db-password', $server) |
59 | | - <button class="btn btn-xs btn-primary pull-right" data-action="reset-database-password" data-id="{{ $database->id }}"><i class="fa fa-fw fa-refresh"></i> Reset Password</button> |
| 59 | + <button class="btn btn-xs btn-primary pull-right" data-action="reset-database-password" data-id="{{ $database->id }}"><i class="fa fa-fw fa-refresh"></i> @lang('server.config.database.reset_password')</button> |
60 | 60 | @endcan |
61 | 61 | </td> |
62 | 62 | <td><code>{{ $database->a_host }}:{{ $database->a_port }}</code></td> |
|
68 | 68 | @else |
69 | 69 | <div class="box-body"> |
70 | 70 | <div class="callout callout-info callout-nomargin"> |
71 | | - There are no databases listed for this server. |
| 71 | + @lang('server.config.database.no_dbs') |
72 | 72 | @if(Auth::user()->root_admin === 1) |
73 | 73 | <a href="{{ route('admin.servers.view', [ |
74 | 74 | 'id' => $server->id, |
75 | 75 | 'tab' => 'tab_database' |
76 | | - ]) }}" target="_blank">Add a new database.</a> |
| 76 | + ]) }}" target="_blank">@lang('server.config.database.add_db')</a> |
77 | 77 | @endif |
78 | 78 | </div> |
79 | 79 | </div> |
|
0 commit comments