diff options
author | 2017-08-04 11:39:32 +1000 | |
---|---|---|
committer | 2017-08-04 11:42:23 +1000 | |
commit | 00f6156cbbadfc01dcd2a7e91d26d55fa210dfab (patch) | |
tree | c8b7b3756c4a0d1bf64a78356bb438221fffdceb /scripts/minimaws/lib/htmltmpl.py | |
parent | 0fbad045de7da6883d1930f81e895f59dc49c0b4 (diff) |
minimaws: show compatible slots for devices [Vas Crabb]
(nw) Identify Donkey Kong Junior (Japan set F-1) [Corrado Comaselli]
Diffstat (limited to 'scripts/minimaws/lib/htmltmpl.py')
-rw-r--r-- | scripts/minimaws/lib/htmltmpl.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/scripts/minimaws/lib/htmltmpl.py b/scripts/minimaws/lib/htmltmpl.py index d465f0d993d..815905a59bb 100644 --- a/scripts/minimaws/lib/htmltmpl.py +++ b/scripts/minimaws/lib/htmltmpl.py @@ -19,6 +19,11 @@ ERROR_PAGE = string.Template( '</html>\n') +SORTABLE_TABLE_EPILOGUE = string.Template( + ' </tbody>\n' + '</table>\n' + '<script>make_table_sortable(document.getElementById("${id}"));</script>\n') + MACHINE_PROLOGUE = string.Template( '<!DOCTYPE html>\n' \ '<html>\n' \ @@ -64,6 +69,15 @@ EXCL_MACHINE_ROW = string.Template( ' <td></td>\n' \ ' </tr>\n') +COMPATIBLE_SLOT_ROW = string.Template( + ' <tr>\n' \ + ' <td><a href="${machinehref}">${shortname}</a></td>\n' \ + ' <td><a href="${machinehref}">${description}</a></td>\n' \ + ' <td>${slot}</td>\n' \ + ' <td>${slotoption}</td>\n' \ + ' <td><a href="${sourcehref}">${sourcefile}</a></td>\n' \ + ' </tr>\n') + SOURCEFILE_PROLOGUE = string.Template( '<!DOCTYPE html>\n' \ |