blessing-skin-server/resources/views/admin/status.twig
2019-11-24 14:32:58 +08:00

45 lines
1.3 KiB
Twig

{% extends 'admin.base' %}
{% block title %}{{ trans('general.status') }}{% endblock %}
{% block content %}
<div class="row">
<div class="col-md-6">
<div class="card card-info">
<div class="card-header">
<h3 class="card-title">{{ trans('admin.status.info') }}</h3>
</div>
<div class="card-body">
<table class="table table-bordered table-striped">
<tbody>
{% for category, info in detail %}
<tr>
<th colspan="2">{{ trans("admin.status.#{category}.name") }}</th>
</tr>
{% for key, value in info %}
<tr>
<td>{{ trans("admin.status.#{category}.#{key}") }}</td>
<td>{{ value }}</td>
</tr>
{% endfor %}
{% endfor %}
<tr>
<th colspan="2">
{{ trans('admin.status.plugins', {amount: plugins|length}) }}
</th>
</tr>
{% for plugin in plugins %}
<tr>
<td>{{ plugin.title }}</td>
<td>{{ plugin.version }}</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</div>
</div>
<div class="col-md-6"></div>
</div>
{% endblock %}