diff options
-rw-r--r-- | hosted/view.html | 59 |
1 files changed, 31 insertions, 28 deletions
diff --git a/hosted/view.html b/hosted/view.html index 1f72e9e..28818f9 100644 --- a/hosted/view.html +++ b/hosted/view.html @@ -35,34 +35,37 @@ </div> </div> </nav> - <main class="container" role="main"> - <table class="table"> - <thead> - <tr> - <th scope="col">Name</th> - <th scope="col">Description</th> - <th scope="col">Flag</th> - <th scope="col">Container</th> - <th scope="col">Category</th> - <th scope="col">Points</th> - <th scope="col">Static</th> - </tr> - </thead> - <tbody> - {{range .Challenge}} - <tr> - <th scope="row">{{.Name}}</th> - <td>{{.Description}}</td> - <td>{{.Flag}}</td> - <td>{{.Container}}</td> - <td>{{.Category}}</td> - <td>{{.Points}}</td> - <td>{{.Static}}</td> - </tr> - {{end}} - </tbody> - </table> - </main> + <div class="table-responsive" style="padding: 20px;"> + <table class="table table-sm"> + <thead> + <tr> + <th scope="col">UUID</th> + <th scope="col">Name</th> + <th scope="col">Description</th> + <th scope="col">Flag</th> + <th scope="col">Container</th> + <th scope="col">Category</th> + <th scope="col">Points</th> + <th scope="col">Static</th> + </tr> + </thead> + <tbody> + {{range .Challenge}} + <tr> + <td>{{.UUID}}</td> + <td>{{.Name}}</th> + <td>{{.Description}}</td> + <td>{{.Flag}}</td> + <td>{{.Container}}</td> + <td>{{.Category}}</td> + <td>{{.Points}}</td> + <td>{{.Static}}</td> + <td><a href="/edit?uuid={{.UUID}}" class="btn btn-primary" role="button">Edit</a></td> + </tr> + {{end}} + </tbody> + </table> + </div> </body> </html> {{end}} |