summaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-31 19:45:49 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-31 19:45:49 +0100
commitf2a6a2bf7e4c574098e28ad81eabbc2b56425d72 (patch)
tree2f04d442715c71ee90642f6a78a89cbc627c2c87 /templates
parent25e4d9f7b6d0c3a65c38ce0e8e0730832f00af02 (diff)
downloadliberty-f2a6a2bf7e4c574098e28ad81eabbc2b56425d72.tar.gz
liberty-f2a6a2bf7e4c574098e28ad81eabbc2b56425d72.tar.bz2
liberty-f2a6a2bf7e4c574098e28ad81eabbc2b56425d72.zip
list_xref.tpl: gate date and edit column headers on xrefAllowEdit
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'templates')
-rw-r--r--templates/list_xref.tpl14
1 files changed, 8 insertions, 6 deletions
diff --git a/templates/list_xref.tpl b/templates/list_xref.tpl
index 70183ce..55b3d0a 100644
--- a/templates/list_xref.tpl
+++ b/templates/list_xref.tpl
@@ -10,13 +10,15 @@
<th>{tr}Link{/tr}</th>
<th>{tr}Key{/tr}</th>
<th>{tr}Value{/tr}</th>
- {if $source ne 'history'}
- <th>{tr}Started{/tr}</th>
- {else}
- <th>{tr}Ended{/tr}</th>
+ {if $xrefAllowEdit}
+ {if $source ne 'history'}
+ <th>{tr}Started{/tr}</th>
+ {else}
+ <th>{tr}Ended{/tr}</th>
+ {/if}
+ <th>{tr}Updated{/tr}</th>
+ <th>{tr}Edit{/tr}</th>
{/if}
- <th>{tr}Updated{/tr}</th>
- {if $xrefAllowEdit}<th>{tr}Edit{/tr}</th>{/if}
</tr>
</thead>
<tbody>