aboutsummaryrefslogtreecommitdiff
path: root/src/html/admin.html
diff options
context:
space:
mode:
authorMark Powers <markppowers0@gmail.com>2019-03-17 12:07:34 -0400
committerMark Powers <markppowers0@gmail.com>2019-03-17 12:07:34 -0400
commitc30218c68330f1dbcca99983f2f7f7d5274b1832 (patch)
tree24608ea8298ef2964153ad4924f1639424d5fb07 /src/html/admin.html
parent13407c1acdf6a8c8893c78f2c1959e7ac8752b20 (diff)
Fix request logging bug
Diffstat (limited to 'src/html/admin.html')
-rw-r--r--src/html/admin.html10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/html/admin.html b/src/html/admin.html
index a1fcec8..c42ee95 100644
--- a/src/html/admin.html
+++ b/src/html/admin.html
@@ -13,7 +13,7 @@
var feed = new Vue({
el: '#stats',
data: {
- stats: {cookie: [], url: []},
+ stats: {session: [], url: []},
showSessionTable: true,
showUrlTable: true,
},
@@ -60,8 +60,8 @@
</div>
<table class="table session-table" v-if="showSessionTable">
<tr><th>Host</th><th>Total Requests</th></tr>
- <tr v-for="item in stats.cookie">
- <td>{{item.cookie.substring(0,10)}}...</td><td>{{item.c}}</td>
+ <tr v-for="item in stats.session">
+ <td>{{item.session.substring(0,10)}}...</td><td>{{item.c}}</td>
</tr>
</table>
<div>
@@ -71,7 +71,9 @@
<table class="table url-table" v-if="showUrlTable">
<tr><th>Method</th><th>Path</th><th>Total Requests</th></tr>
<tr v-for="item in stats.url">
- <td>{{item.method}}</td><td>{{item.url}}</td><td>{{item.c}}</td>
+ <td>{{item.method}}</td>
+ <td>{{item.url.substring(0, Math.min(30, item.url.length))}}</td>
+ <td>{{item.c}}</td>
</tr>
</table>
</div>