{include file="../../../application/admin/view_new/public/head" /}

{:lang('admin/meilisearch/switch')} | {:lang('open')} {:lang('close')} {:lang('admin/meilisearch/enabled_aux')}
{:lang('admin/meilisearch/host')} |
{:lang('admin/meilisearch/index_uid')} |
{:lang('admin/meilisearch/api_key')} | {if condition="$meili_key_saved eq 1"} {:lang('admin/meilisearch/api_key_saved_tip')} (****{$meili_key_tail}) {/if}
{:lang('admin/meilisearch/timeout')} |
{:lang('admin/meilisearch/ssl_verify')} | {:lang('open')} {:lang('close')} {:lang('admin/meilisearch/ssl_verify_tip')}
{:lang('admin/meilisearch/sync_on_save')} | {:lang('open')} {:lang('close')}
{:lang('admin/meilisearch/search_only_wd')} | {:lang('open')} {:lang('close')}

> {if condition="$cfg.enabled neq '1'"} {:lang('admin/meilisearch/state_disabled')} {elseif condition="!$health.ok"/} {:lang('admin/meilisearch/state_down_prefix')}{$cfg.timeout|default='8'}{:lang('admin/meilisearch/state_down_suffix')} {elseif condition="!isset($stats.numberOfDocuments) || $stats.numberOfDocuments eq 0"/} {:lang('admin/meilisearch/state_empty')} {else/} {:lang('admin/meilisearch/state_ok_prefix')}{if condition="isset($stats.numberOfDocuments)"}{$stats.numberOfDocuments}{else/}0{/if}{:lang('admin/meilisearch/state_ok_suffix')} {/if}

{:lang('admin/meilisearch/switch')} | {$cfg.enabled|default='0'}
{:lang('admin/meilisearch/host')} | {$cfg.host|default=''}
{:lang('admin/meilisearch/index_uid')} | {$cfg.index_uid|default=''}
{:lang('admin/meilisearch/ssl_verify')} | {if condition="$cfg.ssl_verify eq '0'"}{:lang('close')}{else/}{:lang('open')}{/if}
{:lang('admin/meilisearch/health')} | {if condition="$health.ok"}{:lang('admin/meilisearch/health_ok')}{else/}{:lang('admin/meilisearch/health_down')}{/if}
{:lang('admin/meilisearch/opencc')} | {if condition="$opencc_available"} {:lang('admin/meilisearch/opencc_available')} {:lang('admin/meilisearch/opencc_available_hint')} {else/} {:lang('admin/meilisearch/opencc_unavailable')} {:lang('admin/meilisearch/opencc_unavailable_hint')} {/if}

{:lang('admin/meilisearch/full_sync')}
{:lang('admin/meilisearch/full_sync_hint_extended')}

{include file="../../../application/admin/view_new/public/foot" /}