backports murph-skeleton
This commit is contained in:
parent
59aaffb0b6
commit
7bd99d0af8
|
@ -461,6 +461,17 @@ fieldset.form-group {
|
|||
}
|
||||
}
|
||||
|
||||
.modal-dialog-large {
|
||||
max-width: 80%;
|
||||
}
|
||||
|
||||
.output {
|
||||
&-console {
|
||||
background: #073642;
|
||||
line-height: normal;
|
||||
}
|
||||
}
|
||||
|
||||
.CodeMirror-fullscreen, .editor-toolbar.fullscreen {
|
||||
z-index: 2000;
|
||||
}
|
||||
|
|
|
@ -65,6 +65,7 @@ class SymfonyCacheManager
|
|||
'command' => 'cache:clear',
|
||||
'-e' => $this->kernel->getEnvironment(),
|
||||
'--no-warmup' => null,
|
||||
'--ansi' => null,
|
||||
]);
|
||||
|
||||
$application->run($input, $output);
|
||||
|
|
|
@ -10,6 +10,8 @@ use Symfony\Component\EventDispatcher\EventDispatcherInterface;
|
|||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Symfony\Component\HttpFoundation\Response;
|
||||
use Symfony\Component\Routing\Annotation\Route;
|
||||
use SensioLabs\AnsiConverter\AnsiToHtmlConverter;
|
||||
use SensioLabs\AnsiConverter\Theme\SolarizedTheme;
|
||||
|
||||
/**
|
||||
* @Route("/admin/task")
|
||||
|
@ -45,7 +47,8 @@ class TaskAdminController extends AdminController
|
|||
$event = new TaskRunRequestedEvent($task, $request->query, $output);
|
||||
$eventDispatcher->dispatch($event, TaskRunRequestedEvent::RUN_REQUEST_EVENT);
|
||||
|
||||
$content = $output->fetch();
|
||||
$converter = new AnsiToHtmlConverter(new SolarizedTheme());
|
||||
$content = $converter->convert($output->fetch());
|
||||
|
||||
return $this->render('@Core/task/task_admin/run.html.twig', [
|
||||
'output' => $content,
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
<div class="modal-dialog">
|
||||
<div class="modal-dialog modal-dialog-large">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title">
|
||||
|
@ -9,7 +9,7 @@
|
|||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<pre>{{ output|trim }}</pre>
|
||||
<pre class="output-console">{{ output|raw }}</pre>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">{{ 'Close'|trans }}</button>
|
||||
|
|
Loading…
Reference in a new issue