Skip to content

Commit e615435

Browse files
committed
Remind name of the opened list in the notification
When opening pending list, we have a notification `Aliases have been installed.` but it may be useful to have a reminder of the list we opened (when mass opening the pending lists, for ex.).
1 parent ecda973 commit e615435

File tree

4 files changed

+916
-2
lines changed

4 files changed

+916
-2
lines changed

default/mail_tt2/report.tt2

+1-1
Original file line numberDiff line numberDiff line change
@@ -487,7 +487,7 @@
487487
[%|loc%]List name has been lowercased[%END%]
488488

489489
[%~ ELSIF report_entry == 'auto_aliases' ~%]
490-
[%|loc%]Aliases have been installed.[%END%]
490+
[%|loc%]Aliases have been installed.[%END%] ([% report_param.listname %])
491491

492492
[%~ ELSIF report_entry == 'user_notified' ~%]
493493
[%|loc(report_param.notified_user)%]User %1 has been notified[%END%]

src/lib/Sympa/Request/Handler/open_list.pm

+2-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ sub _twist {
9494
my $aliases = Sympa::Aliases->new(
9595
Conf::get_robot_conf($list->{'domain'}, 'alias_manager'));
9696
if ($aliases and $aliases->add($list)) {
97-
$self->add_stash($request, 'notice', 'auto_aliases');
97+
$self->add_stash($request, 'notice', 'auto_aliases',
98+
{ listname => $list->{'name'} .'@' . $list->{'domain'} });
9899
} else {
99100
;
100101
}

src/lib/stamp-man1

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
timestamp

0 commit comments

Comments
 (0)