You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When there is no passing check for this software component, we hide the check report table when the viewer
220
+
first open the HTML file. However, the viewer could click the `toggler` to expand the table if they want to see it. To achieve this, there are two component we need to handle:
221
+
- The toggler, which is the symbol that indicate the Extended or Collapsed state of the check report table:
222
+
The class ``toggler-extend`` will apply the CSS rule to rotate the toggler symbol indicating the "Extend" state.
223
+
If ``toggler-extend`` is not set, the toggler will be in the Collapsed state.
224
+
- The ``check_report_content`` div, which contains the check report table: The HTML class ``hidden`` will set ``display: none`` to this div and hide the check report table.
225
+
#}
226
+
{% if metadata.has_passing_check %}
227
+
{#
228
+
Set the default state to Extend if there is a passing check.
229
+
#}
230
+
<divclass="table_caption toggler toggler-extend" id="check_report_title">Reports for Macaron checks</div>
231
+
<divid="check_report_content">
232
+
{% else %}
233
+
{#
234
+
Set the default state to Collapsed if there is no passing check.
235
+
#}
236
+
<divclass="table_caption toggler" id="check_report_title">Reports for Macaron checks</div>
0 commit comments