mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Refactor jquery-ui to vendors
This commit is contained in:
parent
e22cdc3da8
commit
e561e112d4
@ -141,18 +141,18 @@
|
|||||||
<td draggable="false" id="controls{{server['server_data']['server_id']}}" class="actions_serverlist">
|
<td draggable="false" id="controls{{server['server_data']['server_id']}}" class="actions_serverlist">
|
||||||
{% if server['user_command_permission'] %}
|
{% if server['user_command_permission'] %}
|
||||||
{% if server['stats']['running'] %}
|
{% if server['stats']['running'] %}
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="stop_button"
|
<a data-id="{{server['server_data']['server_id']}}" class="stop_button" data-toggle="tooltip"
|
||||||
data-toggle="tooltip" title="{{ translate('dashboard', 'stop' , data['lang']) }}">
|
title="{{ translate('dashboard', 'stop' , data['lang']) }}">
|
||||||
<i class="fas fa-stop"></i>
|
<i class="fas fa-stop"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="restart_button"
|
<a data-id="{{server['server_data']['server_id']}}" class="restart_button" data-toggle="tooltip"
|
||||||
data-toggle="tooltip" title="{{ translate('dashboard', 'restart' , data['lang']) }}">
|
title="{{ translate('dashboard', 'restart' , data['lang']) }}">
|
||||||
<i class="fas fa-sync"></i>
|
<i class="fas fa-sync"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="kill_button"
|
<a data-id="{{server['server_data']['server_id']}}" class="kill_button" data-toggle="tooltip"
|
||||||
data-toggle="tooltip" title="{{ translate('dashboard', 'kill' , data['lang']) }}">
|
title="{{ translate('dashboard', 'kill' , data['lang']) }}">
|
||||||
<i class="fas fa-skull"></i>
|
<i class="fas fa-skull"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
@ -166,19 +166,20 @@
|
|||||||
translate('dashboard', 'delay-explained' , data['lang'])}}">{{ translate('dashboard', 'starting',
|
translate('dashboard', 'delay-explained' , data['lang'])}}">{{ translate('dashboard', 'starting',
|
||||||
data['lang']) }}</i></a>
|
data['lang']) }}</i></a>
|
||||||
{% elif server['stats']['downloading']%}
|
{% elif server['stats']['downloading']%}
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class=""><i class="fa fa-spinner fa-spin"></i> {{ translate('serverTerm', 'downloading',
|
<a data-id="{{server['server_data']['server_id']}}" class=""><i class="fa fa-spinner fa-spin"></i>
|
||||||
|
{{ translate('serverTerm', 'downloading',
|
||||||
data['lang']) }}</a>
|
data['lang']) }}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="play_button"
|
<a data-id="{{server['server_data']['server_id']}}" class="play_button" data-toggle="tooltip"
|
||||||
data-toggle="tooltip" title="{{ translate('dashboard', 'start' , data['lang']) }}">
|
title="{{ translate('dashboard', 'start' , data['lang']) }}">
|
||||||
<i class="fas fa-play"></i>
|
<i class="fas fa-play"></i>
|
||||||
</a>
|
</a>
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="clone_button"
|
<a data-id="{{server['server_data']['server_id']}}" class="clone_button" data-toggle="tooltip"
|
||||||
data-toggle="tooltip" title="{{ translate('dashboard', 'clone' , data['lang']) }}">
|
title="{{ translate('dashboard', 'clone' , data['lang']) }}">
|
||||||
<i class="fas fa-clone"></i>
|
<i class="fas fa-clone"></i>
|
||||||
</a>
|
</a>
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="kill_button"
|
<a data-id="{{server['server_data']['server_id']}}" class="kill_button" data-toggle="tooltip"
|
||||||
data-toggle="tooltip" title="{{ translate('dashboard', 'kill' , data['lang']) }}">
|
title="{{ translate('dashboard', 'kill' , data['lang']) }}">
|
||||||
<i class="fas fa-skull"></i>
|
<i class="fas fa-skull"></i>
|
||||||
</a>
|
</a>
|
||||||
{% end %}
|
{% end %}
|
||||||
@ -249,7 +250,8 @@
|
|||||||
<span class="text-success"><i class="fas fa-signal"></i> {{ translate('dashboard', 'online',
|
<span class="text-success"><i class="fas fa-signal"></i> {{ translate('dashboard', 'online',
|
||||||
data['lang']) }}</span>
|
data['lang']) }}</span>
|
||||||
{% elif server['stats']['crashed'] %}
|
{% elif server['stats']['crashed'] %}
|
||||||
<span class="text-danger"><i class="fas fa-exclamation-triangle"></i> {{ translate('dashboard', 'crashed',
|
<span class="text-danger"><i class="fas fa-exclamation-triangle"></i> {{ translate('dashboard',
|
||||||
|
'crashed',
|
||||||
data['lang']) }}</span>
|
data['lang']) }}</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="text-warning"><i class="fas fa-ban"></i> {{ translate('dashboard', 'offline',
|
<span class="text-warning"><i class="fas fa-ban"></i> {{ translate('dashboard', 'offline',
|
||||||
@ -283,41 +285,44 @@
|
|||||||
<td draggable="false" id="controls{{server['server_data']['server_id']}}" class="actions_serverlist">
|
<td draggable="false" id="controls{{server['server_data']['server_id']}}" class="actions_serverlist">
|
||||||
{% if server['user_command_permission'] %}
|
{% if server['user_command_permission'] %}
|
||||||
{% if server['stats']['running'] %}
|
{% if server['stats']['running'] %}
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="stop_button"
|
<a data-id="{{server['server_data']['server_id']}}" class="stop_button" data-toggle="tooltip"
|
||||||
data-toggle="tooltip" title="{{ translate('dashboard', 'stop' , data['lang']) }}">
|
title="{{ translate('dashboard', 'stop' , data['lang']) }}">
|
||||||
<i class="fas fa-stop"></i>
|
<i class="fas fa-stop"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="restart_button"
|
<a data-id="{{server['server_data']['server_id']}}" class="restart_button" data-toggle="tooltip"
|
||||||
data-toggle="tooltip" title="{{ translate('dashboard', 'restart' , data['lang']) }}">
|
title="{{ translate('dashboard', 'restart' , data['lang']) }}">
|
||||||
<i class="fas fa-sync"></i>
|
<i class="fas fa-sync"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="kill_button"
|
<a data-id="{{server['server_data']['server_id']}}" class="kill_button" data-toggle="tooltip"
|
||||||
data-toggle="tooltip" title="{{ translate('dashboard', 'kill' , data['lang']) }}">
|
title="{{ translate('dashboard', 'kill' , data['lang']) }}">
|
||||||
<i class="fas fa-skull"></i>
|
<i class="fas fa-skull"></i>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
{% elif server['stats']['updating']%}
|
{% elif server['stats']['updating']%}
|
||||||
<!-- WHAT HAPPENED HERE -->
|
<!-- WHAT HAPPENED HERE -->
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="">{{ translate('serverTerm', 'updating', data['lang']) }}</i></a>
|
<a data-id="{{server['server_data']['server_id']}}" class="">{{ translate('serverTerm', 'updating',
|
||||||
|
data['lang']) }}</i></a>
|
||||||
{% elif server['stats']['waiting_start']%}
|
{% elif server['stats']['waiting_start']%}
|
||||||
<!-- WHAT HAPPENED HERE -->
|
<!-- WHAT HAPPENED HERE -->
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="" title="{{
|
<a data-id="{{server['server_data']['server_id']}}" class="" title="{{
|
||||||
translate('dashboard', 'delay-explained' , data['lang'])}}">{{ translate('dashboard', 'starting', data['lang']) }}</i></a>
|
translate('dashboard', 'delay-explained' , data['lang'])}}">{{ translate('dashboard', 'starting',
|
||||||
|
data['lang']) }}</i></a>
|
||||||
{% elif server['stats']['downloading']%}
|
{% elif server['stats']['downloading']%}
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class=""><i class="fa fa-spinner fa-spin"></i> {{ translate('serverTerm', 'downloading', data['lang']) }}</a>
|
<a data-id="{{server['server_data']['server_id']}}" class=""><i class="fa fa-spinner fa-spin"></i>
|
||||||
|
{{ translate('serverTerm', 'downloading', data['lang']) }}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="play_button"
|
<a data-id="{{server['server_data']['server_id']}}" class="play_button" data-toggle="tooltip"
|
||||||
data-toggle="tooltip" title="{{ translate('dashboard', 'start' , data['lang']) }}">
|
title="{{ translate('dashboard', 'start' , data['lang']) }}">
|
||||||
<i class="fas fa-play"></i>
|
<i class="fas fa-play"></i>
|
||||||
</a>
|
</a>
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="clone_button"
|
<a data-id="{{server['server_data']['server_id']}}" class="clone_button" data-toggle="tooltip"
|
||||||
data-toggle="tooltip" title="{{ translate('dashboard', 'clone' , data['lang']) }}">
|
title="{{ translate('dashboard', 'clone' , data['lang']) }}">
|
||||||
<i class="fas fa-clone"></i>
|
<i class="fas fa-clone"></i>
|
||||||
</a>
|
</a>
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="kill_button"
|
<a data-id="{{server['server_data']['server_id']}}" class="kill_button" data-toggle="tooltip"
|
||||||
data-toggle="tooltip" title="{{ translate('dashboard', 'kill' , data['lang']) }}">
|
title="{{ translate('dashboard', 'kill' , data['lang']) }}">
|
||||||
<i class="fas fa-skull"></i>
|
<i class="fas fa-skull"></i>
|
||||||
</a>
|
</a>
|
||||||
{% end %}
|
{% end %}
|
||||||
@ -328,7 +333,8 @@
|
|||||||
<span class="text-success"><i class="fas fa-signal"></i> {{ translate('dashboard', 'online',
|
<span class="text-success"><i class="fas fa-signal"></i> {{ translate('dashboard', 'online',
|
||||||
data['lang']) }}</span>
|
data['lang']) }}</span>
|
||||||
{% elif server['stats']['crashed'] %}
|
{% elif server['stats']['crashed'] %}
|
||||||
<span class="text-danger"><i class="fas fa-exclamation-triangle"></i> {{ translate('dashboard', 'crashed',
|
<span class="text-danger"><i class="fas fa-exclamation-triangle"></i> {{ translate('dashboard',
|
||||||
|
'crashed',
|
||||||
data['lang']) }}</span>
|
data['lang']) }}</span>
|
||||||
{% else %}
|
{% else %}
|
||||||
<span class="text-warning"><i class="fas fa-ban"></i> {{ translate('dashboard', 'offline',
|
<span class="text-warning"><i class="fas fa-ban"></i> {{ translate('dashboard', 'offline',
|
||||||
@ -336,7 +342,9 @@
|
|||||||
{% end %}
|
{% end %}
|
||||||
</td>
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<span data-toggle="collapse" data-target="#details_{{server['server_data']['server_id']}}" aria-expanded="false" aria-controls="details_{{server['server_data']['server_id']}}"><i class="fas fa-chevron-down"></i></span>
|
<span data-toggle="collapse" data-target="#details_{{server['server_data']['server_id']}}"
|
||||||
|
aria-expanded="false" aria-controls="details_{{server['server_data']['server_id']}}"><i
|
||||||
|
class="fas fa-chevron-down"></i></span>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr id="details_{{server['server_data']['server_id']}}" class="collapse" draggable="false">
|
<tr id="details_{{server['server_data']['server_id']}}" class="collapse" draggable="false">
|
||||||
@ -400,11 +408,14 @@
|
|||||||
<h6>{{ translate('dashboard', 'players', data['lang']) }}</h6>
|
<h6>{{ translate('dashboard', 'players', data['lang']) }}</h6>
|
||||||
<div draggable="false" id="m_server_desc_{{server['server_data']['server_id']}}">
|
<div draggable="false" id="m_server_desc_{{server['server_data']['server_id']}}">
|
||||||
{% if server['stats']['int_ping_results'] %}
|
{% if server['stats']['int_ping_results'] %}
|
||||||
{{ server['stats']['online'] }} / {{ server['stats']['max'] }} {{ translate('dashboard', 'max',
|
{{ server['stats']['online'] }} / {{ server['stats']['max'] }} {{ translate('dashboard',
|
||||||
|
'max',
|
||||||
data['lang']) }} <br />
|
data['lang']) }} <br />
|
||||||
|
|
||||||
{% if server['stats']['desc'] != 'False' %}
|
{% if server['stats']['desc'] != 'False' %}
|
||||||
<div id="desc_id" style="overflow-wrap: break-word !important; max-width: 85px !important; overflow: scroll;">{{ server['stats']['desc'] }}</div> <br />
|
<div id="desc_id"
|
||||||
|
style="overflow-wrap: break-word !important; max-width: 85px !important; overflow: scroll;">
|
||||||
|
{{ server['stats']['desc'] }}</div> <br />
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
{% if server['stats']['version'] != 'False' %}
|
{% if server['stats']['version'] != 'False' %}
|
||||||
@ -773,9 +784,9 @@
|
|||||||
|
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
<script src="/static/assets/js/jquery-ui.js"></script>
|
<script src="/static/assets/vendors/js/jquery-ui.js"></script>
|
||||||
<link rel="stylesheet" href="/static/assets/css/jquery-ui.css">
|
<link rel="stylesheet" href="/static/assets/vendors/css/jquery-ui.css">
|
||||||
<link rel="stylesheet" href="/static/assets/css/jquery-ui.structure.css">
|
<link rel="stylesheet" href="/static/assets/vendors/css/jquery-ui.structure.css">
|
||||||
<style>
|
<style>
|
||||||
@media only screen and (max-width: 760px) {
|
@media only screen and (max-width: 760px) {
|
||||||
#mobile {
|
#mobile {
|
||||||
|
Loading…
Reference in New Issue
Block a user