Skip to content

Commit

Permalink
Add copy and form to blade, move test to lang file so the template ca…
Browse files Browse the repository at this point in the history
…n be translated
  • Loading branch information
johannac committed Jan 26, 2023
1 parent 233e917 commit 1b41c5d
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 4 deletions.
9 changes: 9 additions & 0 deletions resources/lang/en/Installer.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,13 @@
"<a href='/signup'>Signup Default User</a><br />If you have already created a default user you can <a href='/login'>Login Here </a>",
'test_database_connection' => 'Test Database Connection',
'title' => 'Attendize Web Installer',
//upgrade strings
'upgrade' => 'Upgrade',
'upgrade_button' => 'Upgrade Attendize',
'new_version' => 'New version available for download.',
'current_version' => 'Your currently installed version is :version.',
'download_version' => 'There is a newer version available :version on <a href="https://github.com/attendize/attendize">GitHub</a>. Please download the code, copy it onto your server, and return to this page.',
'new_version_ready' => 'New version ready to install.',
'now_installing' => 'You\'ll now be installing the new version :version',
'no_upgrade' => 'Nothing to upgrade!',
);
16 changes: 12 additions & 4 deletions resources/views/Installer/Upgrader.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,21 @@
{!!Html::image('assets/images/logo-dark.png')!!}
</div>

<h1>Upgrade</h1>
<h1>@lang("Installer.upgrade")</h1>
@if(version_compare($local_version, $remote_version) === -1)
New version available for download.
<h3>@lang("Installer.new_version")</h3>
<p>@lang("Installer.current_version", ["version" => $local_version])</p>
<p>@lang("Installer.download_version", ["version" => $remote_version])</p>
@elseif(version_compare($local_version, $remote_version) === 0 && version_compare($installed_version, $local_version) === -1)
New version ready to install.
<h3>@lang("Installer.new_version_ready")</h3>
<p>@lang("Installer.current_version", ["version" => $installed_version])</p>
<p>@lang("Installer.now_installing", ["version" => $local_version])</p>
{!! Form::open(array('url' => route('postUpgrader'), 'class' => 'upgrader_form')) !!}
{!! Form::submit(trans("Installer.upgrade_button"), ['class'=>" btn-block btn btn-success"]) !!}
{!! Form::close() !!}
@else
Nothing to upgrade!
<h3>@lang("Installer.no_upgrade")</h3>
<p>@lang("Installer.current_version", ["version" => $local_version])</p>
@endif
</div>
</div>
Expand Down

0 comments on commit 1b41c5d

Please sign in to comment.