aboutsummaryrefslogtreecommitdiff
path: root/templates
diff options
context:
space:
mode:
Diffstat (limited to 'templates')
-rw-r--r--templates/character_create.tmpl2
-rw-r--r--templates/character_profile.tmpl2
-rw-r--r--templates/world_info.tmpl17
-rw-r--r--templates/world_list.tmpl6
4 files changed, 22 insertions, 5 deletions
diff --git a/templates/character_create.tmpl b/templates/character_create.tmpl
index c243f2d..1a235dd 100644
--- a/templates/character_create.tmpl
+++ b/templates/character_create.tmpl
@@ -1,6 +1,6 @@
{{template "_header.tmpl" .Common}}
<form class="box" action="/character/create" method="POST">
- <h1>Create Account</h1>
+ <h1>Create Character</h1>
<label for="character_name">NAME</label>
<input id="character_name" type="text" name="name"/>
diff --git a/templates/character_profile.tmpl b/templates/character_profile.tmpl
index 824e908..2711e03 100644
--- a/templates/character_profile.tmpl
+++ b/templates/character_profile.tmpl
@@ -35,7 +35,7 @@
</tr>
<tr>
<th>Last Login:</th>
- <td>{{.LastLogin}}</td>
+ <td>{{FormatTimestamp .LastLogin}}</td>
</tr>
<tr>
<th>Account Status:</th>
diff --git a/templates/world_info.tmpl b/templates/world_info.tmpl
index 578a0f7..353b674 100644
--- a/templates/world_info.tmpl
+++ b/templates/world_info.tmpl
@@ -16,13 +16,24 @@
<td>{{.NumPlayers}}</td>
</tr>
<tr>
- <th>Online Record:</th>
- {{if .OnlineRecord}}
- <td>{{.OnlineRecord}} players (on {{.OnlineRecordTime}})</td>
+ <th>Online Peak:</th>
+ {{if eq .OnlinePeak 1}}
+ <td>{{.OnlinePeak}} player (on {{FormatTimestamp .OnlinePeakTimestamp}})</td>
+ {{else if gt .OnlinePeak 1}}
+ <td>{{.OnlinePeak}} players (on {{FormatTimestamp .OnlinePeakTimestamp}})</td>
{{else}}
<td>None</td>
{{end}}
</tr>
+ <tr>
+ {{if gt .LastStartup .LastShutdown}}
+ <th>Uptime:</th>
+ <td>{{FormatDurationSince .LastStartup}}</td>
+ {{else}}
+ <th>Downtime:</th>
+ <td style="color: #A11;">{{FormatDurationSince .LastShutdown}}</td>
+ {{end}}
+ </tr>
</table>
<a class="button" href="/killstatistics?world={{.Name}}">Kill Statistics</a>
{{else}}
diff --git a/templates/world_list.tmpl b/templates/world_list.tmpl
index de9786c..07494b6 100644
--- a/templates/world_list.tmpl
+++ b/templates/world_list.tmpl
@@ -7,12 +7,18 @@
<th>Name</th>
<th>Type</th>
<th>Players Online</th>
+ <th>Status</th>
</tr>
{{range .Worlds}}
<tr>
<td><a href="/world?name={{.Name}}">{{.Name}}</a></td>
<td>{{.Type}}</td>
<td>{{.NumPlayers}}</td>
+ {{if gt .LastStartup .LastShutdown}}
+ <td style="color: #1A1;">Online</td>
+ {{else}}
+ <td style="color: #A11;">Offline</td>
+ {{end}}
</tr>
{{end}}
</table>