Archived
1
0
Fork 0

app/views/callback/show.volt: move some stuff around and add 2 rows for list header to make room for source ip and method.

This commit is contained in:
Henrik Hautakoski 2018-03-19 20:24:38 +01:00
parent b6507f1171
commit 8828c14230
2 changed files with 55 additions and 22 deletions

View file

@ -35,23 +35,37 @@
}
}
&-uri {
display: inline-block;
width: 45%;
&-row {
display: block;
& + & {
margin-top: .4em;
}
}
&-size {
&-method,
&-uri,
&-type,
&-timestamp,
&-size,
&-ip {
display: inline-block;
width: 10%;
.icon {
margin: 0 .2em;
}
}
&-method {
font-weight: bold;
}
&-type,
&-size {
width: 30%;
}
&-ip,
&-timestamp {
display: inline-block;
width: 20%;
.icon {
padding: 0 .4em;
}
float: right;
}
}

View file

@ -14,21 +14,40 @@
data-toggle="collapse" data-parent="#request-log"
aria-expanded="true" aria-controls="request{{ index }}">
<span class="request-list-item-header-uri">
{{ icon('android-locate') }} <span class="url">{{ urlStyle(req.getUri()) }}</span>
</span>
<div class="request-list-item-header-row">
<span class="request-list-item-header-timestamp">
{{ icon('android-time') }} {{ req.getTimestamp() }}
</span>
<span class="request-list-item-header-method">
{{ req.getMethod() }}
</span>
<span class="request-list-item-header-uri">
<span class="url">{{ urlStyle(req.getUri()) }}</span>
</span>
<span class="request-list-item-header-timestamp">
{{ icon('android-time') }} {{ req.getTimestamp() }}
</span>
</div>
<div class="request-list-item-header-row">
<span class="request-list-item-header-type">
{{ icon('android-list') }} {{ req.getType() }}
</span>
<span class="request-list-item-header-size">
{{ icon('cube') }} {{ req.getSize() }} b
</span>
<span class="request-list-item-header-ip">
{{ icon('location') }} {{ req.getSourceIp() }}
</span>
</div>
<span class="request-list-item-header-type">
{{ icon('android-list') }} {{ req.getType() }}
</span>
<span class="request-list-item-header-size">
{{ icon('cube') }} {{ req.getSize() }} b
</span>
</a>
<div class="collapse" id="request{{ index }}"