Skip to content

Commit

Permalink
feat: add endpoint column to transactions table
Browse files Browse the repository at this point in the history
  • Loading branch information
themightychris committed Sep 12, 2020
1 parent 42dd82e commit f4224ad
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions html-templates/transactions/transactions.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,7 @@
<table>
<thead>
<tr>
<th class="col-endpoint">Endpoint</th>
<th class="col-request">Request</th>
<th class="col-timestamp">Timestamp</th>
<th class="col-response-code"><small>Response</small> Code</th>
Expand All @@ -88,6 +89,7 @@
<tbody>
{foreach item=Request from=$data}
<tr>
<td class="col-endpoint">{contextLink $Request->Endpoint}</td>
<td class="col-request">{$Request->Method} <small>{$Request->Path|default:/}{tif $Request->Query ? "?$Request->Query"|query_string}</small></td>
<td class="col-timestamp">{$Request->Created|date_format:'%Y-%m-%d %H:%M:%S'}</td>
<td class="col-response-code">{$Request->ResponseCode}</td>
Expand Down
10 changes: 7 additions & 3 deletions site-root/sass/site/modules/_tables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -16,20 +16,20 @@
vertical-align: -.2em;
white-space: nowrap;
width: 16px;

// gimme crisp pixels
image-rendering:optimizeSpeed; /* Legal fallback */
image-rendering:-moz-crisp-edges; /* Firefox */
image-rendering:-o-crisp-edges; /* Opera */
image-rendering:-webkit-optimize-contrast; /* Chrome (and eventually Safari) */
image-rendering:crisp-edges; /* CSS3 Proposed */
-ms-interpolation-mode:bicubic; /* IE8+ */

&:hover,
&:focus {
border-color: rgba($text-color, .2);
}

&:active,
&.selected {
background-color: rgba($text-color, .1);
Expand Down Expand Up @@ -58,6 +58,10 @@
text-align: right;
}

.col-endpoint {
width: 200px
}

.col-key {
width: 1%;
}
Expand Down

0 comments on commit f4224ad

Please sign in to comment.