treebird/perl/timeline.pm
nekobit 473b3b5920 Progress
FossilOrigin-Name: 69b265f1adaa240d8ec99f3448ed386a9e543e4f30cf1534cb387c57ee198a4d
2022-08-04 04:31:28 +00:00

28 lines
612 B
Perl

package timeline;
use strict;
use warnings;
use Exporter 'import';
our @EXPORT = qw( generate_attachment );
use template_helpers 'to_template';
use icons 'get_icon';
use postbox 'generate_postbox';
use status 'generate_status';
sub content_timeline
{
my ($ssn, $data, $statuses, $title, $show_post_box) = @_;
my %vars = (
prefix => '',
ssn => $ssn,
statuses => $statuses,
title => $title,
show_post_box => $show_post_box,
postbox => \&postbox,
create_status => \&generate_status,
);
to_template(\&vars, \&data->{'timeline.tt'});
}