mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Merge branch 'dev-ImprovingMobileDisplay' into 'dev'
Improving Mobile Display See merge request crafty-controller/crafty-4!372
This commit is contained in:
commit
0fc3dc2196
@ -12,6 +12,7 @@
|
|||||||
### Tweaks
|
### Tweaks
|
||||||
- Spelling mistake fixed in German lang file ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/370))
|
- Spelling mistake fixed in German lang file ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/370))
|
||||||
- Backup failure warning (Tab text goes red) ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/373))
|
- Backup failure warning (Tab text goes red) ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/373))
|
||||||
|
- Rework server list on dashboard display for use on small screens ([Merge Request](https://gitlab.com/crafty-controller/crafty-4/-/merge_requests/372))
|
||||||
<br><br>
|
<br><br>
|
||||||
|
|
||||||
## --- [4.0.3] - 2022/06/18
|
## --- [4.0.3] - 2022/06/18
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
.sidebar > .nav > .nav-item:not(.nav-profile) > .nav-link:before {
|
.sidebar>.nav>.nav-item:not(.nav-profile)>.nav-link:before {
|
||||||
content: none;
|
content: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 30px;
|
left: 30px;
|
||||||
@ -21,7 +21,7 @@
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar > .nav > .nav-item:not(.nav-profile) > .nav-link:before {
|
.sidebar>.nav>.nav-item:not(.nav-profile)>.nav-link:before {
|
||||||
content: none;
|
content: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
left: 30px;
|
left: 30px;
|
||||||
@ -33,43 +33,48 @@
|
|||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sidebar > .nav .nav-item .nav-link, .collapsed{
|
.sidebar>.nav .nav-item .nav-link,
|
||||||
|
.collapsed {
|
||||||
padding: 15px 30px;
|
padding: 15px 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mc-log-time{
|
.mc-log-time {
|
||||||
color:#19d895;
|
color: #19d895;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mc-log-info{
|
.mc-log-info {
|
||||||
color:#8862e0;
|
color: #8862e0;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mc-log-warn{
|
.mc-log-warn {
|
||||||
color:#ffaf00;
|
color: #ffaf00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mc-log-error{
|
.mc-log-error {
|
||||||
color:#af463f;
|
color: #af463f;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mc-log-fatal{
|
.mc-log-fatal {
|
||||||
color:#da0f00;
|
color: #da0f00;
|
||||||
}
|
}
|
||||||
|
|
||||||
.mc-log-keyword{
|
.mc-log-keyword {
|
||||||
color:#2196f3;
|
color: #2196f3;
|
||||||
}
|
}
|
||||||
|
|
||||||
.scrollable-element {
|
.scrollable-element {
|
||||||
scrollbar-color: red yellow;
|
scrollbar-color: red yellow;
|
||||||
}
|
}
|
||||||
|
|
||||||
.term-nav-item {
|
.term-nav-item {
|
||||||
padding: 1%;
|
padding: 1%;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Fix body scrollbar color */
|
/* Fix body scrollbar color */
|
||||||
body { background-color: var(--dark) !important; /* Firefox */ }
|
body {
|
||||||
|
background-color: var(--dark) !important;
|
||||||
|
/* Firefox */
|
||||||
|
}
|
||||||
|
|
||||||
/* Webkit */
|
/* Webkit */
|
||||||
/* Didn't really work out
|
/* Didn't really work out
|
||||||
@ -81,11 +86,20 @@ body { background-color: var(--dark) !important; /* Firefox */ }
|
|||||||
::-webkit-scrollbar-track { background-color: #202538; }
|
::-webkit-scrollbar-track { background-color: #202538; }
|
||||||
::-webkit-scrollbar-corner { background-color: #202538; }*/
|
::-webkit-scrollbar-corner { background-color: #202538; }*/
|
||||||
|
|
||||||
.actions_serverlist > a > i {
|
.actions_serverlist>a>i {
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.actions_serveritem {
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
.corner {
|
.corner {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
margin-top: 0;
|
margin-top: 0;
|
||||||
margin-left: 0;
|
margin-left: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.accordion .card {
|
||||||
|
margin-bottom: 0px;
|
||||||
}
|
}
|
@ -25,21 +25,21 @@
|
|||||||
<!-- Page Title Header Ends-->
|
<!-- Page Title Header Ends-->
|
||||||
{% if data['first_log'] %}
|
{% if data['first_log'] %}
|
||||||
<script>
|
<script>
|
||||||
$(document).ready(function() {
|
$(document).ready(function () {
|
||||||
bootbox.alert({
|
bootbox.alert({
|
||||||
backdrop: true,
|
backdrop: true,
|
||||||
title: 'Your Feedback Is Appreciated...',
|
title: 'Your Feedback Is Appreciated...',
|
||||||
message: '<p>We will only request this information from the admin user once... 😊</p>'
|
message: '<p>We will only request this information from the admin user once... 😊</p>'
|
||||||
+'<p><strong>All data collected is completely anonymous</strong> and is only used to improve Crafty 4.0 and allow us to more accurately report the number of Crafty 4 users.</p><iframe width="640px" height="480px"'
|
+ '<p><strong>All data collected is completely anonymous</strong> and is only used to improve Crafty 4.0 and allow us to more accurately report the number of Crafty 4 users.</p><iframe width="640px" height="480px"'
|
||||||
+'src="https://forms.office.com/Pages/ResponsePage.aspx?id=LwLajNkpXU2CKc95G1oO3MN0Hu3oEUNLr-EtLx31TS5UNUNVQlFNVUVYMEc'
|
+ 'src="https://forms.office.com/Pages/ResponsePage.aspx?id=LwLajNkpXU2CKc95G1oO3MN0Hu3oEUNLr-EtLx31TS5UNUNVQlFNVUVYMEc'
|
||||||
+'1V1BKS0FQUUlERUtWQy4u&embed=true" frameborder="0" marginwidth="0" marginheight="0" style="border: none; max-width:100%;'
|
+ '1V1BKS0FQUUlERUtWQy4u&embed=true" frameborder="0" marginwidth="0" marginheight="0" style="border: none; max-width:100%;'
|
||||||
+' max-height:100vh" allowfullscreen webkitallowfullscreen mozallowfullscreen msallowfullscreen> </iframe>',
|
+ ' max-height:100vh" allowfullscreen webkitallowfullscreen mozallowfullscreen msallowfullscreen> </iframe>',
|
||||||
buttons: {
|
buttons: {
|
||||||
ok: {
|
ok: {
|
||||||
label: 'Skip Survey/Done',
|
label: 'Skip Survey/Done',
|
||||||
className: 'btn-secondary'
|
className: 'btn-secondary'
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
@ -60,12 +60,12 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="wrapper my-auto ml-auto ml-lg-4">
|
<div class="wrapper my-auto ml-auto ml-lg-4">
|
||||||
<p id="cpu_data" class="mb-0 text-success" data-toggle="tooltip" data-placement="top" data-html="true"
|
<p id="cpu_data" class="mb-0 text-success" data-toggle="tooltip" data-placement="top" data-html="true"
|
||||||
title="{% raw translate('dashboard', 'cpuCores', data['lang']) %}: {{ data.get('hosts_data').get('cpu_cores') }} <br /> {% raw translate('dashboard', 'cpuCurFreq', data['lang']) %}: {{ data.get('hosts_data').get('cpu_cur_freq') }} <br /> {% raw translate('dashboard', 'cpuMaxFreq', data['lang']) %}: {{ data.get('hosts_data').get('cpu_max_freq') }}">
|
title="{% raw translate('dashboard', 'cpuCores', data['lang']) %}: {{ data.get('hosts_data').get('cpu_cores') }} <br /> {% raw translate('dashboard', 'cpuCurFreq', data['lang']) %}: {{ data.get('hosts_data').get('cpu_cur_freq') }} <br /> {% raw translate('dashboard', 'cpuMaxFreq', data['lang']) %}: {{ data.get('hosts_data').get('cpu_max_freq') }}">
|
||||||
{{ translate('dashboard', 'cpuUsage', data['lang']) }}: <span id="cpu_usage">{{
|
{{ translate('dashboard', 'cpuUsage', data['lang']) }}: <span id="cpu_usage">{{
|
||||||
data.get('hosts_data').get('cpu_usage') }}</span>
|
data.get('hosts_data').get('cpu_usage') }}</span>
|
||||||
</p>
|
</p>
|
||||||
<p id="mem_usage" class="mb-0 text-danger" data-toggle="tooltip" data-placement="top"
|
<p id="mem_usage" class="mb-0 text-danger" data-toggle="tooltip" data-placement="top"
|
||||||
title="{{ translate('dashboard', 'memUsage', data['lang']) }}: {{ data.get('hosts_data').get('mem_usage') }}">
|
title="{{ translate('dashboard', 'memUsage', data['lang']) }}: {{ data.get('hosts_data').get('mem_usage') }}">
|
||||||
{{ translate('dashboard', 'memUsage', data['lang']) }}: <span id="mem_percent">{{
|
{{ translate('dashboard', 'memUsage', data['lang']) }}: <span id="mem_percent">{{
|
||||||
data.get('hosts_data').get('mem_percent') }}%</span>
|
data.get('hosts_data').get('mem_percent') }}%</span>
|
||||||
</p>
|
</p>
|
||||||
@ -116,8 +116,8 @@
|
|||||||
{% if len(data['servers']) > 0 %}
|
{% if len(data['servers']) > 0 %}
|
||||||
{% if data['user_data']['hints'] %}
|
{% if data['user_data']['hints'] %}
|
||||||
<span class="too_small" title="{{ translate('dashboard', 'cannotSeeOnMobile', data['lang']) }}" ,
|
<span class="too_small" title="{{ translate('dashboard', 'cannotSeeOnMobile', data['lang']) }}" ,
|
||||||
data-content="{{ translate('dashboard', 'cannotSeeOnMobile2', data['lang']) }}" ,
|
data-content="{{ translate('dashboard', 'cannotSeeOnMobile2', data['lang']) }}" ,
|
||||||
data-placement="top"></span>
|
data-placement="top"></span>
|
||||||
{% end %}
|
{% end %}
|
||||||
{% end %}
|
{% end %}
|
||||||
<div><a class="nav-link" href="/server/step1"><i class="fas fa-plus-circle"></i> {{
|
<div><a class="nav-link" href="/server/step1"><i class="fas fa-plus-circle"></i> {{
|
||||||
@ -125,19 +125,19 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body">
|
||||||
|
|
||||||
<div class="table-responsive">
|
{% if len(data['servers']) == 0%}
|
||||||
{% if len(data['servers']) == 0%}
|
<div style="text-align: center; color: grey;">
|
||||||
<div style="text-align: center; color: grey;">
|
<h1>{{ translate('dashboard', 'welcome', data['lang']) }}</h1>
|
||||||
<h1>{{ translate('dashboard', 'welcome', data['lang']) }}</h1>
|
<br>
|
||||||
<br>
|
<h7>{{ translate('dashboard', 'no-servers', data['lang']) }} {{ translate('dashboard', 'newServer',
|
||||||
<h7>{{ translate('dashboard', 'no-servers', data['lang']) }} {{ translate('dashboard', 'newServer',
|
data['lang']) }}.</h7>
|
||||||
data['lang']) }}.</h7>
|
</div>
|
||||||
</div>
|
|
||||||
|
|
||||||
{% end %}
|
{% end %}
|
||||||
{% if len(data['servers']) > 0 %}
|
{% if len(data['servers']) > 0 %}
|
||||||
<!-- View for Large screen -->
|
<!-- View for Large screen -->
|
||||||
<table id="servers_table" class="table table-hover d-none d-sm-table">
|
<div class="table-responsive d-none d-sm-block">
|
||||||
|
<table id="servers_table" class="table table-hover">
|
||||||
<thead>
|
<thead>
|
||||||
<tr class="rounded" id="first" draggable="false">
|
<tr class="rounded" id="first" draggable="false">
|
||||||
<th draggable="false">{{ translate('dashboard', 'server', data['lang']) }}</th>
|
<th draggable="false">{{ translate('dashboard', 'server', data['lang']) }}</th>
|
||||||
@ -163,17 +163,17 @@
|
|||||||
{% 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" data-toggle="tooltip"
|
<a data-id="{{server['server_data']['server_id']}}" class="stop_button" 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" data-toggle="tooltip"
|
<a data-id="{{server['server_data']['server_id']}}" class="restart_button" 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" data-toggle="tooltip"
|
<a data-id="{{server['server_data']['server_id']}}" class="kill_button" 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>
|
||||||
|
|
||||||
@ -192,15 +192,15 @@
|
|||||||
data['lang']) }}</a>
|
data['lang']) }}</a>
|
||||||
{% else %}
|
{% else %}
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="play_button" data-toggle="tooltip"
|
<a data-id="{{server['server_data']['server_id']}}" class="play_button" 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" data-toggle="tooltip"
|
<a data-id="{{server['server_data']['server_id']}}" class="clone_button" 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" data-toggle="tooltip"
|
<a data-id="{{server['server_data']['server_id']}}" class="kill_button" 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 %}
|
||||||
@ -209,7 +209,7 @@
|
|||||||
|
|
||||||
<td draggable="false" id="server_cpu_{{server['server_data']['server_id']}}">
|
<td draggable="false" id="server_cpu_{{server['server_data']['server_id']}}">
|
||||||
<div class="progress mb-1" data-toggle="tooltip" data-placement="top"
|
<div class="progress mb-1" data-toggle="tooltip" data-placement="top"
|
||||||
title="{{server['stats']['cpu']}}">
|
title="{{server['stats']['cpu']}}">
|
||||||
<div class="progress-bar
|
<div class="progress-bar
|
||||||
{% if server['stats']['cpu'] <= 33 %}
|
{% if server['stats']['cpu'] <= 33 %}
|
||||||
bg-success
|
bg-success
|
||||||
@ -219,14 +219,14 @@
|
|||||||
bg-danger
|
bg-danger
|
||||||
{% end %}
|
{% end %}
|
||||||
" role="progressbar" style="width: {{server['stats']['cpu']}}%" aria-valuenow="0"
|
" role="progressbar" style="width: {{server['stats']['cpu']}}%" aria-valuenow="0"
|
||||||
aria-valuemin="0" aria-valuemax="100"></div>
|
aria-valuemin="0" aria-valuemax="100"></div>
|
||||||
</div>
|
</div>
|
||||||
{{server['stats']['cpu']}}%
|
{{server['stats']['cpu']}}%
|
||||||
</td>
|
</td>
|
||||||
|
|
||||||
<td draggable="false" id="server_mem_{{server['server_data']['server_id']}}">
|
<td draggable="false" id="server_mem_{{server['server_data']['server_id']}}">
|
||||||
<div class="progress mb-1" data-toggle="tooltip" data-placement="top"
|
<div class="progress mb-1" data-toggle="tooltip" data-placement="top"
|
||||||
title="{{server['stats']['mem']}}">
|
title="{{server['stats']['mem']}}">
|
||||||
<div class="progress-bar
|
<div class="progress-bar
|
||||||
{% if server['stats']['mem_percent'] <= 33 %}
|
{% if server['stats']['mem_percent'] <= 33 %}
|
||||||
bg-success
|
bg-success
|
||||||
@ -236,7 +236,7 @@
|
|||||||
bg-danger
|
bg-danger
|
||||||
{% end %}
|
{% end %}
|
||||||
" role="progressbar" style="width: {{server['stats']['mem_percent']}}%" aria-valuenow="0"
|
" role="progressbar" style="width: {{server['stats']['mem_percent']}}%" aria-valuenow="0"
|
||||||
aria-valuemin="0" aria-valuemax="100"></div>
|
aria-valuemin="0" aria-valuemax="100"></div>
|
||||||
</div>
|
</div>
|
||||||
{{server['stats']['mem_percent']}}% -
|
{{server['stats']['mem_percent']}}% -
|
||||||
|
|
||||||
@ -256,7 +256,7 @@
|
|||||||
|
|
||||||
{% if server['stats']['desc'] != 'False' %}
|
{% if server['stats']['desc'] != 'False' %}
|
||||||
<div id="desc_id"
|
<div id="desc_id"
|
||||||
style="overflow-wrap: break-word !important; max-width: 85px !important; overflow: scroll;">{{
|
style="overflow-wrap: break-word !important; max-width: 85px !important; overflow: scroll;">{{
|
||||||
server['stats']['desc'] }}</div> <br />
|
server['stats']['desc'] }}</div> <br />
|
||||||
{% end %}
|
{% end %}
|
||||||
|
|
||||||
@ -280,180 +280,208 @@
|
|||||||
{% end %}
|
{% end %}
|
||||||
</td>
|
</td>
|
||||||
<span class="server-player-totals" id="server_players_{{server['server_data']['server_id']}}"
|
<span class="server-player-totals" id="server_players_{{server['server_data']['server_id']}}"
|
||||||
data-players="{{ server['stats']['online']}}" data-max="{{ server['stats']['max'] }}"></span>
|
data-players="{{ server['stats']['online']}}" data-max="{{ server['stats']['max'] }}"></span>
|
||||||
</tr>
|
</tr>
|
||||||
{% end %}
|
{% end %}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<!-- View for Small screen -->
|
</div>
|
||||||
<table id="servers_table" class="table table-hover d-table d-sm-none">
|
{% end %}
|
||||||
<thead>
|
{% if len(data['servers']) > 0 %}
|
||||||
<tr class="rounded" id="first" draggable="false">
|
<!-- Try with Accordion -->
|
||||||
<th scope="col" draggable="false">{{ translate('dashboard', 'server', data['lang']) }}</th>
|
<div class="d-sm-none d-block">
|
||||||
<th scope="col" draggable="false">{{ translate('dashboard', 'actions', data['lang']) }}</th>
|
<div class="accordion" id="accordionServers">
|
||||||
<th scope="col" draggable="false">{{ translate('dashboard', 'status', data['lang']) }}</th>
|
{% for server in data['servers'] %}
|
||||||
<th scope="col" draggable="false"></th>
|
<div class="card">
|
||||||
</tr>
|
<div class="card-header" id="heading-{{server['server_data']['server_id']}}">
|
||||||
</thead>
|
<h2 class="mb-0 container overflow-hidden">
|
||||||
<tbody>
|
<div class="row">
|
||||||
{% for server in data['servers'] %}
|
<div class="col-10 col-lg-3 mx-0 px-0">
|
||||||
<tr id="{{server['server_data']['server_id']}}" draggable="false">
|
<a class="btn btn-link d-flex justify-content-start" type="button" href="/panel/server_detail?id={{server['server_data']['server_id']}}">
|
||||||
<td scope="row"><i class="fas fa-server"></i>
|
<i class="fas fa-server"></i> {{ server['server_data']['server_name'] }}
|
||||||
<a draggable="false" href="/panel/server_detail?id={{server['server_data']['server_id']}}">
|
</a>
|
||||||
{{ server['server_data']['server_name'] }}
|
|
||||||
</a>
|
|
||||||
</td>
|
|
||||||
<td draggable="false" id="controls{{server['server_data']['server_id']}}" class="actions_serverlist">
|
|
||||||
{% if server['user_command_permission'] %}
|
|
||||||
{% if server['stats']['running'] %}
|
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="stop_button" data-toggle="tooltip"
|
|
||||||
title="{{ translate('dashboard', 'stop' , data['lang']) }}">
|
|
||||||
<i class="fas fa-stop"></i>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="restart_button" data-toggle="tooltip"
|
|
||||||
title="{{ translate('dashboard', 'restart' , data['lang']) }}">
|
|
||||||
<i class="fas fa-sync"></i>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="kill_button" data-toggle="tooltip"
|
|
||||||
title="{{ translate('dashboard', 'kill' , data['lang']) }}">
|
|
||||||
<i class="fas fa-skull"></i>
|
|
||||||
</a>
|
|
||||||
|
|
||||||
{% elif server['stats']['updating']%}
|
|
||||||
<!-- WHAT HAPPENED HERE -->
|
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="">{{ translate('serverTerm', 'updating',
|
|
||||||
data['lang']) }}</i></a>
|
|
||||||
{% elif server['stats']['waiting_start']%}
|
|
||||||
<!-- WHAT HAPPENED HERE -->
|
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="" title="{{
|
|
||||||
translate('dashboard', 'delay-explained' , data['lang'])}}">{{ translate('dashboard', 'starting',
|
|
||||||
data['lang']) }}</i></a>
|
|
||||||
{% 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>
|
|
||||||
{% else %}
|
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="play_button" data-toggle="tooltip"
|
|
||||||
title="{{ translate('dashboard', 'start' , data['lang']) }}">
|
|
||||||
<i class="fas fa-play"></i>
|
|
||||||
</a>
|
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="clone_button" data-toggle="tooltip"
|
|
||||||
title="{{ translate('dashboard', 'clone' , data['lang']) }}">
|
|
||||||
<i class="fas fa-clone"></i>
|
|
||||||
</a>
|
|
||||||
<a data-id="{{server['server_data']['server_id']}}" class="kill_button" data-toggle="tooltip"
|
|
||||||
title="{{ translate('dashboard', 'kill' , data['lang']) }}">
|
|
||||||
<i class="fas fa-skull"></i>
|
|
||||||
</a>
|
|
||||||
{% end %}
|
|
||||||
{% end %}
|
|
||||||
</td>
|
|
||||||
<td draggable="false" id="m_server_running_status_{{server['server_data']['server_id']}}">
|
|
||||||
{% if server['stats']['running'] %}
|
|
||||||
<span class="text-success"><i class="fas fa-signal"></i> {{ translate('dashboard', 'online',
|
|
||||||
data['lang']) }}</span>
|
|
||||||
{% elif server['stats']['crashed'] %}
|
|
||||||
<span class="text-danger"><i class="fas fa-exclamation-triangle"></i> {{ translate('dashboard',
|
|
||||||
'crashed',
|
|
||||||
data['lang']) }}</span>
|
|
||||||
{% else %}
|
|
||||||
<span class="text-warning"><i class="fas fa-ban"></i> {{ translate('dashboard', 'offline',
|
|
||||||
data['lang']) }}</span>
|
|
||||||
{% end %}
|
|
||||||
</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>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr id="details_{{server['server_data']['server_id']}}" class="collapse" draggable="false">
|
|
||||||
<td colspan="4">
|
|
||||||
<div class="collapse" id="details_{{server['server_data']['server_id']}}">
|
|
||||||
<div class="row">
|
|
||||||
<div class="col-6">
|
|
||||||
<h6>{{ translate('dashboard', 'cpuUsage', data['lang']) }}</h6>
|
|
||||||
<div id="m_server_cpu_{{server['server_data']['server_id']}}">
|
|
||||||
<div class="progress mb-1" data-toggle="tooltip" data-placement="top"
|
|
||||||
title="{{server['stats']['cpu']}}">
|
|
||||||
<div class="progress-bar
|
|
||||||
{% if server['stats']['cpu'] <= 33 %}
|
|
||||||
bg-success
|
|
||||||
{% elif 34 <= server['stats']['cpu'] <= 66 %}
|
|
||||||
bg-warning
|
|
||||||
{% else %}
|
|
||||||
bg-danger
|
|
||||||
{% end %}
|
|
||||||
" role="progressbar" style="width: {{server['stats']['cpu']}}%" aria-valuenow="0"
|
|
||||||
aria-valuemin="0" aria-valuemax="100"></div>
|
|
||||||
</div>
|
|
||||||
{{server['stats']['cpu']}}%
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="col-6">
|
|
||||||
<h6>{{ translate('dashboard', 'memUsage', data['lang']) }}</h6>
|
|
||||||
<div draggable="false" id="m_server_mem_{{server['server_data']['server_id']}}">
|
|
||||||
<div class="progress mb-1" data-toggle="tooltip" data-placement="top"
|
|
||||||
title="{{server['stats']['mem']}}">
|
|
||||||
<div class="progress-bar
|
|
||||||
{% if server['stats']['mem_percent'] <= 33 %}
|
|
||||||
bg-success
|
|
||||||
{% elif 34 <= server['stats']['mem_percent'] <= 66 %}
|
|
||||||
bg-warning
|
|
||||||
{% else %}
|
|
||||||
bg-danger
|
|
||||||
{% end %}
|
|
||||||
" role="progressbar" style="width: {{server['stats']['mem_percent']}}%" aria-valuenow="0"
|
|
||||||
aria-valuemin="0" aria-valuemax="100"></div>
|
|
||||||
</div>
|
|
||||||
{{server['stats']['mem_percent']}}% -
|
|
||||||
|
|
||||||
{% if server['stats']['mem'] == 0 %}
|
|
||||||
0 MB
|
|
||||||
{% else %}
|
|
||||||
{{server['stats']['mem']}}
|
|
||||||
{% end %}
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<div class="col-2 col-lg-3 mx-0 px-0">
|
||||||
<div class="row">
|
<a class="btn btn-link d-flex justify-content-center" type="button" data-toggle="collapse" data-target="#collapse-{{server['server_data']['server_id']}}"
|
||||||
<div class="col-6">
|
aria-expanded="false" aria-controls="collapse-{{server['server_data']['server_id']}}">
|
||||||
<h6>{{ translate('dashboard', 'size', data['lang']) }}</h6>
|
<i class="fas fa-chart-bar"></i>
|
||||||
<div draggable="false" id="m_server_world_{{server['server_data']['server_id']}}">
|
</a>
|
||||||
{{ server['stats']['world_size'] }}
|
</div>
|
||||||
|
<div class="col-4 col-lg-3 mx-0 px-0">
|
||||||
|
<a id="m_server_running_status_{{server['server_data']['server_id']}}" class="btn btn-link d-flex justify-content-start" type="button">
|
||||||
|
{% if server['stats']['running'] %}
|
||||||
|
<span class="text-success"><i class="fas fa-signal"></i> {{ translate('dashboard', 'online',
|
||||||
|
data['lang']) }}</span>
|
||||||
|
{% elif server['stats']['crashed'] %}
|
||||||
|
<span class="text-danger"><i class="fas fa-exclamation-triangle"></i> {{ translate('dashboard',
|
||||||
|
'crashed',
|
||||||
|
data['lang']) }}</span>
|
||||||
|
{% else %}
|
||||||
|
<span class="text-warning"><i class="fas fa-ban"></i> {{ translate('dashboard', 'offline',
|
||||||
|
data['lang']) }}</span>
|
||||||
|
{% end %}
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-8 col-lg-3 mx-0 px-0">
|
||||||
|
<div id="controls{{server['server_data']['server_id']}}" class="container overflow-hidden">
|
||||||
|
{% if server['user_command_permission'] %}
|
||||||
|
{% if server['stats']['running'] %}
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-4 px-0">
|
||||||
|
<a data-id="{{server['server_data']['server_id']}}" class="btn btn-link stop_button actions_serveritem" data-toggle="tooltip"
|
||||||
|
title="{{ translate('dashboard', 'stop' , data['lang']) }}">
|
||||||
|
<i class="fas fa-stop"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-4 px-0">
|
||||||
|
<a data-id="{{server['server_data']['server_id']}}" class="btn btn-link restart_button actions_serveritem" data-toggle="tooltip"
|
||||||
|
title="{{ translate('dashboard', 'restart' , data['lang']) }}">
|
||||||
|
<i class="fas fa-sync"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-4 px-0">
|
||||||
|
<a data-id="{{server['server_data']['server_id']}}" class="btn btn-link kill_button actions_serveritem" data-toggle="tooltip"
|
||||||
|
title="{{ translate('dashboard', 'kill' , data['lang']) }}">
|
||||||
|
<i class="fas fa-skull"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
{% elif server['stats']['updating']%}
|
||||||
<div class="col-6" style="width: auto;">
|
<!-- WHAT HAPPENED HERE -->
|
||||||
<h6>{{ translate('dashboard', 'players', data['lang']) }}</h6>
|
<div class="row">
|
||||||
<div draggable="false" id="m_server_desc_{{server['server_data']['server_id']}}">
|
<div class="col-12 px-0">
|
||||||
{% if server['stats']['int_ping_results'] %}
|
<a data-id="{{server['server_data']['server_id']}}" class="btn btn-link">{{ translate('serverTerm', 'updating',
|
||||||
{{ server['stats']['online'] }} / {{ server['stats']['max'] }} {{ translate('dashboard',
|
data['lang']) }}</i></a>
|
||||||
'max',
|
</div>
|
||||||
data['lang']) }} <br />
|
|
||||||
|
|
||||||
{% 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 />
|
|
||||||
{% end %}
|
|
||||||
|
|
||||||
{% if server['stats']['version'] != 'False' %}
|
|
||||||
{{ server['stats']['version'] }}
|
|
||||||
{% end %}
|
|
||||||
{% end %}
|
|
||||||
</div>
|
</div>
|
||||||
|
{% elif server['stats']['waiting_start']%}
|
||||||
|
<!-- WHAT HAPPENED HERE -->
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12 px-0">
|
||||||
|
<a data-id="{{server['server_data']['server_id']}}" class="btn btn-link" title="{{
|
||||||
|
translate('dashboard', 'delay-explained' , data['lang'])}}">{{ translate('dashboard', 'starting',
|
||||||
|
data['lang']) }}</i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% elif server['stats']['downloading']%}
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-12 px-0">
|
||||||
|
<a data-id="{{server['server_data']['server_id']}}" class="btn btn-link"><i class="fa fa-spinner fa-spin"></i>
|
||||||
|
{{ translate('serverTerm', 'downloading', data['lang']) }}</a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% else %}
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-4 px-0">
|
||||||
|
<a data-id="{{server['server_data']['server_id']}}" class="btn play_button actions_serveritem" data-toggle="tooltip"
|
||||||
|
title="{{ translate('dashboard', 'start' , data['lang']) }}">
|
||||||
|
<i class="fas fa-play"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-4 px-0">
|
||||||
|
<a data-id="{{server['server_data']['server_id']}}" class="btn clone_button actions_serveritem" data-toggle="tooltip"
|
||||||
|
title="{{ translate('dashboard', 'clone' , data['lang']) }}">
|
||||||
|
<i class="fas fa-clone"></i>
|
||||||
|
</a>
|
||||||
|
</div>
|
||||||
|
<div class="col-4 px-0">
|
||||||
|
<a data-id="{{server['server_data']['server_id']}}" class="btn kill_button actions_serveritem" data-toggle="tooltip"
|
||||||
|
title="{{ translate('dashboard', 'kill' , data['lang']) }}">
|
||||||
|
<i class="fas fa-skull"></i></a>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% end %}
|
||||||
|
{% end %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
</h2>
|
||||||
</tr>
|
</div>
|
||||||
{% end %}
|
|
||||||
</tbody>
|
<div id="collapse-{{server['server_data']['server_id']}}" class="collapse" aria-labelledby="heading-{{server['server_data']['server_id']}}" data-parent="#accordionServers">
|
||||||
</table>
|
<div class="card-body">
|
||||||
{% end %}
|
<div class="row">
|
||||||
|
<div class="col-6">
|
||||||
|
<h6>{{ translate('dashboard', 'cpuUsage', data['lang']) }}</h6>
|
||||||
|
<div id="m_server_cpu_{{server['server_data']['server_id']}}">
|
||||||
|
<div class="progress mb-1" data-toggle="tooltip" data-placement="top"
|
||||||
|
title="{{server['stats']['cpu']}}">
|
||||||
|
<div class="progress-bar
|
||||||
|
{% if server['stats']['cpu'] <= 33 %}
|
||||||
|
bg-success
|
||||||
|
{% elif 34 <= server['stats']['cpu'] <= 66 %}
|
||||||
|
bg-warning
|
||||||
|
{% else %}
|
||||||
|
bg-danger
|
||||||
|
{% end %}
|
||||||
|
" role="progressbar" style="width: {{server['stats']['cpu']}}%" aria-valuenow="0"
|
||||||
|
aria-valuemin="0" aria-valuemax="100"></div>
|
||||||
|
</div>
|
||||||
|
{{server['stats']['cpu']}}%
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-6">
|
||||||
|
<h6>{{ translate('dashboard', 'memUsage', data['lang']) }}</h6>
|
||||||
|
<div draggable="false" id="m_server_mem_{{server['server_data']['server_id']}}">
|
||||||
|
<div class="progress mb-1" data-toggle="tooltip" data-placement="top"
|
||||||
|
title="{{server['stats']['mem']}}">
|
||||||
|
<div class="progress-bar
|
||||||
|
{% if server['stats']['mem_percent'] <= 33 %}
|
||||||
|
bg-success
|
||||||
|
{% elif 34 <= server['stats']['mem_percent'] <= 66 %}
|
||||||
|
bg-warning
|
||||||
|
{% else %}
|
||||||
|
bg-danger
|
||||||
|
{% end %}
|
||||||
|
" role="progressbar" style="width: {{server['stats']['mem_percent']}}%" aria-valuenow="0"
|
||||||
|
aria-valuemin="0" aria-valuemax="100"></div>
|
||||||
|
</div>
|
||||||
|
{{server['stats']['mem_percent']}}% -
|
||||||
|
|
||||||
|
{% if server['stats']['mem'] == 0 %}
|
||||||
|
0 MB
|
||||||
|
{% else %}
|
||||||
|
{{server['stats']['mem']}}
|
||||||
|
{% end %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<br />
|
||||||
|
<div class="row">
|
||||||
|
<div class="col-6">
|
||||||
|
<h6>{{ translate('dashboard', 'size', data['lang']) }}</h6>
|
||||||
|
<div draggable="false" id="m_server_world_{{server['server_data']['server_id']}}">
|
||||||
|
{{ server['stats']['world_size'] }}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<div class="col-6" style="width: auto;">
|
||||||
|
<h6>{{ translate('dashboard', 'players', data['lang']) }}</h6>
|
||||||
|
<div draggable="false" id="m_server_desc_{{server['server_data']['server_id']}}">
|
||||||
|
{% if server['stats']['int_ping_results'] %}
|
||||||
|
{{ server['stats']['online'] }} / {{ server['stats']['max'] }} {{ translate('dashboard',
|
||||||
|
'max',
|
||||||
|
data['lang']) }} <br />
|
||||||
|
|
||||||
|
{% 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 />
|
||||||
|
{% end %}
|
||||||
|
|
||||||
|
{% if server['stats']['version'] != 'False' %}
|
||||||
|
{{ server['stats']['version'] }}
|
||||||
|
{% end %}
|
||||||
|
{% end %}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
{% end %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% end %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -909,4 +937,4 @@
|
|||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
{% end %}
|
{% end %}
|
@ -34,7 +34,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="server_type">{{ translate('serverWizard', 'serverType', data['lang']) }}</label>
|
<label for="server_type">{{ translate('serverWizard', 'serverType', data['lang']) }}</label>
|
||||||
<select required class="form-control form-control-lg select-css" id="server_type" name="server_type"
|
<select required class="form-control form-control-lg select-css" id="server_type" name="server_type"
|
||||||
onchange="serverTypeChange(this)">
|
onchange="serverTypeChange(this)">
|
||||||
<option value="">{{ translate('serverWizard', 'selectType', data['lang']) }}</option>
|
<option value="">{{ translate('serverWizard', 'selectType', data['lang']) }}</option>
|
||||||
{% for s in data['server_types'] %}
|
{% for s in data['server_types'] %}
|
||||||
<option value="{{ s }}">{{ s.capitalize() }}</option>
|
<option value="{{ s }}">{{ s.capitalize() }}</option>
|
||||||
@ -56,42 +56,42 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="server_name">{{ translate('serverWizard', 'serverName', data['lang']) }}</label>
|
<label for="server_name">{{ translate('serverWizard', 'serverName', data['lang']) }}</label>
|
||||||
<input type="text" class="form-control" id="server_name" name="server_name"
|
<input type="text" class="form-control" id="server_name" name="server_name"
|
||||||
placeholder="{{ translate('serverWizard', 'myNewServer', data['lang']) }}" required>
|
placeholder="{{ translate('serverWizard', 'myNewServer', data['lang']) }}" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<h4 class="card-title">{{ translate('serverWizard', 'quickSettings', data['lang']) }} <small
|
<h4 class="card-title">{{ translate('serverWizard', 'quickSettings', data['lang']) }} <small
|
||||||
style="text-transform: none;"> - {{ translate('serverWizard', 'quickSettingsDescription',
|
style="text-transform: none;"> - {{ translate('serverWizard', 'quickSettingsDescription',
|
||||||
data['lang']) }}</small></h4>
|
data['lang']) }}</small></h4>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-4">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="min_memory1">{{ translate('serverWizard', 'minMem', data['lang']) }} <small> - {{
|
<label for="min_memory1">{{ translate('serverWizard', 'minMem', data['lang']) }} <small> - {{
|
||||||
translate('serverWizard', 'sizeInGB', data['lang']) }}</small></label>
|
translate('serverWizard', 'sizeInGB', data['lang']) }}</small></label>
|
||||||
<input type="number" class="form-control" id="min_memory1" name="min_memory" value="1" step="0.5"
|
<input type="number" class="form-control" id="min_memory1" name="min_memory" value="1" step="0.5"
|
||||||
min="0.5" required>
|
min="0.5" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-sm-3 offset-1">
|
<div class="col-sm-4">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="max_memory1">{{ translate('serverWizard', 'maxMem', data['lang']) }} <small> - {{
|
<label for="max_memory1">{{ translate('serverWizard', 'maxMem', data['lang']) }} <small> - {{
|
||||||
translate('serverWizard', 'sizeInGB', data['lang']) }}</small></label>
|
translate('serverWizard', 'sizeInGB', data['lang']) }}</small></label>
|
||||||
<input type="number" class="form-control" id="max_memory1" name="max_memory" value="2" step="0.5"
|
<input type="number" class="form-control" id="max_memory1" name="max_memory" value="2" step="0.5"
|
||||||
min="0.5" required>
|
min="0.5" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-sm-3 offset-1">
|
<div class="col-sm-4">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="port1">{{ translate('serverWizard', 'serverPort', data['lang']) }} <small> - {{
|
<label for="port1">{{ translate('serverWizard', 'serverPort', data['lang']) }} <small> - {{
|
||||||
translate('serverWizard', 'defaultPort', data['lang']) }}</small></label>
|
translate('serverWizard', 'defaultPort', data['lang']) }}</small></label>
|
||||||
<input type="number" class="form-control" id="port1" name="port" value="25565" step="1" min="1"
|
<input type="number" class="form-control" id="port1" name="port" value="25565" step="1" min="1"
|
||||||
required>
|
required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
@ -100,7 +100,7 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header p-2" id="Role-1">
|
<div class="card-header p-2" id="Role-1">
|
||||||
<p class="mb-0 p-0" data-toggle="collapse" data-target="#collapseRole-1" aria-expanded="true"
|
<p class="mb-0 p-0" data-toggle="collapse" data-target="#collapseRole-1" aria-expanded="true"
|
||||||
aria-controls="collapseRole-1">
|
aria-controls="collapseRole-1">
|
||||||
<i class="fas fa-chevron-down"></i> {{ translate('serverWizard', 'addRole', data['lang']) }}
|
<i class="fas fa-chevron-down"></i> {{ translate('serverWizard', 'addRole', data['lang']) }}
|
||||||
<small style="text-transform: none;"> - {{ translate('serverWizard', 'autoCreate',
|
<small style="text-transform: none;"> - {{ translate('serverWizard', 'autoCreate',
|
||||||
data['lang']) }}</small>
|
data['lang']) }}</small>
|
||||||
@ -111,7 +111,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{% for r in data['roles'] %}
|
{% for r in data['roles'] %}
|
||||||
<span class="d-block menu-option"><label><input name="{{ r['role_id'] }}"
|
<span class="d-block menu-option"><label><input name="{{ r['role_id'] }}"
|
||||||
type="checkbox">
|
type="checkbox">
|
||||||
{{ r['role_name'].capitalize() }}</label></span>
|
{{ r['role_name'].capitalize() }}</label></span>
|
||||||
{% end %}
|
{% end %}
|
||||||
</div>
|
</div>
|
||||||
@ -152,7 +152,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="server_name">{{ translate('serverWizard', 'serverName', data['lang']) }}</label>
|
<label for="server_name">{{ translate('serverWizard', 'serverName', data['lang']) }}</label>
|
||||||
<input type="text" class="form-control" id="server_name" name="server_name" value=""
|
<input type="text" class="form-control" id="server_name" name="server_name" value=""
|
||||||
placeholder="{{ translate('serverWizard', 'myNewServer', data['lang']) }}" required>
|
placeholder="{{ translate('serverWizard', 'myNewServer', data['lang']) }}" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -161,7 +161,7 @@
|
|||||||
<label for="server">{{ translate('serverWizard', 'serverPath', data['lang']) }} <small>{{
|
<label for="server">{{ translate('serverWizard', 'serverPath', data['lang']) }} <small>{{
|
||||||
translate('serverWizard', 'absoluteServerPath', data['lang']) }}</small></label>
|
translate('serverWizard', 'absoluteServerPath', data['lang']) }}</small></label>
|
||||||
<input type="text" class="form-control" id="server_path" name="server_path"
|
<input type="text" class="form-control" id="server_path" name="server_path"
|
||||||
placeholder="/var/opt/server" required>
|
placeholder="/var/opt/server" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -169,7 +169,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="server_jar">{{ translate('serverWizard', 'serverJar', data['lang']) }}</label>
|
<label for="server_jar">{{ translate('serverWizard', 'serverJar', data['lang']) }}</label>
|
||||||
<input type="text" class="form-control" id="server_jar" name="server_jar" value=""
|
<input type="text" class="form-control" id="server_jar" name="server_jar" value=""
|
||||||
placeholder="paper.jar" required>
|
placeholder="paper.jar" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -178,35 +178,35 @@
|
|||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<h4 class="card-title">{{ translate('serverWizard', 'quickSettings', data['lang']) }} <small
|
<h4 class="card-title">{{ translate('serverWizard', 'quickSettings', data['lang']) }} <small
|
||||||
style="text-transform: none;"> - {{ translate('serverWizard', 'quickSettingsDescription',
|
style="text-transform: none;"> - {{ translate('serverWizard', 'quickSettingsDescription',
|
||||||
data['lang']) }}</small></h4>
|
data['lang']) }}</small></h4>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-4">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="min_memory2">{{ translate('serverWizard', 'minMem', data['lang']) }} <small> - {{
|
<label for="min_memory2">{{ translate('serverWizard', 'minMem', data['lang']) }} <small> - {{
|
||||||
translate('serverWizard', 'sizeInGB', data['lang']) }}</small></label>
|
translate('serverWizard', 'sizeInGB', data['lang']) }}</small></label>
|
||||||
<input type="number" class="form-control" id="min_memory2" name="min_memory" value="1" step="0.5"
|
<input type="number" class="form-control" id="min_memory2" name="min_memory" value="1" step="0.5"
|
||||||
min="0.5" required>
|
min="0.5" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-sm-3 offset-1">
|
<div class="col-sm-4">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="max_memory2">{{ translate('serverWizard', 'maxMem', data['lang']) }} <small> - {{
|
<label for="max_memory2">{{ translate('serverWizard', 'maxMem', data['lang']) }} <small> - {{
|
||||||
translate('serverWizard', 'sizeInGB', data['lang']) }}</small></label>
|
translate('serverWizard', 'sizeInGB', data['lang']) }}</small></label>
|
||||||
<input type="number" class="form-control" id="max_memory2" name="max_memory" value="2" step="0.5"
|
<input type="number" class="form-control" id="max_memory2" name="max_memory" value="2" step="0.5"
|
||||||
min="0.5" required>
|
min="0.5" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="col-sm-3 offset-1">
|
<div class="col-sm-4">
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="port2">{{ translate('serverWizard', 'serverPort', data['lang']) }} <small> - {{
|
<label for="port2">{{ translate('serverWizard', 'serverPort', data['lang']) }} <small> - {{
|
||||||
translate('serverWizard', 'defaultPort', data['lang']) }}</small></label>
|
translate('serverWizard', 'defaultPort', data['lang']) }}</small></label>
|
||||||
<input type="number" class="form-control" id="port2" name="port" value="25565" step="1" min="1"
|
<input type="number" class="form-control" id="port2" name="port" value="25565" step="1" min="1"
|
||||||
required>
|
required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
@ -215,7 +215,7 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header p-2" id="Role-2">
|
<div class="card-header p-2" id="Role-2">
|
||||||
<p class="mb-0 p-0" data-toggle="collapse" data-target="#collapseRole-2" aria-expanded="true"
|
<p class="mb-0 p-0" data-toggle="collapse" data-target="#collapseRole-2" aria-expanded="true"
|
||||||
aria-controls="collapseRole-2">
|
aria-controls="collapseRole-2">
|
||||||
<i class="fas fa-chevron-down"></i> {{ translate('serverWizard', 'addRole', data['lang']) }}
|
<i class="fas fa-chevron-down"></i> {{ translate('serverWizard', 'addRole', data['lang']) }}
|
||||||
<small style="text-transform: none;"> - {{ translate('serverWizard', 'autoCreate',
|
<small style="text-transform: none;"> - {{ translate('serverWizard', 'autoCreate',
|
||||||
data['lang']) }}</small>
|
data['lang']) }}</small>
|
||||||
@ -226,7 +226,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{% for r in data['roles'] %}
|
{% for r in data['roles'] %}
|
||||||
<span class="d-block menu-option"><label><input name="{{ r['role_id'] }}"
|
<span class="d-block menu-option"><label><input name="{{ r['role_id'] }}"
|
||||||
type="checkbox">
|
type="checkbox">
|
||||||
{{ r['role_name'].capitalize() }}</label></span>
|
{{ r['role_name'].capitalize() }}</label></span>
|
||||||
{% end %}
|
{% end %}
|
||||||
</div>
|
</div>
|
||||||
@ -266,7 +266,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="server_name">{{ translate('serverWizard', 'serverName', data['lang']) }}</label>
|
<label for="server_name">{{ translate('serverWizard', 'serverName', data['lang']) }}</label>
|
||||||
<input type="text" class="form-control" id="server_name" name="server_name" value=""
|
<input type="text" class="form-control" id="server_name" name="server_name" value=""
|
||||||
placeholder="{{ translate('serverWizard', 'myNewServer', data['lang']) }}" required>
|
placeholder="{{ translate('serverWizard', 'myNewServer', data['lang']) }}" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -275,7 +275,7 @@
|
|||||||
<label for="server">{{ translate('serverWizard', 'zipPath', data['lang']) }} <small>{{
|
<label for="server">{{ translate('serverWizard', 'zipPath', data['lang']) }} <small>{{
|
||||||
translate('serverWizard', 'absoluteZipPath', data['lang']) }}</small></label>
|
translate('serverWizard', 'absoluteZipPath', data['lang']) }}</small></label>
|
||||||
<input type="text" class="form-control" id="server_path" name="server_path"
|
<input type="text" class="form-control" id="server_path" name="server_path"
|
||||||
placeholder="/var/opt/server.zip" required>
|
placeholder="/var/opt/server.zip" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -294,7 +294,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<label for="server_jar">{{ translate('serverWizard', 'serverJar', data['lang']) }}</label>
|
<label for="server_jar">{{ translate('serverWizard', 'serverJar', data['lang']) }}</label>
|
||||||
<input type="text" class="form-control" id="server_jar" name="server_jar" value=""
|
<input type="text" class="form-control" id="server_jar" name="server_jar" value=""
|
||||||
placeholder="paper.jar" required>
|
placeholder="paper.jar" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -303,7 +303,7 @@
|
|||||||
|
|
||||||
<div class="col-sm-3">
|
<div class="col-sm-3">
|
||||||
<h4 class="card-title">{{ translate('serverWizard', 'quickSettings', data['lang']) }} <small
|
<h4 class="card-title">{{ translate('serverWizard', 'quickSettings', data['lang']) }} <small
|
||||||
style="text-transform: none;"> - {{ translate('serverWizard', 'quickSettingsDescription',
|
style="text-transform: none;"> - {{ translate('serverWizard', 'quickSettingsDescription',
|
||||||
data['lang']) }}</small></h4>
|
data['lang']) }}</small></h4>
|
||||||
<hr>
|
<hr>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -313,7 +313,7 @@
|
|||||||
<label for="min_memory3">{{ translate('serverWizard', 'minMem', data['lang']) }} <small> - {{
|
<label for="min_memory3">{{ translate('serverWizard', 'minMem', data['lang']) }} <small> - {{
|
||||||
translate('serverWizard', 'sizeInGB', data['lang']) }}</small></label>
|
translate('serverWizard', 'sizeInGB', data['lang']) }}</small></label>
|
||||||
<input type="number" class="form-control" id="min_memory3" name="min_memory" value="1" step="0.5"
|
<input type="number" class="form-control" id="min_memory3" name="min_memory" value="1" step="0.5"
|
||||||
min="0.5" required>
|
min="0.5" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -322,7 +322,7 @@
|
|||||||
<label for="max_memory3">{{ translate('serverWizard', 'maxMem', data['lang']) }} <small> - {{
|
<label for="max_memory3">{{ translate('serverWizard', 'maxMem', data['lang']) }} <small> - {{
|
||||||
translate('serverWizard', 'sizeInGB', data['lang']) }}</small></label>
|
translate('serverWizard', 'sizeInGB', data['lang']) }}</small></label>
|
||||||
<input type="number" class="form-control" id="max_memory3" name="max_memory" value="2" step="0.5"
|
<input type="number" class="form-control" id="max_memory3" name="max_memory" value="2" step="0.5"
|
||||||
min="0.5" required>
|
min="0.5" required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -331,7 +331,7 @@
|
|||||||
<label for="port3">{{ translate('serverWizard', 'serverPort', data['lang']) }} <small> - {{
|
<label for="port3">{{ translate('serverWizard', 'serverPort', data['lang']) }} <small> - {{
|
||||||
translate('serverWizard', 'defaultPort', data['lang']) }}</small></label>
|
translate('serverWizard', 'defaultPort', data['lang']) }}</small></label>
|
||||||
<input type="number" class="form-control" id="port3" name="port" value="25565" step="1" min="1"
|
<input type="number" class="form-control" id="port3" name="port" value="25565" step="1" min="1"
|
||||||
required>
|
required>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -341,7 +341,7 @@
|
|||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header p-2" id="Role-3">
|
<div class="card-header p-2" id="Role-3">
|
||||||
<p class="mb-0 p-0" data-toggle="collapse" data-target="#collapseRole-3"
|
<p class="mb-0 p-0" data-toggle="collapse" data-target="#collapseRole-3"
|
||||||
aria-expanded="true" aria-controls="collapseRole-3">
|
aria-expanded="true" aria-controls="collapseRole-3">
|
||||||
<i class="fas fa-chevron-down"></i> {{ translate('serverWizard', 'addRole', data['lang'])
|
<i class="fas fa-chevron-down"></i> {{ translate('serverWizard', 'addRole', data['lang'])
|
||||||
}} <small style="text-transform: none;"> - {{ translate('serverWizard', 'autoCreate',
|
}} <small style="text-transform: none;"> - {{ translate('serverWizard', 'autoCreate',
|
||||||
data['lang']) }}</small>
|
data['lang']) }}</small>
|
||||||
@ -352,7 +352,7 @@
|
|||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
{% for r in data['roles'] %}
|
{% for r in data['roles'] %}
|
||||||
<span class="d-block menu-option"><label><input name="{{ r['role_id'] }}"
|
<span class="d-block menu-option"><label><input name="{{ r['role_id'] }}"
|
||||||
type="checkbox">
|
type="checkbox">
|
||||||
{{ r['role_name'].capitalize() }}</label></span>
|
{{ r['role_name'].capitalize() }}</label></span>
|
||||||
{% end %}
|
{% end %}
|
||||||
</div>
|
</div>
|
||||||
@ -368,7 +368,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal fade" id="dir_select" tabindex="-1" role="dialog" aria-labelledby="dir_select"
|
<div class="modal fade" id="dir_select" tabindex="-1" role="dialog" aria-labelledby="dir_select"
|
||||||
aria-hidden="true">
|
aria-hidden="true">
|
||||||
<div class="modal-dialog" role="document">
|
<div class="modal-dialog" role="document">
|
||||||
<div class="modal-content">
|
<div class="modal-content">
|
||||||
<div class="modal-header">
|
<div class="modal-header">
|
||||||
@ -380,7 +380,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<div class="tree-ctx-item" id="main-tree-div" data-path=""
|
<div class="tree-ctx-item" id="main-tree-div" data-path=""
|
||||||
style="overflow: scroll; max-height:75%;">
|
style="overflow: scroll; max-height:75%;">
|
||||||
<input type="radio" id="main-tree-input" name="root_path" value="" checked>
|
<input type="radio" id="main-tree-input" name="root_path" value="" checked>
|
||||||
<span id="main-tree" class="files-tree-title tree-caret-down root-dir" data-path="">
|
<span id="main-tree" class="files-tree-title tree-caret-down root-dir" data-path="">
|
||||||
<i class="far fa-folder"></i>
|
<i class="far fa-folder"></i>
|
||||||
@ -401,7 +401,7 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<button id="zip_submit" type="submit" title="You must select server root dir first" disabled
|
<button id="zip_submit" type="submit" title="You must select server root dir first" disabled
|
||||||
class="btn btn-primary mr-2">{{ translate('serverWizard', 'importServerButton', data['lang'])
|
class="btn btn-primary mr-2">{{ translate('serverWizard', 'importServerButton', data['lang'])
|
||||||
}}</button>
|
}}</button>
|
||||||
<button type="reset" class="btn btn-danger mr-2">{{ translate('serverWizard', 'resetForm', data['lang'])
|
<button type="reset" class="btn btn-danger mr-2">{{ translate('serverWizard', 'resetForm', data['lang'])
|
||||||
}}</button>
|
}}</button>
|
||||||
@ -710,4 +710,4 @@
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
{% end %}
|
{% end %}
|
Loading…
Reference in New Issue
Block a user