mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
refined finish
This commit is contained in:
@@ -50,8 +50,11 @@ return [
|
||||
'finish' => [
|
||||
'title' => 'Finish Install',
|
||||
'env_written' => '.env file written',
|
||||
'env_not_written' => 'Could not write .env file',
|
||||
'env_manual' => 'Manually update :file with the following content',
|
||||
'config_exists' => 'config.php file exists',
|
||||
'config_written' => 'config.php file written',
|
||||
'config_not_required' => 'This file is not required. Here is the default.',
|
||||
'config_not_written' => 'Could not write config.php',
|
||||
'not_finished' => 'You have not quite finished yet!',
|
||||
'validate' => 'First, you need to :validate and fix any issues.',
|
||||
@@ -59,5 +62,6 @@ return [
|
||||
'thanks' => 'Thank you for setting up LibreNMS.',
|
||||
'statistics' => 'It would be great if you would consider contributing to our statistics, you can do this on the :about and check the box under Statistics.',
|
||||
'statistics_link' => 'About LibreNMS Page',
|
||||
'retry' => 'Retry'
|
||||
]
|
||||
];
|
||||
|
@@ -2,23 +2,41 @@
|
||||
|
||||
@section('content')
|
||||
<div class="card mb-2">
|
||||
<div class="card-header" data-toggle="collapse" data-target="#env-file-text" aria-expanded="false">
|
||||
@lang('install.finish.env_written')
|
||||
<i class="fa fa-chevron-up rotate-if-collapsed pull-right"></i>
|
||||
</div>
|
||||
<div id="env-file-text" class="card-body collapse">
|
||||
<pre class="card bg-light p-3">{{ $env }}</pre>
|
||||
<div class="card-header" data-toggle="collapse" data-target="#env-file-text" aria-expanded="{{ $success ? 'false' : 'true' }}">
|
||||
@if($success)
|
||||
<i class="fa fa-lg fa-check-circle text-success"></i>
|
||||
@else
|
||||
<i class="fa fa-lg fa-times-circle text-danger"></i>
|
||||
@endif
|
||||
{{ $env_message }}
|
||||
@if($env)<i class="fa fa-lg fa-chevron-down rotate-if-collapsed pull-right"></i>@endif($env)
|
||||
</div>
|
||||
@if($env)
|
||||
<div id="env-file-text" class="card-body collapse @if(!$success) show @endif">
|
||||
<button class="btn btn-primary float-right" onclick="location.reload()">@lang('install.finish.retry')</button>
|
||||
<strong>
|
||||
@lang('install.finish.env_manual', ['file' => base_path('.env')])
|
||||
</strong>
|
||||
<pre class="card bg-light p-3 mt-3">{{ $env }}</pre>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
<div class="card mb-2">
|
||||
<div class="card-header" data-toggle="collapse" data-target="#config-file-text" aria-expanded="false">
|
||||
<i class="fa fa-lg fa-check-circle text-success"></i>
|
||||
{{ $config_message }}
|
||||
<i class="fa fa-chevron-up rotate-if-collapsed pull-right"></i>
|
||||
@if($config)<i class="fa fa-lg fa-chevron-down rotate-if-collapsed pull-right"></i>@endif
|
||||
</div>
|
||||
@if($config)
|
||||
<div id="config-file-text" class="card-body collapse">
|
||||
<pre class="card bg-light p-3">{{ $config }}</pre>
|
||||
<strong>
|
||||
@lang('install.finish.config_not_required')
|
||||
</strong>
|
||||
<pre class="card bg-light p-3 mt-3">{{ $config }}</pre>
|
||||
</div>
|
||||
@endif
|
||||
</div>
|
||||
@if($success)
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
<div class="alert alert-warning">
|
||||
@@ -35,4 +53,5 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@endif
|
||||
@endsection
|
||||
|
Reference in New Issue
Block a user