MyShaarli/tpl/myShaarli/server.html

79 lines
2 KiB
HTML
Raw Permalink Normal View History

2023-05-25 11:13:43 +02:00
<!DOCTYPE html>
<html{if="$language !=='auto'"} lang=" {$language}"{/if}>
2023-05-25 11:13:43 +02:00
<head>
{include="includes"}
</head>
2023-05-25 11:13:43 +02:00
<body>
{include="page.header"}
<section>
<h2>{'Server administration'|t}</h2>
2023-05-25 11:13:43 +02:00
<article>
<h3>{'General'|t}</h3>
<p>{'Index URL'|t} : <a href="{$index_url}" title="{$pagetitle}">{$index_url}</a></p>
<p>{'Base path'|t} : {$base_path}</p>
<p>{'Client IP'|t} : {$client_ip}</p>
<p>{'Trusted reverse proxies'|t} :
{if="count($trusted_proxies) > 0"}
<ul>
2023-05-25 11:13:43 +02:00
{loop="$trusted_proxies"}
<li>{$value}</li>
2023-05-25 11:13:43 +02:00
{/loop}
</ul>
2023-05-25 11:13:43 +02:00
{else}
{'N/A'|t}
2023-05-25 11:13:43 +02:00
{/if}
</p>
</article>
2023-05-25 11:13:43 +02:00
{include="server.requirements"}
<article>
<h3>{'Version'|t}</h3>
<p>{'Current version'|t} : {$current_version}</p>
<p>{'Latest release'|t} : <a href="{$release_url}"
title="{'Visit releases page on Github'|t}">{$latest_version}</a>
2023-05-25 11:13:43 +02:00
</p>
</article>
2023-05-25 11:13:43 +02:00
<article>
<h3>{'Thumbnails'|t}</h3>
2023-05-25 11:13:43 +02:00
<p>{'Thumbnails status'|t} :
2023-05-25 11:13:43 +02:00
{if="$thumbnails_mode==='all'"}
{'All'|t}
2023-05-25 11:13:43 +02:00
{elseif="$thumbnails_mode==='common'"}
{'Only common media hosts'|t}
2023-05-25 11:13:43 +02:00
{else}
{'None'|t}
2023-05-25 11:13:43 +02:00
{/if}
</p>
{if="$thumbnails_mode!=='none'"}
<p class="flex-center flex">
<a role="button" href="{$base_path}/admin/thumbnails" title="{'Synchronize all link thumbnails'|t}">
{'Synchronize thumbnails'|t}
</a>
</p>
{/if}
</article>
2023-05-25 11:13:43 +02:00
<article>
<h3>{'Cache'|t}</h3>
<p class="flex-center flex">
<a role="button" href="{$base_path}/admin/clear-cache?type=main">
{'Clear main cache'|t}
</a>
<a role="button" href="{$base_path}/admin/clear-cache?type=thumbnails">
{'Clear thumbnails cache'|t}
</a>
</p>
</article>
</section>
2023-05-25 11:13:43 +02:00
{include="page.footer"}
2023-05-25 11:13:43 +02:00
</body>
2023-05-25 11:13:43 +02:00
</html>