@@ -139,15 +139,18 @@ <h4>Compare To:</h4>
139
139
140
140
< section id ="machine_info ">
141
141
{{ utils.render_popup_begin('machine_info', 'Machine Info', true) }}
142
- < h4 > Fields</ h4 >
143
- < table class ="table table-striped table-condensed table-hover ">
144
- {% for item in machine.fields %}
145
- < tr >
146
- < td > < b > {{item.name}}</ b > </ td >
147
- < td > {{ utils.newline_to_br(machine.get_field(item)) }}</ td >
148
- </ tr >
149
- {% endfor %}
150
- </ table >
142
+
143
+ {% if machine.fields %}
144
+ < h4 > Fields</ h4 >
145
+ < table class ="table table-striped table-condensed table-hover ">
146
+ {% for item in machine.fields %}
147
+ < tr >
148
+ < td > < b > {{item.name}}</ b > </ td >
149
+ < td > {{ utils.newline_to_br(machine.get_field(item)) }}</ td >
150
+ </ tr >
151
+ {% endfor %}
152
+ </ table >
153
+ {% endif %}
151
154
152
155
< h4 > Parameters</ h4 >
153
156
< table class ="table table-striped table-condensed table-hover ">
@@ -163,18 +166,21 @@ <h4>Parameters</h4>
163
166
164
167
< section id ="run_info ">
165
168
{{ utils.render_popup_begin('run_info', 'Run Info', true) }}
166
- < h4 > Fields</ h4 >
167
- < table class ="table table-striped table-condensed table-hover ">
168
- < thead >
169
- < tr > < th > Name</ th > < th > Value</ th > </ tr >
170
- </ thead >
171
- {% for item in run.fields %}
172
- < tr >
173
- < td > < b > {{item.name}}</ b > </ td >
174
- < td > {{ utils.newline_to_br(run.get_field(item)) }}</ td >
175
- </ tr >
176
- {% endfor %}
177
- </ table >
169
+
170
+ {% if run.fields %}
171
+ < h4 > Fields</ h4 >
172
+ < table class ="table table-striped table-condensed table-hover ">
173
+ < thead >
174
+ < tr > < th > Name</ th > < th > Value</ th > </ tr >
175
+ </ thead >
176
+ {% for item in run.fields %}
177
+ < tr >
178
+ < td > < b > {{item.name}}</ b > </ td >
179
+ < td > {{ utils.newline_to_br(run.get_field(item)) }}</ td >
180
+ </ tr >
181
+ {% endfor %}
182
+ </ table >
183
+ {% endif %}
178
184
179
185
< h4 > Parameters</ h4 >
180
186
< table class ="table table-striped table-condensed table-hover ">
0 commit comments