Fossil SCM
change the submenu for copy ticket to default TH1, so that admins can change it
Commit
fd403302688547ea9c1bdf7f745e82861cf909315967a8c0d95d19969b430438
Parent
e729e6b2028a4e5…
2 files changed
-1
+4
-1
| --- src/tkt.c | ||
| +++ src/tkt.c | ||
| @@ -740,11 +740,10 @@ | ||
| 740 | 740 | style_submenu_element("Check-ins", "%R/tkttimeline/%T?y=ci", zUuid); |
| 741 | 741 | } |
| 742 | 742 | } |
| 743 | 743 | if( g.anon.NewTkt ){ |
| 744 | 744 | style_submenu_element("New Ticket", "%R/tktnew"); |
| 745 | - style_submenu_element("Copy Ticket", "%R/tktnew/%T", PD("name","")); | |
| 746 | 745 | } |
| 747 | 746 | if( g.anon.ApndTkt && g.anon.Attach ){ |
| 748 | 747 | style_submenu_element("Attach", "%R/attachadd?tkt=%T&from=%R/tktview/%t", |
| 749 | 748 | zUuid, zUuid); |
| 750 | 749 | } |
| 751 | 750 |
| --- 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 |
+4
| --- src/tktsetup.c | ||
| +++ src/tktsetup.c | ||
| @@ -491,10 +491,14 @@ | ||
| 491 | 491 | @ html "(0)</td></tr>\n" |
| 492 | 492 | @ } else { |
| 493 | 493 | @ html "<td class='tktDspValue' colspan='3'>Deleted</td></tr>\n" |
| 494 | 494 | @ } |
| 495 | 495 | @ } |
| 496 | +@ | |
| 497 | +@ if {[capexpr {n}]} { | |
| 498 | +@ submenu link "Copy Ticket" /tktnew/$tkt_uuid | |
| 499 | +@ } | |
| 496 | 500 | @ </th1> |
| 497 | 501 | @ <tr><td class="tktDspLabel">Title:</td> |
| 498 | 502 | @ <td class="tktDspValue" colspan="3"> |
| 499 | 503 | @ $<title> |
| 500 | 504 | @ </td></tr> |
| 501 | 505 |
| --- 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 |