2019-09-17 23:10:44 +08:00
|
|
|
{% extends 'admin.base' %}
|
|
|
|
|
|
|
|
{% block title %}{{ trans('general.check-update') }}{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-md-6">
|
2019-11-24 14:32:58 +08:00
|
|
|
<div class="card card-primary">
|
|
|
|
<div class="card-header">
|
|
|
|
<h3 class="card-title">{{ trans('admin.update.info.title') }}</h3>
|
2019-09-17 23:10:44 +08:00
|
|
|
</div>
|
2019-11-24 14:32:58 +08:00
|
|
|
<div class="card-body">
|
2020-01-06 22:47:29 +08:00
|
|
|
{% if can_update %}
|
|
|
|
<div class="callout callout-info">
|
|
|
|
{{ trans('admin.update.info.available') }}
|
|
|
|
</div>
|
2020-03-24 18:44:45 +08:00
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row mb-3">
|
|
|
|
<div class="col-sm-4">
|
|
|
|
{{ trans('admin.update.info.versions.latest') }}
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-8">
|
|
|
|
v{{ info.latest }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="row mt-3">
|
|
|
|
<div class="col-sm-4">
|
|
|
|
{{ trans('admin.update.info.versions.current') }}
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-8">
|
|
|
|
v{{ info.current }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-17 23:10:44 +08:00
|
|
|
{% else %}
|
2020-01-06 22:47:29 +08:00
|
|
|
{% if error %}
|
2019-09-17 23:10:44 +08:00
|
|
|
<div class="callout callout-danger">
|
|
|
|
{{ trans('admin.update.errors.connection', {error: error}) }}
|
|
|
|
</div>
|
|
|
|
{% else %}
|
|
|
|
<div class="callout callout-success">
|
|
|
|
{{ trans('admin.update.info.up-to-date') }}
|
|
|
|
</div>
|
|
|
|
{% endif %}
|
2020-03-24 18:44:45 +08:00
|
|
|
<div class="container-fluid">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-sm-4">
|
|
|
|
{{ trans('admin.update.info.versions.current') }}
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-8">
|
|
|
|
v{{ info.current }}
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-09-17 23:10:44 +08:00
|
|
|
{% endif %}
|
|
|
|
</div>
|
2019-11-24 14:32:58 +08:00
|
|
|
<div class="card-footer">
|
2020-01-06 22:47:29 +08:00
|
|
|
{% if can_update %}
|
|
|
|
<button class="btn bg-primary" id="update">
|
|
|
|
{{ trans('admin.update.info.button') }}
|
|
|
|
</button>
|
|
|
|
{% else %}
|
|
|
|
<button class="btn bg-primary" disabled="disabled">
|
|
|
|
{{ trans('admin.update.info.button') }}
|
|
|
|
</button>
|
|
|
|
{% endif %}
|
2019-09-17 23:10:44 +08:00
|
|
|
<a
|
|
|
|
target="_blank"
|
2019-11-24 14:32:58 +08:00
|
|
|
class="btn btn-default float-right"
|
2019-09-17 23:10:44 +08:00
|
|
|
href="https://github.com/bs-community/blessing-skin-server/releases"
|
|
|
|
>
|
|
|
|
{{ trans('admin.update.info.check-github') }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
2019-11-24 14:32:58 +08:00
|
|
|
</div>
|
|
|
|
<div class="col-md-6">
|
|
|
|
<div class="card card-info">
|
|
|
|
<div class="card-header">
|
|
|
|
<h3 class="card-title">
|
2019-09-17 23:10:44 +08:00
|
|
|
{{ trans('admin.update.cautions.title') }}
|
|
|
|
</h3>
|
|
|
|
</div>
|
2019-11-24 14:32:58 +08:00
|
|
|
<div class="card-body">
|
2020-01-06 22:47:29 +08:00
|
|
|
{{ trans('admin.update.cautions.text')|nl2br }}
|
2019-09-17 23:10:44 +08:00
|
|
|
<a target="_blank" href="https://blessing.netlify.com/update-sources.html">
|
|
|
|
{{ trans('admin.update.cautions.link') }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
{% endblock %}
|