937301e307
FossilOrigin-Name: 7f5ff955aa478f571019fe9d6cf992f229e421dd7bac1b8ea689594baca3621f
34 lines
632 B
Perl
34 lines
632 B
Perl
package notifications;
|
|
use strict;
|
|
use warnings;
|
|
use Exporter 'import';
|
|
|
|
our @EXPORT = qw( generate_notification_compact content_notifications );
|
|
|
|
use template_helpers 'to_template';
|
|
|
|
sub generate_notification_compact
|
|
{
|
|
my ($ssn, $data, $notif) = @_;
|
|
|
|
my %vars = (
|
|
prefix => '',
|
|
ssn => $ssn,
|
|
notif => $notif
|
|
);
|
|
|
|
to_template(\%vars, \$data->{'notif_compact.tt'});
|
|
}
|
|
|
|
sub content_notifications
|
|
{
|
|
my ($ssn, $data, $notifs) = @_;
|
|
|
|
my %vars = (
|
|
prefix => '',
|
|
ssn=> $ssn,
|
|
notif => $notif
|
|
);
|
|
|
|
to_template(\%vars, \$data->{'content_notifs.tt'});
|
|
}
|