mirror of https://github.com/MISP/MISP
fix: [workflows] Removed unused views and fix end of files
parent
b8a9bedcbc
commit
8a98815b75
|
@ -1,47 +0,0 @@
|
|||
<div>
|
||||
<?php if (empty($trigger['GroupedWorkflows']['blocking']) && empty($trigger['GroupedWorkflows']['non-blocking'])): ?>
|
||||
<?= __('No workflows listen to this trigger') ?>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($trigger['GroupedWorkflows']['blocking'])): ?>
|
||||
<ul class="unstyled">
|
||||
<li class="bold">
|
||||
<i class="bold fa-fw <?= $this->FontAwesome->getClass('hourglass-start') ?>" style="font-size: larger;" title="<?= __('Blocking execution path') ?>"></i>
|
||||
<?= __('Blocking') ?>
|
||||
</li>
|
||||
<?php foreach ($trigger['GroupedWorkflows']['blocking'] as $i => $workflow) : ?>
|
||||
<li>
|
||||
<i class="fa-fw fa-rotate-90 <?= $this->FontAwesome->getClass(empty($workflow['Workflow']['enabled']) ? 'arrow-right' : 'level-up-alt') ?>" style="margin-left: <?= $i+1 ?>em"></i>
|
||||
<a
|
||||
href="<?= $baseurl . '/workflows/view/' . h($workflow['Workflow']['id']) ?>"
|
||||
title="<?= empty($workflow['Workflow']['enabled']) ? __('This workflow is disabled') : h($workflow['Workflow']['description']) ?>"
|
||||
class="<?= empty($workflow['Workflow']['enabled']) ? 'muted' : '' ?>"
|
||||
style="<?= empty($workflow['Workflow']['enabled']) ? 'text-decoration: line-through;' : '' ?>"
|
||||
>
|
||||
<?= h($workflow['Workflow']['name']) ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
<?php if (!empty($trigger['GroupedWorkflows']['non-blocking'])): ?>
|
||||
<ul class="unstyled">
|
||||
<li class="bold">
|
||||
<i class="fa-fw <?= $this->FontAwesome->getClass('random') ?>" title="<?= __('Concurrent execution path') ?>"></i>
|
||||
<?= __('Concurrent') ?>
|
||||
</li>
|
||||
<?php foreach ($trigger['GroupedWorkflows']['non-blocking'] as $i => $workflow) : ?>
|
||||
<li>
|
||||
<i class="fa-fw <?= $this->FontAwesome->getClass('arrow-right') ?>" title="<?= __('Concurrent execution path') ?>" style="margin-left: <?= 1 ?>em"></i>
|
||||
<a
|
||||
href="<?= $baseurl . '/workflows/view/' . h($workflow['Workflow']['id']) ?>"
|
||||
title="<?= empty($workflow['Workflow']['enabled']) ? __('This workflow is disabled') : h($workflow['Workflow']['description']) ?>"
|
||||
class="<?= empty($workflow['Workflow']['enabled']) ? 'muted' : '' ?>"
|
||||
style="<?= empty($workflow['Workflow']['enabled']) ? 'text-decoration: line-through;' : '' ?>"
|
||||
>
|
||||
<?= h($workflow['Workflow']['name']) ?>
|
||||
</a>
|
||||
</li>
|
||||
<?php endforeach; ?>
|
||||
</ul>
|
||||
<?php endif; ?>
|
||||
</div>
|
|
@ -1,20 +0,0 @@
|
|||
<li data-workflowid="<?= h($workflow['Workflow']['id']) ?>">
|
||||
<i class="<?= $this->FontAwesome->getClass('arrows-alt-v') ?>"></i>
|
||||
<div>
|
||||
<div style="display: flex;">
|
||||
<strong
|
||||
title="<?= empty($workflow['Workflow']['enabled']) ? __('This workflow is disabled') : h($workflow['Workflow']['description']) ?>"
|
||||
class="<?= empty($workflow['Workflow']['enabled']) ? 'muted' : '' ?>"
|
||||
style="font-size: larger; <?= empty($workflow['Workflow']['enabled']) ? 'text-decoration: line-through;' : '' ?>"
|
||||
>
|
||||
<?= h($workflow['Workflow']['name']) ?>
|
||||
</strong>
|
||||
<span style="font-size: smaller; margin-left: auto;">
|
||||
<?= $this->element('genericElements/SingleViews/Fields/orgField', ['data' => $workflow, 'field' => ['path' => 'Organisation']]) ?>
|
||||
</span>
|
||||
</div>
|
||||
<div class="muted ellipsis-overflow">
|
||||
<?= h($workflow['Workflow']['description']) ?>
|
||||
</div>
|
||||
</div>
|
||||
</li>
|
|
@ -58,4 +58,4 @@ $invalidMarkdown = substr_count($markdown, PHP_EOL) <= 2;
|
|||
}
|
||||
}
|
||||
</script>
|
||||
<?php endif; ?>
|
||||
<?php endif; ?>
|
||||
|
|
|
@ -51,4 +51,4 @@ if (!$ajax) {
|
|||
error: xhrFailCallback,
|
||||
});
|
||||
}
|
||||
</script>
|
||||
</script>
|
||||
|
|
|
@ -61,4 +61,4 @@ echo $this->element(
|
|||
overflow: auto;
|
||||
resize: both;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
|
@ -311,4 +311,4 @@ echo $this->element('genericElements/assetLoader', [
|
|||
.dropdown-menu li.disabled a {
|
||||
pointer-events: none;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
|
@ -18,4 +18,4 @@ echo $this->element('/genericElements/SideMenu/side_menu', [
|
|||
<?php endforeach; ?>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -92,4 +92,4 @@ echo $this->element(
|
|||
overflow: auto;
|
||||
resize: both;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
|
@ -137,4 +137,4 @@
|
|||
]
|
||||
]);
|
||||
|
||||
echo $this->element('/Workflows/infoModal');
|
||||
echo $this->element('/Workflows/infoModal');
|
||||
|
|
|
@ -79,4 +79,4 @@ echo $this->element(
|
|||
overflow: auto;
|
||||
resize: both;
|
||||
}
|
||||
</style>
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue