|
|
|
@ -457,6 +457,42 @@ else if (is_null($user->public))
@@ -457,6 +457,42 @@ else if (is_null($user->public))
|
|
|
|
|
<?php } ?> |
|
|
|
|
<?php } ?> |
|
|
|
|
</tr> |
|
|
|
|
<tr> |
|
|
|
|
<td class="padding-y-8 padding-b-8 border-bottom-default text-right" colspan="2"> |
|
|
|
|
<?php echo _('Peers') ?> |
|
|
|
|
<a href="https://github.com/YGGverse/YGGtracker/blob/main/src/config/peers.json" title="<?php echo _('Add') ?>"> |
|
|
|
|
<sub class="margin-l-4"> |
|
|
|
|
<svg class="width-13px" xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-plus-circle" viewBox="0 0 16 16"> |
|
|
|
|
<path d="M8 15A7 7 0 1 1 8 1a7 7 0 0 1 0 14zm0 1A8 8 0 1 0 8 0a8 8 0 0 0 0 16z"/> |
|
|
|
|
<path d="M8 4a.5.5 0 0 1 .5.5v3h3a.5.5 0 0 1 0 1h-3v3a.5.5 0 0 1-1 0v-3h-3a.5.5 0 0 1 0-1h3v-3A.5.5 0 0 1 8 4z"/> |
|
|
|
|
</svg> |
|
|
|
|
</sub> |
|
|
|
|
</a> |
|
|
|
|
</td> |
|
|
|
|
<?php foreach (json_decode(file_get_contents(__DIR__ . '/../config/peers.json')) as $i => $peer) { ?> |
|
|
|
|
<tr> |
|
|
|
|
<td class="padding-t-16"><?php echo sprintf('#%s', $i + 1) ?></td> |
|
|
|
|
</tr> |
|
|
|
|
<?php foreach ($peer as $key => $value) { ?> |
|
|
|
|
<?php if ($value) { ?> |
|
|
|
|
<tr> |
|
|
|
|
<td> |
|
|
|
|
<span class="margin-l-16"><?php echo $key ?></span> |
|
|
|
|
</td> |
|
|
|
|
<?php if ($key == 'description') { ?> |
|
|
|
|
<td><?php echo $value ?></td> |
|
|
|
|
<?php } else { ?> |
|
|
|
|
<td class="font-size-10"> |
|
|
|
|
<a href="<?php echo $value ?>"> |
|
|
|
|
<?php echo $value ?> |
|
|
|
|
</a> |
|
|
|
|
</td> |
|
|
|
|
<?php } ?> |
|
|
|
|
</tr> |
|
|
|
|
<?php } ?> |
|
|
|
|
<?php } ?> |
|
|
|
|
<?php } ?> |
|
|
|
|
</tr> |
|
|
|
|
</tbody> |
|
|
|
|
</table> |
|
|
|
|
<?php } else { ?> |
|
|
|
|