legs: extract the summary table into a partial

Signed-off-by: diditclear <didyourupgradeclear@gmail.com>