Skip to content

Commit 1b2e701

Browse files
authored
Update overview.tpl
This updated multiple issues with the client screen. This adds a button to open the Instance ID in a new tab, It shows the Endpoints in a URL format and allows it to be copied to clipboard, new wording has been provided to ensure customers Start the Instance before trying to access it.
1 parent 046b4e7 commit 1b2e701

1 file changed

Lines changed: 30 additions & 16 deletions

File tree

modules/servers/AMP/templates/overview.tpl

Lines changed: 30 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -29,36 +29,50 @@
2929

3030

3131
<div class="panel panel-primary">
32-
<div class="panel-heading">Application URL</div>
32+
<div class="panel-heading"><h4>Game Server Control Panel</h4></div>
3333
<div class="panel-body">
34+
<p>You can access the link below to log in and manage your Game Server, which includes controlling settings, plugins, mods, backups and much more.</p>
35+
<p><b>Tip:</b> Make sure your Instance is Runnings before trying to access this link</p>
36+
<button style="margin-left: 16px; " onclick="window.open('{$appUrl}/?instance={$instanceId}', '_blank')" class="btn btn-default">Open Game Server Control Panel</button>
37+
<p>&nbsp;</p>
38+
<p>Alternatively you can Bookmark the below link for quick refference</p>
3439
<a href="{$appUrl}/?instance={$instanceId}" target="_blank">{$appUrl}/?instance={$instanceId}</a>
3540
</div>
3641
</div>
3742

38-
{if !empty($endpoints) }
43+
{if !empty($endpoints)}
3944
<div class="panel panel-primary">
40-
<div class="panel-heading">Endpoints</div>
45+
<div class="panel-heading"><h4>How to connect to your game</h4></div>
4146
<div class="panel-body" >
4247

4348
{foreach $endpoints as $e}
44-
<h4>{$e['DisplayName']}</h4>{if !empty($e['Uri'])}
45-
<a target="_blank" href="{$e['Uri']}" style="vertical-align: middle;" target="_blank">{$e['Endpoint']}</a>
46-
{else}{$e['Endpoint']}{/if}
47-
48-
<button style="margin-left: 16px;" onclick="copyToClipboard('{$e['Endpoint']}')" class="btn btn-default" >Copy to clipboard</button>
49-
50-
<hr>
51-
49+
<h6>{$e['DisplayName']}</h6>
50+
{assign var='cleanAppUrl' value=$appUrl|replace:'https://':''|replace:'http://':''}
51+
{if $e['Endpoint']}
52+
{assign var='parts' value=":"|explode:$e['Endpoint']}
53+
<a target="_blank" href="{$cleanAppUrl}:{$parts[1]}" style="vertical-align: middle;" target="_blank">{$cleanAppUrl}:{$parts[1]}</a>
54+
{else}
55+
{$e['Endpoint']}
56+
{/if}
57+
58+
<button style="margin-left: 16px;" onclick="copyToClipboard('{$cleanAppUrl}:{$parts[1]}')" class="btn btn-default">Copy to clipboard</button>
59+
60+
<hr>
5261
{/foreach}
62+
63+
</div>
5364
</div>
54-
55-
</div>
5665
{/if}
66+
67+
68+
69+
70+
5771
<div class="panel panel-default">
58-
<div class="panel-heading">Application Management</div>
72+
<div class="panel-heading"><h4>Application Management</h4></div>
5973
<div class="panel-body">
6074

61-
<h2>Status: <span id="status"></span></h2>
75+
<h5>Status: <span id="status"></span></h5>
6276
<button id="start" class="btn btn-default" data-toggle="modal" data-target="#confirmModal">Start Instance</button>
6377
<button id="stop" class="btn btn-default" data-toggle="modal" data-target="#confirmModal">Stop Instance</button>
6478
<button id="restart" class="btn btn-default" data-toggle="modal" data-target="#confirmModal">Restart Instance</button>
@@ -93,7 +107,7 @@ top:40px;
93107
right: 50px;
94108
display: inline-block;
95109
width: 50px;
96-
height: 50px;
110+
height: 20px;
97111
border: 3px solid rgba(255,255,255,.3);
98112
border-radius: 50%;
99113
border-top-color: rgb(0, 0, 0);

0 commit comments

Comments
 (0)