Skip to content

Commit 8f77094

Browse files
authored
Add: show invite-code if possible, instead of direct-ips (#32)
1 parent ca6ef5e commit 8f77094

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

webclient/templates/server_entry.html

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ <h1>{% block title %}{{ server["info"]["name"] }} {% endblock %}</h1>
66
<p class="cached">This information is cached till {{ expire }}.</p>
77
<table id="server-info-table">
88
<tbody>
9+
{% if server["server_id"][0] == "+" %}
10+
<tr class="odd">
11+
<th>Invite code:</th>
12+
<td>
13+
{{ server["server_id"] }}
14+
</td>
15+
</tr>
16+
{% else %}
917
<tr class="odd">
1018
<th>Server address(es):</th>
1119
<td>
@@ -18,6 +26,7 @@ <h1>{% block title %}{{ server["info"]["name"] }} {% endblock %}</h1>
1826
{% endif %}
1927
</td>
2028
</tr>
29+
{% endif %}
2130
<tr class="even">
2231
<th>Server version:</th>
2332
<td>

0 commit comments

Comments
 (0)