ENH: Display errors as summary/details elements
@@ -49,6 +49,10 @@ div#boilerplate pre {
background-color: #F8F9FA;
}
+.nipype_error div {
+ padding-left: 1em;
+}
+
</style>
</head>
<body>
@@ -127,12 +131,10 @@ div#boilerplate pre {
<div id="errors">
<h1 class="sub-report-title">Errors</h1>
- <ul>
{% for error in errors %}
- <li>
- <div class="nipype_error">
- Node Name: <a target="_self" onclick="toggle('{{error.file|replace('.', '')}}_details_id');">{{ error.node }}</a><br>
- <div id="{{error.file|replace('.', '')}}_details_id" style="display:none">
+ <details class="nipype_error">
+ <summary>Node Name: {{ error.node }}</summary><br>
+ <div>
File: <code>{{ error.file }}</code><br>
Working Directory: <code>{{ error.node_dir }}</code><br>
Inputs: <br>
@@ -143,12 +145,12 @@ div#boilerplate pre {
</ul>
<pre>{{ error.traceback }}</pre>
</div>
- </div>
- </li>
+ </details>
{% else %}
+ <ul>
<li>No errors to report!</li>
- {% endfor %}
</ul>
+ {% endfor %}
</div>
