treebird/perl/timeline.pm
nekobit 50b0404c51 Fix timelines
FossilOrigin-Name: db1f2c1597a362e40bc65c39daf079ee51091bba653e721a9ac4e918bad95d61
2022-08-04 05:00:13 +00:00

29 lines
641 B
Perl

package timeline;
use strict;
use warnings;
use Exporter 'import';
our @EXPORT = qw( content_timeline );
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,
data => $data,
statuses => $statuses,
title => $title,
show_post_box => $show_post_box,
postbox => \&generate_postbox,
create_status => \&generate_status,
);
to_template(\%vars, \$data->{'timeline.tt'});
}