f598254df5
FossilOrigin-Name: 777207b1be91397673581322f0e29de2710da552cfc95e3ef65a97952b2062db
44 lines
930 B
Perl
44 lines
930 B
Perl
use strict;
|
|
use warnings;
|
|
# Modules
|
|
use Template;
|
|
use l10n qw( &lang %L10N );
|
|
use notifications qw( generate_notification_compact content_notifications );
|
|
use template_helpers qw( &to_template );
|
|
use timeline;
|
|
use status;
|
|
use account;
|
|
use lists;
|
|
|
|
# my $template = Template->new(
|
|
# {
|
|
# INTERPOLATE => 1,
|
|
# POST_CHOMP => 1,
|
|
# EVAL_PERL => 1,
|
|
# TRIM => 1
|
|
# });
|
|
|
|
sub base_page
|
|
{
|
|
my ($ssn,
|
|
$data,
|
|
$main,
|
|
$notifs) = @_;
|
|
my $result;
|
|
|
|
my %vars = (
|
|
prefix => '',
|
|
ssn => $ssn,
|
|
title => $L10N{'EN_US'}->{'APP_NAME'},
|
|
lang => \&lang,
|
|
main => $main,
|
|
sidebar_opacity => $ssn->{config}->{sidebar_opacity} / 255,
|
|
acct => $ssn->{account},
|
|
data => $data,
|
|
notifs => $notifs,
|
|
notification_compact => \&generate_notification_compact,
|
|
);
|
|
|
|
to_template(\%vars, \$data->{'main.tt'});
|
|
}
|
|
|