From 6d6b6e9983203202e6779c947958e29da8e4248f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jaros=C5=82aw=20K=C5=82opotek=20-=20INTERDUO?= Date: Fri, 8 Aug 2025 14:38:33 +0200 Subject: [PATCH] bugfix: missed hints for childtickets and primary ticket, visual unification of presenting links, escape ticket subjects --- templates/default/rt/rtticketinfobox.html | 30 +++++++++++++-------- templates/default/rt/rtticketinfoshort.html | 18 ++++++++++--- 2 files changed, 34 insertions(+), 14 deletions(-) diff --git a/templates/default/rt/rtticketinfobox.html b/templates/default/rt/rtticketinfobox.html index 4d42cd4ea2..be38d38f96 100644 --- a/templates/default/rt/rtticketinfobox.html +++ b/templates/default/rt/rtticketinfobox.html @@ -394,7 +394,12 @@ {icon name="parentticket" label="Primary ticket"} - #{$ticket.parent.id|string_format:"%06d"} {$ticket.parent.name|escape}
+ {button + type="link" + label="#{$ticket.parent.id|string_format:"%06d"} {$ticket.parent.name|escape}" + href="?m=rtticketview&id={$ticket.parent.id}" + } + {hint icon="info" mode="toggle" url="?m=rtticketinfo&id={$ticket.parent.id}"} {/if} @@ -405,9 +410,13 @@ {foreach $ticket.childtickets as $t} - #{$t.id|string_format:"%06d"} - {$t.subject|escape} -
+ {button + type="link" + label="#{$t.id|string_format:"%06d"} {$t.subject|escape}" + href="?m=rtticketview&id={$t.id}" + } + {hint icon="info" mode="toggle" url="?m=rtticketinfo&id={$t.id}"} + {if !$t@last}
{/if} {/foreach} @@ -419,14 +428,13 @@ {foreach $ticket.relatedtickets as $i} + {button + type="link" + label="#{$i.id|string_format:"%06d"} {$i.name|escape}" + href="?m=rtticketview&id={$i.id}" + } {hint icon="info" mode="toggle" url="?m=rtticketinfo&id={$i.id}"} - #{$i.id} - - {$i.name|escape} - - {if !$i@last} -
- {/if} + {if !$i@last}
{/if} {/foreach} diff --git a/templates/default/rt/rtticketinfoshort.html b/templates/default/rt/rtticketinfoshort.html index 9998f50c86..9f6a794914 100644 --- a/templates/default/rt/rtticketinfoshort.html +++ b/templates/default/rt/rtticketinfoshort.html @@ -86,7 +86,13 @@ {foreach $ticket.relatedtickets as $i} - #{$i.id|string_format:"%06d"} {$i.subject}
+ {button + type="link" + label="#{$i.id|string_format:"%06d"} {$i.name|escape}" + href="?m=rtticketview&id={$i.id}" + } + {hint icon="info" mode="toggle" url="?m=rtticketinfo&id={$i.id}"} + {if !$i@last}
{/if} {/foreach} @@ -97,8 +103,14 @@ {icon name="childticket" label="Secondary tickets"} - {foreach $ticket.childtickets as $i} - #{$i.id|string_format:"%06d"} {$i.subject}
+ {foreach $ticket.childtickets as $t} + {button + type="link" + label="#{$t.id|string_format:"%06d"} {$t.subject|escape}" + href="?m=rtticketview&id={$t.id}" + } + {hint icon="info" mode="toggle" url="?m=rtticketinfo&id={$t.id}"} + {if !$t@last}
{/if} {/foreach}