mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Add translations (english)
This commit is contained in:
parent
89ffd40fd1
commit
c1b5dbc090
@ -763,6 +763,7 @@ class PanelHandler(BaseHandler):
|
||||
] = self.controller.management.get_webhooks_by_server(
|
||||
server_id, model=True
|
||||
)
|
||||
page_data["triggers"] = WebhookFactory.get_monitored_events()
|
||||
|
||||
def get_banned_players_html():
|
||||
banned_players = self.controller.servers.get_banned_players(server_id)
|
||||
|
@ -70,9 +70,9 @@
|
||||
<select class="form-control selectpicker show-tick" name="trigger" id="trigger-select" data-icon-base="fas" data-tick-icon="fa-check" multiple data-style="custom-picker">
|
||||
{% for trigger in data['triggers'] %}
|
||||
{% if trigger in data["webhook"]["trigger"] %}
|
||||
<option selected>{{trigger}}</option>
|
||||
<option value="{{trigger}}" selected>{{translate('webhooks', trigger , data['lang'])}}</option>
|
||||
{% else %}
|
||||
<option>{{trigger}}</option>
|
||||
<option value="{{trigger}}">{{translate('webhooks', trigger , data['lang'])}}</option>
|
||||
{% end %}
|
||||
{% end %}
|
||||
</select>
|
||||
|
@ -79,7 +79,13 @@
|
||||
<p>{{webhook.webhook_type}}</p>
|
||||
</td>
|
||||
<td id="{{webhook.trigger}}" class="trigger" style="overflow: scroll; max-width: 30px;">
|
||||
<p style="overflow: scroll;" class="no-scroll">{{webhook.trigger}}</p>
|
||||
<ul>
|
||||
{% for trigger in webhook.trigger.split(",") %}
|
||||
{% if trigger in data["triggers"] %}
|
||||
<li>{{translate('webhooks', trigger , data['lang'])}}</li>
|
||||
{%end%}
|
||||
{%end%}
|
||||
</ul>
|
||||
</td>
|
||||
<td id="{{webhook.enabled}}" class="enabled">
|
||||
<input style="width: 10px !important;" type="checkbox" class="webhook-enabled-toggle" data-webhook-id="{{webhook.id}}" data-webhook-enabled="{{ 'true' if webhook.enabled else 'false' }}">
|
||||
|
@ -641,6 +641,13 @@
|
||||
"areYouSureRun": "Are you sure you want to test this websocket?",
|
||||
"edit": "Edit",
|
||||
"run": "Test Run Webhook",
|
||||
"new": "New Webhook"
|
||||
"new": "New Webhook",
|
||||
"start_server": "Server Started",
|
||||
"stop_server": "Server Stopped",
|
||||
"crash_detected": "Server Crashed",
|
||||
"jar_update": "Server Executable Updated",
|
||||
"backup_server": "Server Backup Completed",
|
||||
"send_command": "Server Command Received",
|
||||
"kill": "Server Killed"
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user