summaryrefslogtreecommitdiff
path: root/templates/view_xref_text_item.tpl
blob: ebb3542610202e90a7a3391adf5d7090b5f6cdab (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
25
26
27
28
29
{strip}
<td>{$xrefInfo.xref_title|escape}</td>
<td>{$xrefInfo.xkey|escape} {$xrefInfo.xkey_ext|escape}</td>
<td>{$xrefInfo.data|escape}</td>
{if $xrefAllowEdit|default:false}
<td>
	{if !$isHistory}
		{$xrefInfo.start_date|bit_short_date}
	{else}
		{$xrefInfo.end_date|bit_short_date}
	{/if}
</td>
<td>{$xrefInfo.last_update_date|bit_short_date}</td>
<td>
	<span class="actionicon">
		{if $gContent->hasUpdatePermission() && !$isHistory}
			{smartlink ititle="Edit" ipackage="liberty" ifile="edit_xref.php" biticon="edit" content_id=$gContent->mInfo.content_id xref_id=$xrefInfo.xref_id}
		{/if}
		{if $gContent->hasExpungePermission()}
			{if $isHistory}
				{smartlink ititle="Restore" ipackage="liberty" ifile="edit_xref.php" biticon="edit" content_id=$gContent->mInfo.content_id xref_id=$xrefInfo.xref_id expunge=-1}
			{else}
				{smartlink ititle="Delete" ipackage="liberty" ifile="edit_xref.php" biticon="user-trash" content_id=$gContent->mInfo.content_id xref_id=$xrefInfo.xref_id expunge=1}
			{/if}
		{/if}
	</span>
</td>
{/if}
{/strip}