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 %} +
+ + {% elif delta_hours >= 1 %} +
+ + {% else %} +
+ + {% endif %} + {% endwith %} + Last seen + {{server.last_updated|timesince}} + ago. +
+ +| {{server.players_current}} | {{server.players_avg}} | {{server.players_min}} | @@ -43,10 +54,6 @@
|---|
Last updated - {{server.last_updated|timesince}} - ago.
-