blessing-skin-server/resources/views/admin/update.blade.php

88 lines
3.5 KiB
PHP
Raw Normal View History

2016-08-09 13:18:27 +08:00
@extends('admin.master')
2016-09-25 10:02:40 +08:00
@section('title', trans('general.check-update'))
2016-08-09 13:18:27 +08:00
@section('content')
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
2018-07-17 11:06:55 +08:00
@lang('general.check-update')
2016-08-09 13:18:27 +08:00
</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-md-6">
<div class="box box-primary">
<div class="box-header with-border">
2018-07-17 11:06:55 +08:00
<h3 class="box-title">@lang('admin.update.info.title')</h3>
2016-08-09 13:18:27 +08:00
</div><!-- /.box-header -->
<div class="box-body">
2019-04-06 22:52:43 +08:00
@if ($extra['canUpdate'])
2018-07-17 11:06:55 +08:00
<div class="callout callout-info">@lang('admin.update.info.available')</div>
2016-08-09 13:18:27 +08:00
<table class="table">
<tbody>
<tr>
2018-07-17 11:06:55 +08:00
<td class="key">@lang('admin.update.info.versions.latest')</td>
2016-08-09 13:18:27 +08:00
<td class="value">
2019-04-06 22:52:43 +08:00
v{{ $info['latest'] }}
2016-08-09 13:18:27 +08:00
</td>
</tr>
<tr>
2018-07-17 11:06:55 +08:00
<td class="key">@lang('admin.update.info.versions.current')</td>
2016-08-09 13:18:27 +08:00
<td class="value">
2019-04-06 22:52:43 +08:00
v{{ $info['current'] }}
2016-08-09 13:18:27 +08:00
</td>
</tr>
2016-08-09 13:18:27 +08:00
</tbody>
</table>
@else
2019-04-06 22:52:43 +08:00
@if (is_string($error))
<div class="callout callout-danger">{{ trans('admin.update.errors.connection', ['error' => $error]) }}</div>
@else
2019-04-06 22:52:43 +08:00
<div class="callout callout-success">{{ trans('admin.update.info.up-to-date') }}</div>
@endif
2016-08-09 13:18:27 +08:00
<table class="table">
<tbody>
<tr>
2018-07-17 11:06:55 +08:00
<td class="key">@lang('admin.update.info.versions.current')</td>
2016-08-09 13:18:27 +08:00
<td class="value">
2019-04-06 22:52:43 +08:00
v{{ $info['current'] }}
2016-08-09 13:18:27 +08:00
</td>
</tr>
</tbody>
</table>
@endif
</div><!-- /.box-body -->
<div class="box-footer">
2018-09-13 18:10:23 +08:00
<span id="update-button"></span>
2019-03-30 18:36:01 +08:00
{!! trans('admin.update.info.check-github', ['url' => 'https://github.com/bs-community/blessing-skin-server/releases']) !!}
2016-08-09 13:18:27 +08:00
</div>
</div>
<div class="box box-default">
<div class="box-header with-border">
2018-07-17 11:06:55 +08:00
<h3 class="box-title">@lang('admin.update.cautions.title')</h3>
2016-08-09 13:18:27 +08:00
</div><!-- /.box-header -->
<div class="box-body">
2018-08-18 09:48:39 +08:00
{!! nl2p(trans('admin.update.cautions.text')) !!}
2016-08-09 13:18:27 +08:00
</div><!-- /.box-body -->
</div>
</div>
</div>
</section><!-- /.content -->
</div><!-- /.content-wrapper -->
2018-09-13 18:10:23 +08:00
<script>
2019-03-23 19:52:14 +08:00
blessing.extra = @json($extra)
2018-09-13 18:10:23 +08:00
</script>
2016-08-27 16:29:20 +08:00
@endsection