app/views/callback/show.volt: show query parameters in detail view.
This commit is contained in:
parent
0aa1107797
commit
80b0cd9063
1 changed files with 27 additions and 0 deletions
|
|
@ -36,6 +36,33 @@
|
|||
|
||||
<div class="request-list-item-detail">
|
||||
|
||||
{% if req.getUriQuery()|length > 0 %}
|
||||
|
||||
<button class="request-list-item-detail-button" type="button"
|
||||
data-toggle="collapse" data-target="#query{{ index }}"
|
||||
aria-expanded="false" aria-controls="query{{ index }}">
|
||||
Query
|
||||
</button>
|
||||
|
||||
<div class="collapse in" id="query{{ index }}">
|
||||
<table class="request-list-item-detail-headers">
|
||||
<thead>
|
||||
<th class="request-list-item-detail-headers-key">Key</th>
|
||||
<th class="request-list-item-detail-headers-value">Value</th>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for key, val in req.getUriQuery() %}
|
||||
<tr>
|
||||
<td><strong>{{ key|e }}</strong></td>
|
||||
<td>{{ val|e }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
|
||||
{% endif %}
|
||||
|
||||
<button class="request-list-item-detail-button" type="button"
|
||||
data-toggle="collapse" data-target="#headers{{ index }}"
|
||||
aria-expanded="false" aria-controls="headers{{ index }}">
|
||||
|
|
|
|||
Reference in a new issue