diff options
Diffstat (limited to 'src/html')
-rw-r--r-- | src/html/admin.html | 14 | ||||
-rw-r--r-- | src/html/index.html | 17 |
2 files changed, 14 insertions, 17 deletions
diff --git a/src/html/admin.html b/src/html/admin.html index 0f98eea..a1fcec8 100644 --- a/src/html/admin.html +++ b/src/html/admin.html @@ -13,8 +13,8 @@ var feed = new Vue({ el: '#stats', data: { - stats: {ip: [], url: []}, - showIpTable: true, + stats: {cookie: [], url: []}, + showSessionTable: true, showUrlTable: true, }, created() { @@ -55,13 +55,13 @@ <div id="stats"> <h1>Stats</h1> <div> - <input type="checkbox" id="showIp" v-model="showIpTable"> - <label for="showIp">Show IP Stats</label> + <input type="checkbox" id="showSession" v-model="showSessionTable"> + <label for="showSession">Show Session Stats</label> </div> - <table class="table ip-table" v-if="showIpTable"> + <table class="table session-table" v-if="showSessionTable"> <tr><th>Host</th><th>Total Requests</th></tr> - <tr v-for="item in stats.ip"> - <td>{{item.ip}}</td><td>{{item.c}}</td> + <tr v-for="item in stats.cookie"> + <td>{{item.cookie.substring(0,10)}}...</td><td>{{item.c}}</td> </tr> </table> <div> diff --git a/src/html/index.html b/src/html/index.html index 73ed147..f004784 100644 --- a/src/html/index.html +++ b/src/html/index.html @@ -28,17 +28,14 @@ <body> <h1>Welcome to Mark's Kitchen</h1> - <div class="main-page"> - <nav class="float-left sidebar"> - <ul> - <li><a href="bread" class="btn btn-primary">Bread</a></li> - <li><a href="blog" class="btn btn-primary">Blog</a></li> - <li><a href="essay" class="btn btn-primary">Essays</a></li> - </ul> - </nav> + <nav class="titlebar"> + <a href="bread" class="btn btn-primary">Bread</a> + <a href="blog" class="btn btn-primary">Blog</a> + <a href="essay" class="btn btn-primary">Essays</a> + </nav> + + <div id="feed"></div> - <div id="feed"></div> - </div> <footer> <div>Mark Powers</div> </footer> |