diff --git a/src/pages/game.cpp b/src/pages/game.cpp index 922d5fb..e1f0140 100644 --- a/src/pages/game.cpp +++ b/src/pages/game.cpp @@ -31,6 +31,7 @@ void write_html_game(cppdb::session& database, const OastatGame& game, const std game_tpl.SetValue("GENERATION_DATE", timestamp_now_as_string(database)); game_tpl.SetValue("GAME_NUMBER", std::to_string(game.gamenumber)); game_tpl.SetValue("GAME_MAP", game.mapname); + game_tpl.SetValue("GAME_GAMETYPE", getGametypeName(game.gametype)); game_tpl.SetValue("GAME_SERVERNAME", game.servername); std::vector> scores; diff --git a/templates/game.tpl b/templates/game.tpl index 886ea1c..a911240 100644 --- a/templates/game.tpl +++ b/templates/game.tpl @@ -41,7 +41,7 @@
OpenArena Stats - Game {{GAME_NUMBER}}
- {{GAME_MAP}} at {{GAME_SERVERNAME}} + {{GAME_GAMETYPE}} on {{GAME_MAP}} at {{GAME_SERVERNAME}}
{{GAME_MAP}}