MyShaarli/tpl/myShaarli/server.requirements.html

80 lines
2.4 KiB
HTML
Raw Permalink Normal View History

<article>
<h3>{'Permissions'|t}</h3>
2023-05-25 11:13:43 +02:00
{if="count($permissions) > 0"}
<p>
<svg viewBox="0 0 48 48" aria-hidden="true" focusable="false" role="presentation" class="icon error">
<use href="{$asset_path}/sprites/default.svg#ui-cancel"></use>
</svg>
2023-05-25 11:13:43 +02:00
{'There are permissions that need to be fixed.'|t}
</p>
<ul>
2023-05-25 11:13:43 +02:00
{loop="$permissions"}
<li>{$value}</li>
2023-05-25 11:13:43 +02:00
{/loop}
</ul>
2023-05-25 11:13:43 +02:00
{else}
<p>
<svg viewBox="0 0 48 48" aria-hidden="true" focusable="false" role="presentation" class="icon success">
<use href="{$asset_path}/sprites/default.svg#ui-check"></use>
</svg>
2023-05-25 11:13:43 +02:00
{'All read/write permissions are properly set.'|t}
</p>
{/if}
</article>
2023-05-25 11:13:43 +02:00
<article>
<h3>PHP</h3>
<p>
{'Running PHP'|t} <b>{$php_version}</b>
2023-05-25 11:13:43 +02:00
{if="$php_has_reached_eol"}
<svg viewBox="0 0 48 48" aria-hidden="true" focusable="false" role="presentation" class="icon warning">
<use href="{$asset_path}/sprites/default.svg#ui-cancel"></use>
</svg>
2023-05-25 11:13:43 +02:00
{'End of life: '|t} {$php_eol}
{else}
<svg viewBox="0 0 48 48" aria-hidden="true" focusable="false" role="presentation" class="icon success">
<use href="{$asset_path}/sprites/default.svg#ui-check"></use>
</svg>
2023-05-25 11:13:43 +02:00
{/if}
</p>
<table>
2023-05-25 11:13:43 +02:00
<thead>
<tr>
<th>{'Extension'|t}</th>
<th>{'Usage'|t}</th>
<th>{'Status'|t}</th>
<th>{'Loaded'|t}</th>
</tr>
</thead>
<tbody>
{loop="$php_extensions"}
<tr>
<td>{$value.name}</td>
<td>{$value.desc}</td>
<td>{$value.required ? t('Required') : t('Optional')}</td>
<td class="text-center">
2023-05-25 11:13:43 +02:00
{if="$value.loaded"}
{$classLoaded="success"}
2023-05-25 11:13:43 +02:00
{$strLoaded=t('Loaded')}
{$uiIcon="check"}
2023-05-25 11:13:43 +02:00
{else}
{$strLoaded=t('Not loaded')}
{if="$value.required"}
{$classLoaded="error"}
{$uiIcon="cancel"}
2023-05-25 11:13:43 +02:00
{else}
{$classLoaded="warning"}
{$uiIcon="check"}
2023-05-25 11:13:43 +02:00
{/if}
{/if}
<svg viewBox="0 0 48 48" aria-hidden="true" focusable="false" role="presentation" class="icon {$classLoaded}">
<title>{$strLoaded}</title>
<use href="{$asset_path}/sprites/default.svg#ui-{$uiIcon}"></use>
</svg>
2023-05-25 11:13:43 +02:00
</td>
</tr>
{/loop}
</tbody>
</table>
</article>