summaryrefslogtreecommitdiff
path: root/templates/view_xref_assembly_item.tpl
blob: e1572d6ed832914eaa3fca403551610ee30a08cb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{strip}
<td>
	{assign var=asmTitle value=$xrefInfo.linked_title|default:$xrefInfo.xkey_ext}
	{if $xrefInfo.xref}
		<a href="{if $xrefInfo.data eq 'stockassembly'}{$smarty.const.STOCK_PKG_URL}view_assembly.php?content_id={$xrefInfo.xref}{else}{$smarty.const.STOCK_PKG_URL}view_component.php?content_id={$xrefInfo.xref}{/if}">{$asmTitle|escape}</a>
	{else}
		{$asmTitle|escape}
	{/if}
	{if $xrefInfo.linked_desc}
		<div class="small text-muted">{$xrefInfo.linked_desc|strip_tags|truncate:120|escape}</div>
	{/if}
</td>
<td>{if $xrefInfo.data eq 'stockassembly'}{tr}Assembly{/tr}{else}{tr}Component{/tr}{/if}</td>
<td>{$xrefInfo.xkey|escape}</td>
{if $xrefAllowEdit|default:false}
<td>
	<span class="actionicon">
		{if $gContent->hasExpungePermission()}
			{smartlink ititle="Remove" ipackage="liberty" ifile="edit_xref.php" biticon="user-trash" content_id=$gContent->mInfo.content_id xref_id=$xrefInfo.xref_id expunge=1}
		{/if}
	</span>
</td>
{/if}
{/strip}