From c10ef269c5c2ce6ca15818be441bca985ed2f2a0 Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Thu, 19 Dec 2019 02:07:58 +1100 Subject: minimaws updates: * reduce network operations when initially loading a machine page * add rudimentary software lists to machine pages --- scripts/minimaws/lib/htmltmpl.py | 47 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 45 insertions(+), 2 deletions(-) (limited to 'scripts/minimaws/lib/htmltmpl.py') diff --git a/scripts/minimaws/lib/htmltmpl.py b/scripts/minimaws/lib/htmltmpl.py index 185771af6ee..6a16f305d8d 100644 --- a/scripts/minimaws/lib/htmltmpl.py +++ b/scripts/minimaws/lib/htmltmpl.py @@ -70,6 +70,45 @@ MACHINE_CLONES_ROW = string.Template( ' ${manufacturer}\n' \ ' \n') +MACHINE_SOFTWARELISTS_TABLE_PROLOGUE = string.Template( + '

Software Lists

\n' \ + '\n' \ + ' \n' \ + ' \n' \ + ' \n' \ + ' \n' \ + ' \n' \ + ' \n' \ + ' \n' \ + ' \n' \ + ' \n' \ + ' \n' \ + ' \n' \ + ' \n') + +MACHINE_SOFTWARELISTS_TABLE_ROW = string.Template( + ' \n' \ + ' \n' \ + ' \n' \ + ' \n' \ + ' \n' \ + ' \n' \ + ' \n' \ + ' \n' \ + ' \n') + +MACHINE_SOFTWARELISTS_TABLE_EPILOGUE = string.Template( + ' \n' \ + '
Short nameDescriptionStatusTotalSupportedPartially supportedUnsupported
${shortname}${description}${status}${total}${supported}${partiallysupported}${unsupported}
\n' \ + '\n') + MACHINE_OPTIONS_HEADING = string.Template( '

Options

\n' \ '

\n' \ @@ -92,10 +131,14 @@ MACHINE_RAM_PROLOGUE = string.Template( MACHINE_RAM_OPTION = string.Template( ' \n') -MACHINE_SLOTS_PLACEHOLDER = string.Template( +MACHINE_SLOTS_PLACEHOLDER_PROLOGUE = string.Template( '

Slots

\n' \ '

Loading slot information…

\n' \ - '\n') + '\n') MACHINE_ROW = string.Template( ' \n' \ -- cgit v1.2.3-70-g09d2