mirror of https://github.com/MISP/MISP
distribution
show "All" if distribution is All communities in Events/index.ctp and Events/view.ctp.pull/63/head
parent
c452027340
commit
45cbe60aa7
|
@ -54,7 +54,7 @@
|
|||
<?php if ('true' == Configure::read('CyDefSIG.sync')): ?>
|
||||
<?php if ('true' == Configure::read('CyDefSIG.private')): ?>
|
||||
<td class="short" onclick="document.location ='<?php echo $this->Html->url(array('action' => 'view', $event['Event']['id']), true);?>';">
|
||||
<?php echo $event['Event']['distribution'] != 'All communities' ? $event['Event']['distribution'] : ' ';?></td>
|
||||
<?php echo $event['Event']['distribution'] != 'All communities' ? $event['Event']['distribution'] : 'All';?></td>
|
||||
<?php else: ?>
|
||||
<td class="short" onclick="document.location ='<?php echo $this->Html->url(array('action' => 'view', $event['Event']['id']), true);?>';">
|
||||
<?php echo ($event['Event']['private']) ? 'Private' : ''; ?> </td>
|
||||
|
|
|
@ -207,7 +207,7 @@ if (isset($relatedAttributes[$attribute['id']]) && (null != $relatedAttributes[$
|
|||
<td class="short" style="text-align: center;"><?php echo $attribute['to_ids'] ? 'Yes' : 'No';?></td>
|
||||
<?php if ('true' == Configure::read('CyDefSIG.sync')): ?>
|
||||
<?php if ('true' == Configure::read('CyDefSIG.private')): ?>
|
||||
<td class="short" style="text-align: center;"><?php echo $attribute['distribution'] != 'All communities' ? $attribute['distribution'] : ' ';?></td>
|
||||
<td class="short" style="text-align: center;"><?php echo $attribute['distribution'] != 'All communities' ? $attribute['distribution'] : 'All';?></td>
|
||||
<?php else:?>
|
||||
<td class="short" style="text-align: center;"><?php echo $attribute['private'] ? 'Private' : ' ';?></td>
|
||||
<?php endif;?>
|
||||
|
|
Loading…
Reference in New Issue