Create statuses
FossilOrigin-Name: 5767e0610e9a60b2c908fe7a62b2e723e761e4d372424a57d029ddb677fe3610
This commit is contained in:
parent
ae453835b4
commit
1edf678d90
5 changed files with 14 additions and 6 deletions
|
@ -8,6 +8,7 @@ our @EXPORT = qw( account content_statuses );
|
|||
|
||||
use template_helpers 'to_template';
|
||||
use l10n 'lang';
|
||||
use status 'generate_status';
|
||||
|
||||
sub generate_account
|
||||
{
|
||||
|
@ -33,6 +34,8 @@ sub content_statuses
|
|||
prefix => '',
|
||||
ssn => $ssn,
|
||||
acct => $acct,
|
||||
statuses => $statuses,
|
||||
create_status => sub { generate_status($ssn, $data, shift); },
|
||||
);
|
||||
|
||||
generate_account($ssn, $data, $acct, $relationship, to_template(\%vars, \$data->{'account_statuses.tt'}));
|
||||
|
|
|
@ -22,7 +22,7 @@ sub content_timeline
|
|||
title => $title,
|
||||
show_post_box => $show_post_box,
|
||||
postbox => \&generate_postbox,
|
||||
create_status => \&generate_status,
|
||||
create_status => sub { generate_status($ssn, $data, shift); },
|
||||
);
|
||||
|
||||
to_template(\%vars, \$data->{'timeline.tt'});
|
||||
|
|
|
@ -79,8 +79,6 @@
|
|||
</table>
|
||||
|
||||
<div class="account-content">
|
||||
[% FOREACH i IN statuses %]
|
||||
[% create_status(ssn, data, i) %]
|
||||
[% END %]
|
||||
[% content %]
|
||||
</div>
|
||||
|
||||
|
|
|
@ -1 +1,8 @@
|
|||
Account statuses
|
||||
[% IF statuses %]
|
||||
[% FOREACH i IN statuses %]
|
||||
[% create_status(i) %]
|
||||
asd
|
||||
[% END %]
|
||||
[% ELSE %]
|
||||
<p>No statuses...</p>
|
||||
[% END %]
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
</div>
|
||||
|
||||
[% FOREACH i IN statuses %]
|
||||
[% create_status(ssn, data, i) %]
|
||||
[% create_status(i) %]
|
||||
[% END %]
|
||||
|
||||
[%# TODO navigation %]
|
||||
|
|
Loading…
Reference in a new issue