{% for line in appLog %}
@@ -24,4 +24,4 @@
{% endfor %}
{% endif %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/src/View/bootstrap4/menu.twig b/src/View/bootstrap4/menu.twig
index a97a412..b370b32 100644
--- a/src/View/bootstrap4/menu.twig
+++ b/src/View/bootstrap4/menu.twig
@@ -9,49 +9,67 @@
{% else %}
-
- {% endif %}
+
+ {% endif %}
{% if data|length >0 %}
{% include 'table.twig' with {'data': data,
'hiddenDependingOnAttribute': [{'key': 'client_type', 'values': ['1']}],
@@ -49,4 +49,4 @@
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/src/View/bootstrap4/online_info.twig b/src/View/bootstrap4/online_info.twig
index c175aaf..a2cce72 100644
--- a/src/View/bootstrap4/online_info.twig
+++ b/src/View/bootstrap4/online_info.twig
@@ -12,8 +12,8 @@
'uri': '/online/poke/' ~ sid ~ '/' ~ clid,
'uri_method': 'post',
'fields': [
- {'type': 'text', 'key': 'message', 'label': 'online.poke.message'|trans},
- ]
+ {'type': 'text', 'key': 'message', 'label': 'online.poke.message'|trans},
+ ]
},
{
'header_label': 'online.kick'|trans,
@@ -21,8 +21,8 @@
'uri': '/online/kick/' ~ sid ~ '/' ~ clid,
'uri_method': 'post',
'fields': [
- {'type': 'text', 'key': 'reason', 'label': 'online.kick.reason'|trans},
- ]
+ {'type': 'text', 'key': 'reason', 'label': 'online.kick.reason'|trans},
+ ]
},
{
'header_label': 'online.ban'|trans,
@@ -30,9 +30,9 @@
'uri': '/online/ban/' ~ sid ~ '/' ~ clid,
'uri_method': 'post',
'fields': [
- {'type': 'text', 'key': 'reason', 'label': 'online.ban.reason'|trans},
- {'type': 'number', 'key': 'time', 'label': 'online.ban.time'|trans}
- ]
+ {'type': 'text', 'key': 'reason', 'label': 'online.ban.reason'|trans},
+ {'type': 'number', 'key': 'time', 'label': 'online.ban.time'|trans}
+ ]
},
{
'header_label': 'online.move'|trans,
@@ -40,9 +40,9 @@
'uri': '/online/move/' ~ sid ~ '/' ~ clid,
'uri_method': 'post',
'fields': [
- {'type': 'select', 'key': 'channel', 'options': channels,'label': 'online.move.channel'|trans},
- {'type': 'text', 'key': 'channel_password', 'label': 'online.move.channel_password'|trans}
- ]
+ {'type': 'select', 'key': 'channel', 'options': channels,'label': 'online.move.channel'|trans},
+ {'type': 'text', 'key': 'channel_password', 'label': 'online.move.channel_password'|trans}
+ ]
},
{
'header_label': 'online.send'|trans,
@@ -50,8 +50,8 @@
'uri': '/online/send/' ~ sid ~ '/' ~ clid,
'uri_method': 'post',
'fields': [
- {'type': 'text', 'key': 'message', 'label': 'online.send.message'|trans},
- ]
+ {'type': 'text', 'key': 'message', 'label': 'online.send.message'|trans},
+ ]
}
]
} %}
@@ -78,4 +78,4 @@
{'key': 'connection_bytes_sent_total', 'apply': 'file'},
{'key': 'connection_bytes_received_total', 'apply': 'file'},
]} %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/src/View/bootstrap4/passwords.twig b/src/View/bootstrap4/passwords.twig
index 969b5be..672e7b8 100644
--- a/src/View/bootstrap4/passwords.twig
+++ b/src/View/bootstrap4/passwords.twig
@@ -13,12 +13,12 @@
'uri': '/passwords/add/' ~ sid,
'uri_method': 'post',
'fields': [
- {'type': 'text', 'key': 'password', 'label': 'passwords.add.password'|trans},
- {'type': 'number', 'key': 'duration', 'label': 'passwords.add.duration'|trans},
- {'type': 'text', 'key': 'description', 'label': 'passwords.add.description'|trans},
- {'type': 'select', 'key': 'channel', 'options': channels,'label': 'passwords.add.channel'|trans},
- {'type': 'text', 'key': 'channel_password', 'label': 'passwords.add.channel_password'|trans},
- ]
+ {'type': 'text', 'key': 'password', 'label': 'passwords.add.password'|trans},
+ {'type': 'number', 'key': 'duration', 'label': 'passwords.add.duration'|trans},
+ {'type': 'text', 'key': 'description', 'label': 'passwords.add.description'|trans},
+ {'type': 'select', 'key': 'channel', 'options': channels,'label': 'passwords.add.channel'|trans},
+ {'type': 'text', 'key': 'channel_password', 'label': 'passwords.add.channel_password'|trans},
+ ]
},
]
} %}
@@ -49,4 +49,4 @@
]
} %}
{% endif %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/src/View/bootstrap4/server_info.twig b/src/View/bootstrap4/server_info.twig
index 9602422..07193f1 100644
--- a/src/View/bootstrap4/server_info.twig
+++ b/src/View/bootstrap4/server_info.twig
@@ -11,15 +11,15 @@
{% trans %}server_info.h.actions{% endtrans %}
{% include 'form.twig' with {
'fields': [
- {
- 'header_label': 'server_info.send'|trans,
- 'label': '
',
- 'uri': '/servers/send/' ~ sid,
- 'uri_method': 'post',
- 'fields': [
+ {
+ 'header_label': 'server_info.send'|trans,
+ 'label': '
',
+ 'uri': '/servers/send/' ~ sid,
+ 'uri_method': 'post',
+ 'fields': [
{'type': 'text', 'key': 'message', 'label': 'server_info.send.message'|trans},
]
- }]
+ }]
} %}
{% trans %}server_info.h.details{% endtrans %}
@@ -90,4 +90,4 @@
]
} %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/src/View/bootstrap4/servergroup_info.twig b/src/View/bootstrap4/servergroup_info.twig
index 9293116..23e0173 100644
--- a/src/View/bootstrap4/servergroup_info.twig
+++ b/src/View/bootstrap4/servergroup_info.twig
@@ -12,8 +12,8 @@
'uri': '/servergroups/add/' ~ sid ~ '/' ~ sgid,
'uri_method': 'post',
'fields': [
- {'type': 'text', 'key': 'cldbid', 'label': 'servergroup_info.add.cldbid'|trans},
- ]
+ {'type': 'text', 'key': 'cldbid', 'label': 'servergroup_info.add.cldbid'|trans},
+ ]
}
]
} %}
@@ -41,4 +41,4 @@
{% include 'table.twig' with {'data': permissions} %}
{% endif %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/src/View/bootstrap4/servers.twig b/src/View/bootstrap4/servers.twig
index c5f7ead..eef2873 100644
--- a/src/View/bootstrap4/servers.twig
+++ b/src/View/bootstrap4/servers.twig
@@ -5,42 +5,42 @@
{% trans %}servers.h.details{% endtrans %}
{% if data|length > 0 %}
- {% include 'table.twig' with {'data': data,
- 'filters': [
- {'key': 'virtualserver_uptime', 'apply': 'timeInSeconds'},
- ],
- 'links': [
- {'key': 'virtualserver_port', 'uri': '/servers', 'uri_param': 'virtualserver_id'},
- {'key': 'virtualserver_clientsonline', 'uri': '/online', 'uri_param': 'virtualserver_id'}
- ],
- 'hiddenColumns': ['virtualserver_id', 'virtualserver_queryclientsonline', 'virtualserver_autostart', 'virtualserver_machine_id'],
- 'additional_links': [
- {
- 'header_label': 'servers.select'|trans,
- 'label': '
',
- 'uri': '/servers/select',
- 'uri_param': 'virtualserver_id'
- },
- {
- 'header_label': 'servers.start'|trans,
- 'label': '
',
- 'uri': '/servers/start',
- 'uri_param': 'virtualserver_id'
- },
- {
- 'header_label': 'servers.stop'|trans,
- 'label': '
',
- 'uri': '/servers/stop',
- 'uri_param': 'virtualserver_id'
- },
- {
- 'header_label': 'servers.delete'|trans,
- 'label': '
',
- 'uri': '/servers/delete',
- 'uri_param': 'virtualserver_id'
- }
- ],
- } %}
+ {% include 'table.twig' with {'data': data,
+ 'filters': [
+ {'key': 'virtualserver_uptime', 'apply': 'timeInSeconds'},
+ ],
+ 'links': [
+ {'key': 'virtualserver_port', 'uri': '/servers', 'uri_param': 'virtualserver_id'},
+ {'key': 'virtualserver_clientsonline', 'uri': '/online', 'uri_param': 'virtualserver_id'}
+ ],
+ 'hiddenColumns': ['virtualserver_id', 'virtualserver_queryclientsonline', 'virtualserver_autostart', 'virtualserver_machine_id'],
+ 'additional_links': [
+ {
+ 'header_label': 'servers.select'|trans,
+ 'label': '
',
+ 'uri': '/servers/select',
+ 'uri_param': 'virtualserver_id'
+ },
+ {
+ 'header_label': 'servers.start'|trans,
+ 'label': '
',
+ 'uri': '/servers/start',
+ 'uri_param': 'virtualserver_id'
+ },
+ {
+ 'header_label': 'servers.stop'|trans,
+ 'label': '
',
+ 'uri': '/servers/stop',
+ 'uri_param': 'virtualserver_id'
+ },
+ {
+ 'header_label': 'servers.delete'|trans,
+ 'label': '
',
+ 'uri': '/servers/delete',
+ 'uri_param': 'virtualserver_id'
+ }
+ ],
+ } %}
{% else %}
{% include 'no_entities.twig' %}
{% endif %}
@@ -54,11 +54,11 @@
'uri': '/servers/create',
'uri_method': 'post',
'fields': [
- {'type': 'text', 'key': 'VIRTUALSERVER_NAME', 'label': 'server_create.VIRTUALSERVER_NAME'|trans},
- {'type': 'text', 'key': 'VIRTUALSERVER_PASSWORD', 'label': 'server_create.VIRTUALSERVER_PASSWORD'|trans},
- {'type': 'number', 'key': 'VIRTUALSERVER_PORT', 'label': 'server_create.VIRTUALSERVER_PORT'|trans},
- {'type': 'number', 'key': 'VIRTUALSERVER_MAXCLIENTS', 'label': 'server_create.VIRTUALSERVER_MAXCLIENTS'|trans},
- ]
+ {'type': 'text', 'key': 'VIRTUALSERVER_NAME', 'label': 'server_create.VIRTUALSERVER_NAME'|trans},
+ {'type': 'text', 'key': 'VIRTUALSERVER_PASSWORD', 'label': 'server_create.VIRTUALSERVER_PASSWORD'|trans},
+ {'type': 'number', 'key': 'VIRTUALSERVER_PORT', 'label': 'server_create.VIRTUALSERVER_PORT'|trans},
+ {'type': 'number', 'key': 'VIRTUALSERVER_MAXCLIENTS', 'label': 'server_create.VIRTUALSERVER_MAXCLIENTS'|trans},
+ ]
}]
} %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}
diff --git a/src/View/bootstrap4/snapshots.twig b/src/View/bootstrap4/snapshots.twig
index e50c6cc..afc4f0d 100644
--- a/src/View/bootstrap4/snapshots.twig
+++ b/src/View/bootstrap4/snapshots.twig
@@ -11,21 +11,21 @@
{% include 'table.twig' with {'data': data,
- 'additional_links': [
- {
- 'header_label': 'snapshots.deploy'|trans,
- 'label': '
',
- 'uri': '/snapshots/deploy/' ~ sid,
- 'uri_param': 'name'
- },
- {
- 'header_label': 'snapshots.delete'|trans,
- 'label': '
',
- 'uri': '/snapshots/delete/' ~ sid,
- 'uri_param': 'name'
- }
- ],
+ 'additional_links': [
+ {
+ 'header_label': 'snapshots.deploy'|trans,
+ 'label': '
',
+ 'uri': '/snapshots/deploy/' ~ sid,
+ 'uri_param': 'name'
+ },
+ {
+ 'header_label': 'snapshots.delete'|trans,
+ 'label': '
',
+ 'uri': '/snapshots/delete/' ~ sid,
+ 'uri_param': 'name'
+ }
+ ],
} %}
{% endif %}
-{% endblock %}
\ No newline at end of file
+{% endblock %}