{$batchId=isset($batchId) ? $batchId : ''} {if="empty($batch_mode)"} {include="includes"}
{include="page.header"} {else} {ignore}Lil hack: when included in a loop in batch mode, `$value` is assigned by RainTPL with template vars.{/ignore} {function="extract($value) ? '' : ''"} {/if}
{$asyncLoadClass=$link_is_new && $async_metadata && empty($link.title) ? 'loading-input' : ''}

## {if="!$link_is_new"}{'Edit Shaare'|t}{else}{'New Shaare'|t}{/if}

{if="isset($link.id)"} {/if} {if="!$link_is_new"}
{'Created:'|t} {$link.created|format_date}
{/if}
{'URL'|t}
{'Title'|t}
{'Description'|t}
{$link.description}
{'Tags'|t}
{'Private'|t}
{if="$formatter==='markdown'"}
{'Description will be rendered with'|t} {'Markdown syntax'|t} .
{/if}
{loop="$edit_link_plugin"} {$value} {/loop}
{if="!empty($batch_mode)"} {'Cancel'|t} {/if} {if="!$link_is_new"} {'Delete'|t} {/if}
{if="$http_referer"} {/if}
{if="empty($batch_mode)"} {include="page.footer"} {if="$link_is_new && $async_metadata"}
{/if}
{/if}