Shaarli_bm_theme/shaarli-pro/server.requirements.html
2026-01-13 15:35:11 -05:00

71 lines
3.4 KiB
HTML

<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<div class="card">
<div class="card-header">{'Permissions'|t}</div>
<div class="card-body">
{if="count($permissions) > 0"}
<p><i class="mdi mdi-close text-error"></i> {'There are permissions that need to be fixed.'|t}</p>
<ul style="padding-left: 1.5rem;">
{loop="$permissions"}
<li>{$value}</li>
{/loop}
</ul>
{else}
<p class="text-success" style="margin: 0;"><i class="mdi mdi-check"></i> {'All read/write permissions are properly set.'|t}</p>
{/if}
</div>
</div>
</div>
<div class="col-md-10 col-md-offset-1">
<div class="card">
<div class="card-header">PHP</div>
<div class="card-body">
<p style="margin-bottom: 1.5rem;">
<strong>{'Running PHP'|t} {$php_version}</strong>
{if="$php_has_reached_eol"}
<span class="text-warning"><i class="mdi mdi-circle"></i> {'End of life: '|t} {$php_eol}</span>
{else}
<span class="text-success"><i class="mdi mdi-circle"></i></span>
{/if}
</p>
<div class="table-responsive">
<table class="table">
<thead>
<tr>
<th>{'Extension'|t}</th>
<th>{'Usage'|t}</th>
<th>{'Status'|t}</th>
<th class="text-center">{'Loaded'|t}</th>
</tr>
</thead>
<tbody>
{loop="$php_extensions"}
<tr>
<td><strong>{$value.name}</strong></td>
<td>{$value.desc}</td>
<td>{$value.required ? t('Required') : t('Optional')}</td>
<td class="text-center">
{if="$value.loaded"}
<i class="mdi mdi-check-circle text-success" title="{'Loaded'|t}"></i>
{else}
{if="$value.required"}
<i class="mdi mdi-close-circle text-error" title="{'Not loaded'|t}"></i>
{else}
<i class="mdi mdi-alert-circle text-warning" title="{'Not loaded'|t}"></i>
{/if}
{/if}
</td>
</tr>
{/loop}
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>