mirror of https://github.com/MISP/MISP
minor layout improvements
parent
c3388b6a4a
commit
8e9cb8a367
|
@ -22,7 +22,7 @@
|
|||
<head>
|
||||
<?php echo $this->Html->charset(); ?>
|
||||
<title>
|
||||
<?php __('CyDefSIG: Cyber-Defence Signatures: sharing detection patterns'); ?>
|
||||
CyDefSIG -
|
||||
<?php echo $title_for_layout; ?>
|
||||
</title>
|
||||
<?php
|
||||
|
|
|
@ -53,47 +53,3 @@
|
|||
<?php echo $this->element('actions_menu'); ?>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="related">
|
||||
<h3><?php __('Related Events');?></h3>
|
||||
<?php if (!empty($user['Event'])):?>
|
||||
<table cellpadding = "0" cellspacing = "0">
|
||||
<tr>
|
||||
<th><?php __('Id'); ?></th>
|
||||
<th><?php __('Org'); ?></th>
|
||||
<th><?php __('Date'); ?></th>
|
||||
<th><?php __('Risk'); ?></th>
|
||||
<th><?php __('Info'); ?></th>
|
||||
<th><?php __('User Id'); ?></th>
|
||||
<th class="actions"><?php __('Actions');?></th>
|
||||
</tr>
|
||||
<?php
|
||||
$i = 0;
|
||||
foreach ($user['Event'] as $event):
|
||||
$class = null;
|
||||
if ($i++ % 2 == 0) {
|
||||
$class = ' class="altrow"';
|
||||
}
|
||||
?>
|
||||
<tr<?php echo $class;?>>
|
||||
<td><?php echo $event['id'];?></td>
|
||||
<td><?php echo $event['org'];?></td>
|
||||
<td><?php echo $event['date'];?></td>
|
||||
<td><?php echo $event['risk'];?></td>
|
||||
<td><?php echo $event['info'];?></td>
|
||||
<td><?php echo $event['user_id'];?></td>
|
||||
<td class="actions">
|
||||
<?php echo $this->Html->link(__('View', true), array('controller' => 'events', 'action' => 'view', $event['id'])); ?>
|
||||
<?php echo $this->Html->link(__('Edit', true), array('controller' => 'events', 'action' => 'edit', $event['id'])); ?>
|
||||
<?php echo $this->Html->link(__('Delete', true), array('controller' => 'events', 'action' => 'delete', $event['id']), null, sprintf(__('Are you sure you want to delete # %s?', true), $event['id'])); ?>
|
||||
</td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
</table>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="actions">
|
||||
<ul>
|
||||
<li><?php echo $this->Html->link(__('New Event', true), array('controller' => 'events', 'action' => 'add'));?> </li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
|
|
@ -68,6 +68,10 @@ h4 {
|
|||
ul, li {
|
||||
margin: 0 12px;
|
||||
}
|
||||
p {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
|
||||
|
||||
/** Layout **/
|
||||
#container {
|
||||
|
|
Loading…
Reference in New Issue