diff options
Diffstat (limited to 'templates/killstatistics.tmpl')
| -rw-r--r-- | templates/killstatistics.tmpl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/templates/killstatistics.tmpl b/templates/killstatistics.tmpl new file mode 100644 index 0000000..451059e --- /dev/null +++ b/templates/killstatistics.tmpl @@ -0,0 +1,28 @@ +{{template "_header.tmpl" .Common}} + <div class="box"> + {{with .World}} + <h1>Kill Statistics - <a href="/world?name={{.Name}}">{{.Name}}</a></h1> + {{else}} + <h1>Kill Statistics</h1> + {{end}} + + {{if .KillStatistics}} + <table> + <tr> + <th>Creature</th> + <th>Times Killed</th> + <th>Players Killed</th> + </tr> + {{range .KillStatistics}} + <tr> + <td>{{.RaceName}}</td> + <td>{{.TimesKilled}}</td> + <td>{{.PlayersKilled}}</td> + </tr> + {{end}} + </table> + {{else}} + <p>There are no kill statistics.</p> + {{end}} + </div> +{{template "_footer.tmpl" .Common}}
\ No newline at end of file |
