Revision b9bb792b
Von Sven Schöling vor etwa 2 Jahren hinzugefügt
SL/Presenter/ItemsList.pm | ||
---|---|---|
13 | 13 |
my ($items, %params) = @_; |
14 | 14 |
|
15 | 15 |
my $text_mode = !!delete $params{as_text}; |
16 |
my $output = SL::Presenter->get->render('presenter/items_list/items_list', |
|
17 |
{type => $text_mode ? 'text' : 'html'}, |
|
18 |
%params, |
|
19 |
items => $items); |
|
20 |
$output =~ s{\n$}{}x if $text_mode; |
|
16 |
|
|
17 |
my $output = SL::Presenter->get->render('presenter/items_list/items_list', { type => $text_mode ? 'text' : 'html' }, %params, items => $items); |
|
18 |
|
|
19 |
$output =~ s{\n$}{}x if $text_mode; |
|
21 | 20 |
|
22 | 21 |
return $output; |
23 | 22 |
} |
Auch abrufbar als: Unified diff
ItemList: keine eigene Template Instanz aufmachen