mirror of
https://github.com/grafana/grafana.git
synced 2024-11-27 03:11:01 -06:00
77 lines
1.5 KiB
HTML
77 lines
1.5 KiB
HTML
<div class="modal-body gf-box gf-box-no-margin" ng-controller="InspectCtrl" ng-init="init()">
|
|
<div class="gf-box-header">
|
|
<div class="gf-box-title">
|
|
<i class="fa fa-eye"></i>
|
|
Inspector
|
|
</div>
|
|
|
|
<div ng-model="editor.index" bs-tabs>
|
|
<div ng-repeat="tab in ['Request', 'Response', 'JS Error']" data-title="{{tab}}">
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="gf-box-body">
|
|
|
|
<div ng-if="editor.index == 0">
|
|
<h5>Request details</h5>
|
|
<table class="table table-striped small inspector-request-table">
|
|
<tr>
|
|
<td>Url</td>
|
|
<td>{{inspector.error.config.url}}</td>
|
|
</tr>
|
|
<tr>
|
|
<td>Method</td>
|
|
<td>{{inspector.error.config.method}}</td>
|
|
</tr>
|
|
<tr ng-repeat="(key, value) in inspector.error.config.headers">
|
|
<td>
|
|
{{key}}
|
|
</td>
|
|
<td>
|
|
{{value}}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<h5>Request parameters</h5>
|
|
<table class="table table-striped small inspector-request-table">
|
|
<tr ng-repeat="param in request_parameters">
|
|
<td>
|
|
{{param.key}}
|
|
</td>
|
|
<td>
|
|
{{param.value}}
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
|
|
<div ng-if="editor.index == 1">
|
|
<h5 ng-if="response" ng-bind="response"></h5>
|
|
|
|
<div ng-if="response_html">
|
|
<div iframe-content="response_html"></div>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div ng-if="editor.index == 2">
|
|
|
|
<label>Message:</label>
|
|
<pre>
|
|
{{message}}
|
|
</pre>
|
|
|
|
<label>Stack trace:</label>
|
|
<pre>
|
|
{{stack_trace}}
|
|
</pre>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|