## get("ui/morphTo")}/title_bullet.png{else}{$rootUrl}/resources/graphics/title_bullet.png{/if}"/>{i18n}Document Links{/i18n}:
{$context->oDocument->getName()|sanitize}

{i18n}The current links to and from this document are displayed below.{/i18n}

| {i18n}Target{/i18n} | {i18n}Type{/i18n} | {i18n}Relationship{/i18n}
--- | --- | --- | ---

{if $links_from || $links_to || $links_external}

{foreach from=$links_from item=link}

{assign var="type" value=$link->getLinkType()} {assign var="target" value=$link->getChildDocument()}

{if $write_permission} {if $signatures} {i18n}Delete{/i18n} {else} {i18n}Delete{/i18n} {/if} {else} {/if} | getId()}&qs[action]=main" title="{"viewDocument"|generateControllerUrl}&qs[fDocumentId]={$target->getId()}&qs[action]=main">{$target->getName()|sanitize} | {$type->getName()} | {i18n}Linked from this document{/i18n}

{/foreach}

{foreach from=$links_to item=link}

{assign var="type" value=$link->getLinkType()} {assign var="target" value=$link->getParentDocument()}

{if $write_permission} {if $signatures} {i18n}Delete{/i18n} {else} {i18n}Delete{/i18n} {/if} {else} {/if} | getId()}&qs[action]=main" href="{"viewDocument"|generateControllerUrl}&qs[fDocumentId]={$target->getId()}&qs[action]=main">{$target->getName()|sanitize} | {$type->getName()} | {i18n}Links to this document{/i18n}

{/foreach}

{foreach from=$links_external item=link}

{assign var="type" value=$link->getLinkType()} {assign var="url" value=$link->getTargetUrl()} {assign var="name" value=$link->getTargetName()}

{if $write_permission} {if $signatures} {i18n}Delete{/i18n} {else} {i18n}Delete{/i18n} {/if} {else} {/if} | {$link->getTargetName()|sanitize} | {$type->getName()} | {i18n}External link from this document{/i18n}

{/foreach}

{else}
{i18n}There are no links to or from this document.{/i18n}
{/if}

{if $write_permission} {i18n}Add a new link{/i18n} {i18n}Add a new link{/i18n}
{i18n}Add a new link{/i18n} {i18n}Add an external link{/i18n}. {/if}