Fossil SCM

Show the menu of trouble-shooting options to administrators at the bottom of the /announce page.

drh 2025-04-07 17:08 trunk
Commit c98eec22c29a4abc20fe3841b0a57b744c9f00eb462f8dec7edbf32527bca865
1 file changed +13
+13
--- src/alerts.c
+++ src/alerts.c
@@ -3642,7 +3642,20 @@
36423642
@ <td><input type="submit" name="submit" value="Send Message">
36433643
}
36443644
@ </tr>
36453645
@ </table>
36463646
@ </form>
3647
+ if( g.perm.Setup ){
3648
+ @ <hr>
3649
+ @ <p>Trouble-shooting Options:</p>
3650
+ @ <ol>
3651
+ @ <li> <a href="%R/announce">Normal Processing</a>
3652
+ @ <li> Only <a href="%R/announce/test1">show POST parameters</a>
3653
+ @ - Do not send the announcement.
3654
+ @ <li> <a href="%R/announce/test2">Show the email text</a> but do
3655
+ @ not actually send it.
3656
+ @ <li> Send the message and also <a href="%R/announce/test3">show the
3657
+ @ SMTP traffic</a> when using "relay" mode.
3658
+ @ </ol>
3659
+ }
36473660
style_finish_page();
36483661
}
36493662
--- src/alerts.c
+++ src/alerts.c
@@ -3642,7 +3642,20 @@
3642 @ <td><input type="submit" name="submit" value="Send Message">
3643 }
3644 @ </tr>
3645 @ </table>
3646 @ </form>
 
 
 
 
 
 
 
 
 
 
 
 
 
3647 style_finish_page();
3648 }
3649
--- src/alerts.c
+++ src/alerts.c
@@ -3642,7 +3642,20 @@
3642 @ <td><input type="submit" name="submit" value="Send Message">
3643 }
3644 @ </tr>
3645 @ </table>
3646 @ </form>
3647 if( g.perm.Setup ){
3648 @ <hr>
3649 @ <p>Trouble-shooting Options:</p>
3650 @ <ol>
3651 @ <li> <a href="%R/announce">Normal Processing</a>
3652 @ <li> Only <a href="%R/announce/test1">show POST parameters</a>
3653 @ - Do not send the announcement.
3654 @ <li> <a href="%R/announce/test2">Show the email text</a> but do
3655 @ not actually send it.
3656 @ <li> Send the message and also <a href="%R/announce/test3">show the
3657 @ SMTP traffic</a> when using "relay" mode.
3658 @ </ol>
3659 }
3660 style_finish_page();
3661 }
3662

Keyboard Shortcuts

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