1
0
Fork 0

improve kaitai display

show a message in place of the struct if the struct happens to be missing
environments/stage/deployments/34
Corey Shields 2018-09-02 21:11:42 -04:00
parent 244cf3dd3f
commit 9f1d7b69f9
1 changed files with 12 additions and 6 deletions

View File

@ -336,12 +336,18 @@
<h4 class="modal-title" id="EditSuggestionModalLabel">Kaitai Struct for {{ telemetry.name }}</h4>
</div>
<div class="modal-body">
<div class="kaitai-header">
See <a href="http://kaitai.io" target="_blank">kaitai.io</a> for more information on the format.
</div>
<div class="kaitai-struct">
<pre>{{ telemetry.schema }}</pre>
</div>
{% if not telemetry.schema == '' %}
<div class="kaitai-header">
See <a href="http://kaitai.io" target="_blank">kaitai.io</a> for more information on the format.
</div>
<div class="kaitai-struct">
<pre>{{ telemetry.schema }}</pre>
</div>
{% else %}
<div>
Struct format appears to be missing.
</div>
{% endif %}
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>