Archived
1
0
Fork 0

app/views/callback/show.volt: show query parameters in detail view.

This commit is contained in:
Henrik Hautakoski 2018-03-18 12:47:23 +01:00
parent 0aa1107797
commit 80b0cd9063

View file

@ -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 }}">