mirror of
https://github.com/unraid/webgui.git
synced 2026-01-28 12:39:20 -06:00
feat(docker): option to disable readmore-js on container table
This PR adds a user configurable option to disable readmore-js usage on the docker container table.
This commit is contained in:
@@ -959,6 +959,12 @@ Before you can start the Docker service for the first time, please specify an im
|
||||
Once started, Docker will always automatically start after the array has been started.
|
||||
:end
|
||||
|
||||
:docker_readmore_help:
|
||||
Some systems with a lot of docker containers may experience lag using the main Docker page.
|
||||
|
||||
Setting this to "Yes" may help speed up page loads.
|
||||
:end
|
||||
|
||||
:docker_timeout_help:
|
||||
The time in seconds to allow a container to gracefully stop before forcing it to stop
|
||||
:end
|
||||
|
||||
@@ -19,6 +19,8 @@ Nchan="docker_load:stop"
|
||||
*/
|
||||
?>
|
||||
<?
|
||||
require_once "$docroot/plugins/dynamix.docker.manager/include/DockerClient.php";
|
||||
|
||||
$width = in_array($theme,['white','black']) ? -58: -44;
|
||||
$top = in_array($theme,['white','black']) ? 40 : 20;
|
||||
$busy = "<i class='fa fa-spin fa-circle-o-notch'></i> "._('Please wait')."... "._('starting up containers');
|
||||
@@ -80,7 +82,9 @@ function resetSorting() {
|
||||
}
|
||||
function listview() {
|
||||
var more = $.cookie('docker_listview_mode')=='advanced';
|
||||
<?if(($dockercfg['DOCKER_READMORE']??'yes') === 'yes'):?>
|
||||
$('.docker_readmore').readmore({maxHeight:32,moreLink:"<a href='#' style='text-align:center'><i class='fa fa-chevron-down'></i></a>",lessLink:"<a href='#' style='text-align:center'><i class='fa fa-chevron-up'></i></a>"});
|
||||
<?endif;?>
|
||||
$('input.autostart').each(function(){
|
||||
var wait = $('#'+$(this).prop('id').replace('auto','wait'));
|
||||
var auto = $(this).prop('checked');
|
||||
|
||||
@@ -150,6 +150,16 @@ _(Enable Docker)_:
|
||||
|
||||
:docker_enable_help:
|
||||
|
||||
_(Enable container table readmore-js)_:
|
||||
: <select id="DOCKER_READMORE" name="DOCKER_READMORE">
|
||||
|
||||
<?=mk_option($dockercfg['DOCKER_READMORE'], 'yes', _('Yes'))?>
|
||||
<?=mk_option($dockercfg['DOCKER_READMORE'], 'no', _('No'))?>
|
||||
|
||||
</select>
|
||||
|
||||
:docker_readmore_help:
|
||||
|
||||
_(Docker Stop Timeout)_:
|
||||
: <input class='narrow' id="DOCKER_TIMEOUT" type="number" name="DOCKER_TIMEOUT" min='1' value="<?=$dockercfg['DOCKER_TIMEOUT']??''?>">_(seconds)_
|
||||
|
||||
|
||||
Reference in New Issue
Block a user