mirror of https://github.com/MISP/MISP
fix: [UI] Show event description just when needed
parent
a58e58ea9c
commit
eea43a49fe
|
@ -120,10 +120,10 @@
|
|||
echo sprintf(
|
||||
'<div class="view"><div class="row-fluid"><div class="span8">%s</div><div class="span4">%s</div></div><div id="accordion"></div>%s%s</div>%s',
|
||||
sprintf(
|
||||
'<div><h2 class="ellipsis-overflow">%s</h2>%s%s<table class="meta_table table table-striped table-condensed">%s</table></div>',
|
||||
'<div><h2 class="overflow">%s</h2>%s%s<table class="meta_table table table-striped table-condensed">%s</table></div>',
|
||||
h($title),
|
||||
empty($description) ? '' : sprintf('<p>%s</p>', h($description)),
|
||||
empty($description_html) ? '' : sprintf('<p>%s</p>', $description_html),
|
||||
empty($description) ? '' : sprintf('<p class="description">%s</p>', h($description)),
|
||||
empty($description_html) ? '' : sprintf('<p class="description">%s</p>', $description_html),
|
||||
$listElements
|
||||
),
|
||||
$side_panels,
|
||||
|
|
|
@ -3,12 +3,10 @@
|
|||
'css' => ['query-builder.default', 'attack_matrix'],
|
||||
'js' => ['doT', 'extendext', 'moment.min', 'query-builder', 'network-distribution-graph', 'd3', 'd3.custom', 'jquery-ui.min'],
|
||||
]);
|
||||
$title = ($extended ? '[' . __('Extended view') . '] ' : '') . $event['Event']['info'];
|
||||
echo $this->element(
|
||||
'genericElements/SingleViews/single_view',
|
||||
[
|
||||
'title' => $title,
|
||||
'description' => mb_strlen($title) > 40 ? $event['Event']['info'] : null,
|
||||
'title' => ($extended ? '[' . __('Extended view') . '] ' : '') . $event['Event']['info'],
|
||||
'data' => $event,
|
||||
'fields' => [
|
||||
[
|
||||
|
|
|
@ -65,6 +65,18 @@ pre {
|
|||
overflow: hidden;
|
||||
}
|
||||
|
||||
h2.overflow {
|
||||
font-weight: normal;
|
||||
line-height: 20px;
|
||||
font-size: 12px;
|
||||
}
|
||||
|
||||
h2.overflow::first-line {
|
||||
font-weight: bold;
|
||||
line-height: 40px;
|
||||
font-size: 25px;
|
||||
}
|
||||
|
||||
.nav-list {
|
||||
padding-right: 5px;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue