Show migration option

This commit is contained in:
Hillel Coren 2021-06-20 08:53:34 +03:00
parent c7c95423cf
commit 8dde332c6d

View File

@ -238,34 +238,32 @@
</div> </div>
</div> </div>
@if (Utils::isSelfHost() || request()->show_migration) <div class="panel panel-default">
<div class="panel panel-default"> <div class="panel-heading">
<div class="panel-heading"> <h3 class="panel-title">{!! trans('texts.migrate_to_next_version') !!}</h3>
<h3 class="panel-title">{!! trans('texts.migrate_to_next_version') !!}</h3> </div>
</div> <div class="panel-body">
<div class="panel-body"> <div class="form-group">
<div class="form-group"> <label for="modules" class="control-label col-lg-4 col-sm-4"></label>
<label for="modules" class="control-label col-lg-4 col-sm-4"></label> <div class="col-lg-8 col-sm-8">
<div class="col-lg-8 col-sm-8"> <div class="help-block">{{ trans('texts.migrate_intro_text')}}</div><br/>
<div class="help-block">{{ trans('texts.migrate_intro_text')}}</div><br/> <div class="help-block">
<div class="help-block"> Watch these YouTube videos to see some of the many new features added:<br/>
Watch these YouTube videos to see some of the many new features added:<br/> <a href="https://www.youtube.com/watch?v=h_IMJLmVmuY&ab_channel=InvoiceNinja" target="_blank">What's new in Invoice Ninja v5</a><br/>
<a href="https://www.youtube.com/watch?v=h_IMJLmVmuY&ab_channel=InvoiceNinja" target="_blank">What's new in Invoice Ninja v5</a><br/> <a href="https://www.youtube.com/watch?v=NgwCxIMry54&ab_channel=InvoiceNinja" target="_blank">More new features in v5</a><br/>
<a href="https://www.youtube.com/watch?v=NgwCxIMry54&ab_channel=InvoiceNinja" target="_blank">More new features in v5</a><br/> </div><br/>
</div><br/> @if(Auth::user()->eligibleForMigration())
@if(Auth::user()->eligibleForMigration()) <a class="btn btn-primary btn-lg"
<a class="btn btn-primary btn-lg" href="{{ url('/migration/start') }}">{!! trans('texts.start_migration') !!}</a>
href="{{ url('/migration/start') }}">{!! trans('texts.start_migration') !!}</a> @else
@else {{ trans('texts.not_allowed') }}
{{ trans('texts.not_allowed') }} @endif
@endif <br/>
<br/> <a href="https://invoiceninja.github.io/docs/migration/" target="_blank">{{ trans('texts.learn_more') }}</a><br/>
<a href="https://invoiceninja.github.io/docs/migration/" target="_blank">{{ trans('texts.learn_more') }}</a><br/>
</div>
</div> </div>
</div> </div>
</div> </div>
@endif </div>
{!! Former::close() !!} {!! Former::close() !!}