Format the Nethack score with commas
This commit is contained in:
parent
553b9873d6
commit
50be6f8f91
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@
|
||||||
<table class="stats">
|
<table class="stats">
|
||||||
<tr>
|
<tr>
|
||||||
<td class="began">Began {{ time.Format "January 2, 2006" .start_date }}</td>
|
<td class="began">Began {{ time.Format "January 2, 2006" .start_date }}</td>
|
||||||
<td class="score">{{ .score }} points</td>
|
<td class="score">{{ .score | lang.FormatNumber 0 }} points</td>
|
||||||
<td class="level">Level {{ .character.max_level }}</td>
|
<td class="level">Level {{ .character.max_level }}</td>
|
||||||
<td class="hp">{{ cond (gt .character.hp.n 0) (printf "%s / %s" .character.hp.n .character.hp.max)
|
<td class="hp">{{ cond (gt .character.hp.n 0) (printf "%s / %s" .character.hp.n .character.hp.max)
|
||||||
.character.hp.max }} hp</td>
|
.character.hp.max }} hp</td>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue