Fossil SCM

change the submenu for copy ticket to default TH1, so that admins can change it

jkosche 2025-03-23 11:19 tktnew-template
Commit fd403302688547ea9c1bdf7f745e82861cf909315967a8c0d95d19969b430438
2 files changed -1 +4
-1
--- src/tkt.c
+++ src/tkt.c
@@ -740,11 +740,10 @@
740740
style_submenu_element("Check-ins", "%R/tkttimeline/%T?y=ci", zUuid);
741741
}
742742
}
743743
if( g.anon.NewTkt ){
744744
style_submenu_element("New Ticket", "%R/tktnew");
745
- style_submenu_element("Copy Ticket", "%R/tktnew/%T", PD("name",""));
746745
}
747746
if( g.anon.ApndTkt && g.anon.Attach ){
748747
style_submenu_element("Attach", "%R/attachadd?tkt=%T&from=%R/tktview/%t",
749748
zUuid, zUuid);
750749
}
751750
--- src/tkt.c
+++ src/tkt.c
@@ -740,11 +740,10 @@
740 style_submenu_element("Check-ins", "%R/tkttimeline/%T?y=ci", zUuid);
741 }
742 }
743 if( g.anon.NewTkt ){
744 style_submenu_element("New Ticket", "%R/tktnew");
745 style_submenu_element("Copy Ticket", "%R/tktnew/%T", PD("name",""));
746 }
747 if( g.anon.ApndTkt && g.anon.Attach ){
748 style_submenu_element("Attach", "%R/attachadd?tkt=%T&from=%R/tktview/%t",
749 zUuid, zUuid);
750 }
751
--- src/tkt.c
+++ src/tkt.c
@@ -740,11 +740,10 @@
740 style_submenu_element("Check-ins", "%R/tkttimeline/%T?y=ci", zUuid);
741 }
742 }
743 if( g.anon.NewTkt ){
744 style_submenu_element("New Ticket", "%R/tktnew");
 
745 }
746 if( g.anon.ApndTkt && g.anon.Attach ){
747 style_submenu_element("Attach", "%R/attachadd?tkt=%T&from=%R/tktview/%t",
748 zUuid, zUuid);
749 }
750
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -491,10 +491,14 @@
491491
@ html "(0)</td></tr>\n"
492492
@ } else {
493493
@ html "<td class='tktDspValue' colspan='3'>Deleted</td></tr>\n"
494494
@ }
495495
@ }
496
+@
497
+@ if {[capexpr {n}]} {
498
+@ submenu link "Copy Ticket" /tktnew/$tkt_uuid
499
+@ }
496500
@ </th1>
497501
@ <tr><td class="tktDspLabel">Title:</td>
498502
@ <td class="tktDspValue" colspan="3">
499503
@ $<title>
500504
@ </td></tr>
501505
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -491,10 +491,14 @@
491 @ html "(0)</td></tr>\n"
492 @ } else {
493 @ html "<td class='tktDspValue' colspan='3'>Deleted</td></tr>\n"
494 @ }
495 @ }
 
 
 
 
496 @ </th1>
497 @ <tr><td class="tktDspLabel">Title:</td>
498 @ <td class="tktDspValue" colspan="3">
499 @ $<title>
500 @ </td></tr>
501
--- src/tktsetup.c
+++ src/tktsetup.c
@@ -491,10 +491,14 @@
491 @ html "(0)</td></tr>\n"
492 @ } else {
493 @ html "<td class='tktDspValue' colspan='3'>Deleted</td></tr>\n"
494 @ }
495 @ }
496 @
497 @ if {[capexpr {n}]} {
498 @ submenu link "Copy Ticket" /tktnew/$tkt_uuid
499 @ }
500 @ </th1>
501 @ <tr><td class="tktDspLabel">Title:</td>
502 @ <td class="tktDspValue" colspan="3">
503 @ $<title>
504 @ </td></tr>
505

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button