Skip to content

Commit

Permalink
Merge pull request #193 from zediious/0.5.2.3
Browse files Browse the repository at this point in the history
Changes for 0.5.2.3
  • Loading branch information
zediious authored Jun 23, 2024
2 parents e3715fc + b645ecf commit 1d0b78d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 18 deletions.
6 changes: 3 additions & 3 deletions raptorWeb/templates/gameservers/player_list.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

{% if server_query_enabled %}

<div id='player_count_modal' hx-swap-oob="innerHTML: #player_count_modal">
<div class="modal-dialog modal-sm">
<div hx-swap-oob="innerHTML: #playerNames">
<div class="modal-dialog modal-md">
<div class="modal-content bg-dark text-white">
<button class="btn-close btn-close-white p-3 mb-0 fs-6" data-bs-dismiss="modal" aria-label="Close"></button>
<div class="modal-body pt-0">
Expand All @@ -16,7 +16,7 @@ <h5 class="fs-4 text-center text-decoration-underline mb-3">{{ server.modpack_na
<span class="fs-6 d-block text-center">
{% for player in object_list %}
{% if player.server == server %}
{{ player.name }}{% if forloop.counter0 != 0 %},{% endif %}
{{ player.name }}{% if not forloop.last %},{% endif %}
{% endif %}
{% endfor %}
</span>
Expand Down
18 changes: 3 additions & 15 deletions raptorWeb/templates/raptormc/components/serverbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,31 +15,19 @@
{% if server_query_enabled %}
<div class="modal fade" id="playerNames" tabindex="-1" aria-labelledby="Online Player Names" aria-hidden="true">
<div id='player_count_modal'>
<div class="modal-dialog modal-sm">
<div class="modal-dialog modal-md">
<div class="modal-content bg-dark text-white">
<button class="btn-close btn-close-white p-3 mb-0 fs-6" data-bs-dismiss="modal" aria-label="Close"></button>
<div class="modal-body pt-0">
<div id='current_player_list'>
{% for server in server_list reversed %}
{% if forloop.counter0 != 0 %}
<hr>
{% endif %}
<h5 class="fs-4 text-center text-decoration-underline mb-3">{{ server.modpack_name}}</h5>
<span class="fs-6 d-block text-center">
{% for player in object_list %}
{% if player.server == server %}
{{ player.name }}{% if forloop.counter0 != 0 %},{% endif %}
{% endif %}
{% endfor %}
</span>
{% endfor %}
<img class="w-100 p-5" src="{% static 'image/tail-spin.svg' %}" alt="...">
</div>

</div>
</div>
</div>
</div>
</div>

<header class="row m-2 mt-0 w-100">
<section id="playerCountBox"
class="col-lg col-12 fs-2 mt-lg-2 mt-4 d-flex align-items-center flex-column"
Expand Down

0 comments on commit 1d0b78d

Please sign in to comment.