Distribution field in event view shortened

- now only shows the distribution level name
- the description is in the title of the field, hovering over it will show it
pull/274/merge
iglocska 2014-03-13 14:52:32 +01:00
parent 0b04c6369c
commit 72ec7cc3e1
1 changed files with 4 additions and 2 deletions

View File

@ -136,8 +136,10 @@ $mayPublish = ($isAclPublish && $event['Event']['orgc'] == $me['org']);
 
</dd>
<dt>Distribution</dt>
<dd <?php if($event['Event']['distribution'] == 0) echo 'class = "privateRedText"';?>>
<?php echo h($distributionLevels[$event['Event']['distribution']] . ', ' . strtolower(substr(($distributionDescriptions[$event['Event']['distribution']]['formdesc']), 0, 1)) . substr($distributionDescriptions[$event['Event']['distribution']]['formdesc'], 1) . '.'); ?>
<dd <?php if($event['Event']['distribution'] == 0) echo 'class = "privateRedText"';?> title = "<?php echo h($distributionDescriptions[$event['Event']['distribution']]['formdesc'])?>">
<?php
echo h($distributionLevels[$event['Event']['distribution']]);
?>
</dd>
<dt>Description</dt>
<dd>