diff options
Diffstat (limited to 'templates/world_list.tmpl')
| -rw-r--r-- | templates/world_list.tmpl | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/templates/world_list.tmpl b/templates/world_list.tmpl new file mode 100644 index 0000000..de9786c --- /dev/null +++ b/templates/world_list.tmpl @@ -0,0 +1,23 @@ +{{template "_header.tmpl" .Common}} + <div class="box"> + <h1>Worlds</h1> + {{if .Worlds}} + <table> + <tr> + <th>Name</th> + <th>Type</th> + <th>Players Online</th> + </tr> + {{range .Worlds}} + <tr> + <td><a href="/world?name={{.Name}}">{{.Name}}</a></td> + <td>{{.Type}}</td> + <td>{{.NumPlayers}}</td> + </tr> + {{end}} + </table> + {{else}} + <p>Something went wrong when loading world data. Wait a few moments and try again.</p> + {{end}} + </div> +{{template "_footer.tmpl" .Common}}
\ No newline at end of file |
