Support new page menu system
This commit is contained in:
parent
5553598324
commit
16ecc1b4fd
@ -24,6 +24,7 @@ use parent qw(ORB); # This class extends the ORB block class
|
|||||||
use experimental qw(smartmatch);
|
use experimental qw(smartmatch);
|
||||||
use v5.14;
|
use v5.14;
|
||||||
|
|
||||||
|
|
||||||
## @method private $ _build_summary_list($field)
|
## @method private $ _build_summary_list($field)
|
||||||
# Build a list of recipes ordered by the specified field. This will
|
# Build a list of recipes ordered by the specified field. This will
|
||||||
# generate a string containing one or more table rows of data for
|
# generate a string containing one or more table rows of data for
|
||||||
@ -65,8 +66,7 @@ sub _generate_summaries {
|
|||||||
my $self = shift;
|
my $self = shift;
|
||||||
|
|
||||||
return ("{L_SUMMARY_TITLE}",
|
return ("{L_SUMMARY_TITLE}",
|
||||||
$self -> {"template"} -> load_template("summary/content.tem", {"%(pagemenu)s" => $self -> pagemenu("-"),
|
$self -> {"template"} -> load_template("summary/content.tem", {"%(added)s" => $self -> _build_summary_list("added"),
|
||||||
"%(added)s" => $self -> _build_summary_list("added"),
|
|
||||||
"%(viewed)s" => $self -> _build_summary_list("viewed"),
|
"%(viewed)s" => $self -> _build_summary_list("viewed"),
|
||||||
"%(updated)s" => $self -> _build_summary_list("updated"),
|
"%(updated)s" => $self -> _build_summary_list("updated"),
|
||||||
})
|
})
|
||||||
@ -99,6 +99,7 @@ sub _dispatch_ui {
|
|||||||
content => $body,
|
content => $body,
|
||||||
extrahead => $extrahead,
|
extrahead => $extrahead,
|
||||||
extrajs => $extrajs,
|
extrajs => $extrajs,
|
||||||
|
active => '-',
|
||||||
doclink => 'summary');
|
doclink => 'summary');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user