Pratyush Desai 5da520bc9d
Initial Commit
Base Functionality added. Adding a Server with
the image port  ip and other params specified
will spawn a container and one can manage the
lifecycle in the admin panel and the game server
detail view updates based on container status.

Signed-off-by: Pratyush Desai <pratyush.desai@liberta.casa>
2025-01-20 05:02:25 +05:30

50 lines
1.4 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Active Servers for {{ game.name }}</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}
h1 {
color: #007BFF;
}
.server-box {
border: 2px solid #007BFF;
border-radius: 5px;
padding: 10px;
margin-bottom: 15px;
box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1);
}
legend {
font-weight: bold;
color: #007BFF;
}
.server-details {
margin-left: 15px;
}
</style>
</head>
<body>
<h1>Active Servers for {{ game.name }}</h1>
<h3>Genre: {{ game.genre }}</h3>
{% if servers %}
{% for server in servers %}
<fieldset class="server-box">
<legend>Server: {{ game.name }}</legend>
<div class="server-details">
<p><strong>IP Address:</strong> {{ server.ip_address }}</p>
<p><strong>Port:</strong> {{ server.port }}</p>
<p><strong>Status:</strong> Online</p>
</div>
</fieldset>
{% endfor %}
{% else %}
<p>No active servers found for this game.</p>
{% endif %}
</body>
</html>