summaryrefslogtreecommitdiff
path: root/templates/view_xref_text_item.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'templates/view_xref_text_item.tpl')
-rw-r--r--templates/view_xref_text_item.tpl6
1 files changed, 3 insertions, 3 deletions
diff --git a/templates/view_xref_text_item.tpl b/templates/view_xref_text_item.tpl
index 0c9523a..ebb3542 100644
--- a/templates/view_xref_text_item.tpl
+++ b/templates/view_xref_text_item.tpl
@@ -4,7 +4,7 @@
<td>{$xrefInfo.data|escape}</td>
{if $xrefAllowEdit|default:false}
<td>
- {if $source ne 'history'}
+ {if !$isHistory}
{$xrefInfo.start_date|bit_short_date}
{else}
{$xrefInfo.end_date|bit_short_date}
@@ -13,11 +13,11 @@
<td>{$xrefInfo.last_update_date|bit_short_date}</td>
<td>
<span class="actionicon">
- {if $gContent->hasUpdatePermission() && $source ne 'history'}
+ {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 $source eq 'history'}
+ {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}