javascript: $('body').on( 'click','button', function(){ var tmp = this.id $("#stop").prop('disabled', true); $("#start").prop('disabled', true); var url = "/daemon/" + tmp; $("#stop").prop('disabled', true); $("#start").prop('disabled', true); $.get(url, function( data ) { console.log(data); if (data == 'stop') { $("#stop").prop('disabled', true); $("#start").prop('disabled', false); $("#daemon").removeClass('uk-badge-success').addClass('uk-badge-danger'); $("#daemon").text('OFF'); } if (data == 'start') { $("#stop").prop('disabled', false); $("#start").prop('disabled', true); $("#daemon").removeClass('uk-badge-danger').addClass('uk-badge-success'); $("#daemon").text('ON'); } }); }); div.uk-grid div.uk-width-medium-1-1 div.uk-panel.uk-panel-box div.uk-text-large.uk-text-bold   Splash Daemon status table.uk-table tr td b Actions : div.uk-button-group - if @status == false button.uk-button(id="start" disabled): i.uk-icon-play button.uk-button(id="stop"): i.uk-icon-stop - else button.uk-button(id="start"): i.uk-icon-play button.uk-button(id="stop" disabled): i.uk-icon-stop td b Status : - if @status == false div.uk-badge.uk-badge-success.uk-badge-notifications(id="daemon") ON - else div.uk-badge.uk-badge-danger.uk-badge-notifications(id="daemon") OFF div.uk-grid div.uk-width-medium-1-2 div.uk-panel.uk-panel-box span.uk-text-large.uk-text-bold Global Configuration br span.uk-text-bold Logger and display : ul li Level: #{@data[:loggers][:level]} li Daemon log filename: #{@data[:loggers][:daemon][:file]} li Web log filename: #{@data[:loggers][:web][:file]} li Emoji in CLI: #{@data[:loggers][:cli][:emoji]} li Color in CLI: #{@data[:loggers][:cli][:color]} span.uk-text-bold Templates : ul li Execution Report Template file: #{@data[:execution_template_path]} div.uk-width-medium-1-2 div.uk-panel.uk-panel-box span.uk-text-large.uk-text-bold Transport and Backend br span.uk-text-bold Backend : ul li Backend type: #{@data[:backends][:stores][:execution_trace][:type]} - if @data[:backends][:stores][:execution_trace][:type] == :file li Path: #{@data[:backends][:stores][:execution_trace][:path]} - else li Host: #{@data[:backends][:stores][:execution_trace][:host]} li Port: #{@data[:backends][:stores][:execution_trace][:port]} li base: #{@data[:backends][:stores][:execution_trace][:base]} - unless @data[:backends][:stores][:execution_trace][:auth].nil? li Authentification: Active (see config file) span.uk-text-bold Transport : ul li Transport: #{@data[:transports][:active]} - if @data[:transports][:active] == :rabbitmq li Host: #{@data[:transports][:rabbitmq][:host]} li Port: #{@data[:transports][:rabbitmq][:port]} li Vhost: #{@data[:transports][:rabbitmq][:vhost]} - unless @data[:transports][:rabbitmq][:user].nil? li Authentification: Active (see config file) div.uk-grid div.uk-width-medium-1-2 div.uk-panel.uk-panel-box span.uk-text-large.uk-text-bold Daemon br ul li Logs monitoring scheduling: #{@data[:daemon_logmon_scheduling]} li Processes monitoring scheduling: #{@data[:daemon_process_scheduling]} li Splash metrics monitoring scheduling: #{@data[:daemon_metrics_scheduling]} li Splash daemon process name: #{@data[:daemon_process_name]} li Splash daemon PID file path: #{@data[:pid_path]} li Splash daemon PID file : #{@data[:pid_file]} li Splash daemon trace path: #{@data[:trace_path]} li Splash daemon trace STDOUT file: #{@data[:stdout_trace]} li Splash daemon trace STDERR: #{@data[:stderr_trace]} div.uk-width-medium-1-2 div.uk-panel.uk-panel-box span.uk-text-large.uk-text-bold Web UI br span.uk-text-bold Webadmin : ul li IP: #{@data[:webadmin_ip]} li Port: #{@data[:webadmin_port]} span.uk-text-bold Prometheus PushGateway : ul li Host: #{@data[:prometheus_pushgateway_host]} li Port: #{@data[:prometheus_pushgateway_port]}