chg: [event:view] Correctly display title to large by truncating

(+ellipsis)
pull/4671/head
mokaddem 2019-05-23 15:07:43 +02:00
parent f1295d7c16
commit 46be1e918e
3 changed files with 9 additions and 3 deletions

View File

@ -46,7 +46,7 @@ class AppController extends Controller
public $helpers = array('Utility', 'OrgImg', 'FontAwesome');
private $__queryVersion = '70';
private $__queryVersion = '71';
public $pyMispVersion = '2.4.106';
public $phpmin = '7.0';
public $phprec = '7.2';

View File

@ -49,7 +49,6 @@
<?php
endif;
$title = h($event['Event']['info']);
if (strlen($title) > 58) $title = substr($title, 0, 55) . '...';
$table_data = array();
$table_data[] = array('key' => __('Event ID'), 'value' => $event['Event']['id']);
$table_data[] = array(
@ -327,7 +326,7 @@
?>
<div class="row-fluid">
<div class="span8">
<h2><?php echo ($extended ? '[' . __('Extended view') . '] ' : '') . nl2br($title); ?></h2>
<h2 class="ellipsis-overflow"><?php echo ($extended ? '[' . __('Extended view') . '] ' : '') . nl2br($title); ?></h2>
<?php echo $this->element('genericElements/viewMetaTable', array('table_data' => $table_data)); ?>
</div>
<div class="related span4">

View File

@ -37,6 +37,13 @@ pre {
font-size: 11px;
}
.ellipsis-overflow {
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.nav-list {
padding-right: 5px;
}