{i18n}Document Links{/i18n}

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

{if $links_from || $links_to} {foreach from=$links_from item=link} {assign var="type" value=$link->getLinkType()} {assign var="target" value=$link->getChildDocument()} {/foreach} {foreach from=$links_to item=link} {assign var="type" value=$link->getLinkType()} {assign var="target" value=$link->getParentDocument()} {/foreach} {else} {/if}
  {i18n}Target{/i18n} {i18n}Type{/i18n} {i18n}Relationship{/i18n}
{if $write_permission} Delete {else}   {/if} getId()}&qs[action]=main">{$target->getName()} {$type->getName()} Linked from this document
{if $write_permission} Delete {else}   {/if} getId()}&qs[action]=main">{$target->getName()} {$type->getName()} Links to this document
There are no links to or from this document.

{if $write_permission} Add a new link Add a new link. {/if}