93 lines
2.8 KiB
Twig
93 lines
2.8 KiB
Twig
{% extends 'admin.base' %}
|
|
|
|
{% block title %}{{ trans('general.check-update') }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<div class="row">
|
|
<div class="col-md-6">
|
|
<div class="card card-primary">
|
|
<div class="card-header">
|
|
<h3 class="card-title">{{ trans('admin.update.info.title') }}</h3>
|
|
</div>
|
|
<div class="card-body">
|
|
{% if extra.canUpdate %}
|
|
<div class="callout callout-info">
|
|
{{ trans('admin.update.info.available') }}
|
|
</div>
|
|
<table class="table">
|
|
<tbody>
|
|
<tr>
|
|
<td class="key">{{ trans('admin.update.info.versions.latest') }}</td>
|
|
<td class="value">
|
|
v{{ info.latest }}
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td class="key">{{ trans('admin.update.info.versions.current') }}</td>
|
|
<td class="value">
|
|
v{{ info.current }}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
{% else %}
|
|
{% if error is not empty %}
|
|
<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 %}
|
|
<table class="table">
|
|
<tbody>
|
|
<tr>
|
|
<td class="key">
|
|
{{ trans('admin.update.info.versions.current') }}</td>
|
|
<td class="value">
|
|
v{{ info.current }}
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
{% endif %}
|
|
</div>
|
|
<div class="card-footer">
|
|
<span id="update-button"></span>
|
|
<a
|
|
target="_blank"
|
|
class="btn btn-default float-right"
|
|
href="https://github.com/bs-community/blessing-skin-server/releases"
|
|
>
|
|
{{ trans('admin.update.info.check-github') }}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="col-md-6">
|
|
<div class="card card-info">
|
|
<div class="card-header">
|
|
<h3 class="card-title">
|
|
{{ trans('admin.update.cautions.title') }}
|
|
</h3>
|
|
</div>
|
|
<div class="card-body">
|
|
{% for text in trans('admin.update.cautions.text')|split('\n') %}
|
|
<p>{{ text }}</p>
|
|
{% endfor %}
|
|
<a target="_blank" href="https://blessing.netlify.com/update-sources.html">
|
|
{{ trans('admin.update.cautions.link') }}
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endblock %}
|
|
|
|
{% block before_foot %}
|
|
<script>
|
|
blessing.extra = {{ extra|json_encode|raw }}
|
|
</script>
|
|
{% endblock %}
|