Fossil SCM

Add the "Send a message to ..." link for administrators on the subscription configuration page.

drh 2020-03-26 13:18 trunk
Commit bb05299ee78c531144a01e1abef0d949655330f985c37fb665501d5f23b9ddfb
1 file changed +6 -1
+6 -1
--- src/alerts.c
+++ src/alerts.c
@@ -1644,11 +1644,16 @@
16441644
@ <input type="hidden" name="name" value="%h(zName)">
16451645
@ <table class="subscribe">
16461646
@ <tr>
16471647
@ <td class="form_label">Email&nbsp;Address:</td>
16481648
if( isLogin ){
1649
- @ <td><input type="text" name="semail" value="%h(semail)" size="30"></td>
1649
+ @ <td><input type="text" name="semail" value="%h(semail)" size="30">\
1650
+ if( g.perm.Admin ){
1651
+ @ &nbsp;&nbsp;<a href="%R/announce?to=%t(semail)">\
1652
+ @ (Send a message to %h(semail))</a>\
1653
+ }
1654
+ @ </td>
16501655
}else{
16511656
@ <td>%h(semail)</td>
16521657
}
16531658
@ </tr>
16541659
if( g.perm.Admin ){
16551660
--- src/alerts.c
+++ src/alerts.c
@@ -1644,11 +1644,16 @@
1644 @ <input type="hidden" name="name" value="%h(zName)">
1645 @ <table class="subscribe">
1646 @ <tr>
1647 @ <td class="form_label">Email&nbsp;Address:</td>
1648 if( isLogin ){
1649 @ <td><input type="text" name="semail" value="%h(semail)" size="30"></td>
 
 
 
 
 
1650 }else{
1651 @ <td>%h(semail)</td>
1652 }
1653 @ </tr>
1654 if( g.perm.Admin ){
1655
--- src/alerts.c
+++ src/alerts.c
@@ -1644,11 +1644,16 @@
1644 @ <input type="hidden" name="name" value="%h(zName)">
1645 @ <table class="subscribe">
1646 @ <tr>
1647 @ <td class="form_label">Email&nbsp;Address:</td>
1648 if( isLogin ){
1649 @ <td><input type="text" name="semail" value="%h(semail)" size="30">\
1650 if( g.perm.Admin ){
1651 @ &nbsp;&nbsp;<a href="%R/announce?to=%t(semail)">\
1652 @ (Send a message to %h(semail))</a>\
1653 }
1654 @ </td>
1655 }else{
1656 @ <td>%h(semail)</td>
1657 }
1658 @ </tr>
1659 if( g.perm.Admin ){
1660

Keyboard Shortcuts

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