show org for admin

pull/61/head
Christophe Vandeplas 2012-03-06 07:45:02 +01:00
parent b0bb827261
commit cd78cb260f
2 changed files with 3 additions and 3 deletions

View File

@ -3,7 +3,7 @@
<table cellpadding="0" cellspacing="0">
<tr>
<th><?php echo $this->Paginator->sort('id');?></th>
<?php if ('true' == Configure::read('CyDefSIG.showorg')): ?>
<?php if ('true' == Configure::read('CyDefSIG.showorg') || $isAdmin): ?>
<th><?php echo $this->Paginator->sort('org');?></th>
<?php endif; ?>
<th><?php echo $this->Paginator->sort('date');?></th>
@ -21,7 +21,7 @@
?>
<tr<?php echo $class;?> onclick="document.location ='<?php echo $this->Html->url(array('action' => 'view', $event['Event']['id']), true) ;?>';">
<td style="white-space: nowrap"><?php echo $event['Event']['id']; ?>&nbsp;</td>
<?php if ('true' == Configure::read('CyDefSIG.showorg')): ?>
<?php if ('true' == Configure::read('CyDefSIG.showorg') || $isAdmin): ?>
<td style="white-space: nowrap"><?php echo Sanitize::html($event['Event']['org']); ?>&nbsp;</td>
<?php endif; ?>
<td style="white-space: nowrap"><?php echo $event['Event']['date']; ?>&nbsp;</td>

View File

@ -21,7 +21,7 @@
<?php echo Sanitize::html($event['Event']['id']); ?>
&nbsp;
</dd>
<?php if ('true' == Configure::read('CyDefSIG.showorg')): ?>
<?php if ('true' == Configure::read('CyDefSIG.showorg') || $isAdmin): ?>
<dt<?php if ($i % 2 == 0) echo $class;?>><?php __('Org'); ?></dt>
<dd<?php if ($i++ % 2 == 0) echo $class;?>>
<?php echo Sanitize::html($event['Event']['org']); ?>