mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2025-01-19 09:45:28 +01:00
Remove unused elements and move get_players to py file instead of html file
This commit is contained in:
parent
37e812187f
commit
b6d6b9c0a4
@ -875,7 +875,6 @@ class PanelHandler(BaseHandler):
|
||||
page_data["schedules"] = HelpersManagement.get_schedules_by_server(
|
||||
server_id
|
||||
)
|
||||
page_data["get_players"] = server_obj.get_server_players()
|
||||
page_data["active_link"] = "schedules"
|
||||
page_data["permissions"] = {
|
||||
"Commands": EnumPermissionsServer.COMMANDS,
|
||||
@ -941,7 +940,6 @@ class PanelHandler(BaseHandler):
|
||||
self.redirect("/panel/error?error=Invalid Schedule ID")
|
||||
return
|
||||
schedule = self.controller.management.get_scheduled_task_model(sch_id)
|
||||
page_data["get_players"] = server_obj.get_server_players()
|
||||
page_data["active_link"] = "schedules"
|
||||
page_data["permissions"] = {
|
||||
"Commands": EnumPermissionsServer.COMMANDS,
|
||||
|
@ -73,7 +73,7 @@
|
||||
</style>
|
||||
<h2>{{ translate('serverPlayerManagement', 'players', data['lang']) }}:</h2>
|
||||
<ul style="list-style: none;padding: 0px;margin: 0px; margin-bottom: 1rem;gap: 1rem;">
|
||||
{% for player in data['get_players']() %}
|
||||
{% for player in data['get_players'] %}
|
||||
<li class="playerItem">
|
||||
<h3>{{ player }}</h3>
|
||||
<div class="buttons">
|
||||
|
Loading…
x
Reference in New Issue
Block a user