diff options
Diffstat (limited to 'hosted')
-rw-r--r-- | hosted/view.html | 39 |
1 files changed, 28 insertions, 11 deletions
diff --git a/hosted/view.html b/hosted/view.html index ac8b411..1f72e9e 100644 --- a/hosted/view.html +++ b/hosted/view.html @@ -1,3 +1,4 @@ +{{define "view"}} <!DOCTYPE html> <html> <head> @@ -35,17 +36,33 @@ </div> </nav> <main class="container" role="main"> - <div class="jumbotron"> - <h1 class="display-4">challenges</h1> - <h3>You can find a list of the challenges below</h3> - <p>You can create, view and edit challenges there</p> - </div> - - <div class="jumbotron"> - <h2 class="display-4">challenges</h2> - <h3>You can find a list of the challenges below</h3> - <p>You can create, view and edit challenges there</p> - </div> + <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> </body> </html> +{{end}} |