Make summary more helpful; use a html list

This commit is contained in:
Jeff Epler 2021-07-27 12:01:18 -05:00
parent f2b9e98a21
commit 94a4090542
2 changed files with 7 additions and 3 deletions

View File

@ -52,7 +52,7 @@ modules_support_matrix_reverse = defaultdict(list)
for board, modules in modules_support_matrix.items():
for module in modules:
modules_support_matrix_reverse[module].append(board)
modules_support_matrix_reverse = dict((module, ", ".join(boards)) for module, boards in modules_support_matrix_reverse.items())
modules_support_matrix_reverse = dict((module, sorted(boards)) for module, boards in modules_support_matrix_reverse.items())
html_context = {
'support_matrix': modules_support_matrix,

View File

@ -19,8 +19,12 @@
<p>
<details>
<summary>Module Availability</summary>
Available on: {{ support_matrix_reverse[obj.name] }}
<summary>Available on these boards</summary>
<ul>
{% for board in support_matrix_reverse[obj.name] %}
<li> {{ board }}
{% endfor %}
</ul>
</details>
</p>