From 16ecc1b4fd6fa3428a094f687f52217fc92626f6 Mon Sep 17 00:00:00 2001 From: Chris Date: Tue, 22 May 2018 00:34:20 +0100 Subject: [PATCH] Support new page menu system --- blocks/ORB/Summary.pm | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/blocks/ORB/Summary.pm b/blocks/ORB/Summary.pm index 7664d1b..e293d54 100644 --- a/blocks/ORB/Summary.pm +++ b/blocks/ORB/Summary.pm @@ -24,6 +24,7 @@ use parent qw(ORB); # This class extends the ORB block class use experimental qw(smartmatch); use v5.14; + ## @method private $ _build_summary_list($field) # Build a list of recipes ordered by the specified field. This will # generate a string containing one or more table rows of data for @@ -65,8 +66,7 @@ sub _generate_summaries { my $self = shift; return ("{L_SUMMARY_TITLE}", - $self -> {"template"} -> load_template("summary/content.tem", {"%(pagemenu)s" => $self -> pagemenu("-"), - "%(added)s" => $self -> _build_summary_list("added"), + $self -> {"template"} -> load_template("summary/content.tem", {"%(added)s" => $self -> _build_summary_list("added"), "%(viewed)s" => $self -> _build_summary_list("viewed"), "%(updated)s" => $self -> _build_summary_list("updated"), }) @@ -99,6 +99,7 @@ sub _dispatch_ui { content => $body, extrahead => $extrahead, extrajs => $extrajs, + active => '-', doclink => 'summary'); }