diff --git a/src/static/css/style.css b/src/static/css/style.css index f2ad68c..0043eee 100644 --- a/src/static/css/style.css +++ b/src/static/css/style.css @@ -63,6 +63,21 @@ body { padding-bottom: 40px; } +#server_status { + padding: 8px; +} + +.status_online { +} + +.status_unknown { + background-color: #FCF8E3; +} + +.status_offline { + background-color: #F2DEDE; +} + #player_stats th{ width: 25%; } diff --git a/src/templates/gameservers/server_detail.html b/src/templates/gameservers/server_detail.html index 45f079a..8111a85 100644 --- a/src/templates/gameservers/server_detail.html +++ b/src/templates/gameservers/server_detail.html @@ -16,6 +16,25 @@ {% endif %} +

Status

+ {% with delta_hours=server.last_updated|hours_since_now %} + {% if delta_hours > 24 %} +

+ + {% elif delta_hours >= 1 %} +

+ + {% else %} +

+ + {% endif %} + {% endwith %} + Last seen + {{server.last_updated|timesince}} + ago. +

+ +

Players

@@ -27,15 +46,7 @@ - {% with delta_hours=server.last_updated|hours_since_now %} - {% if delta_hours > 24 %} - - {% elif delta_hours >= 1 %} - - {% else %} - {% endif %} - {% endwith %} @@ -43,10 +54,6 @@
{{server.players_current}} {{server.players_avg}} {{server.players_min}}
-

Last updated - {{server.last_updated|timesince}} - ago.

-

Weekly history

Average per day