This commit is contained in:
Martin Müller 2014-09-23 15:53:51 +02:00
parent bab1913c2e
commit dd0baed569
3 changed files with 6 additions and 1 deletions

View File

@ -97,7 +97,6 @@
Router::connect('/search/academy', array('controller' => 'search', 'action' => 'academy'));
Router::connect('/search/internship', array('controller' => 'search', 'action' => 'internship'));
Router::connect('/test/', array('controller' => 'user', 'action' => 'test'));
Router::parseExtensions('pdf');
Router::connect('/application/:id.pdf', array('controller' => 'pdf', 'action' => 'applicationGetPdf'),array("id" => "[0-9]+"));

View File

@ -122,6 +122,9 @@ if($profil['AppUser']['take_systemwide']){
echo $this->Html->link($pag['title'],array('controller'=>'user','action'=>'profil','page'=> $pag['id'] ),array('rel'=>"tab"));
?>
<?php }?>
<?php if(isset($COMPANY) and $COMPANY['AppUser']['id']==$profil['AppUser']['id']){ ?>
<li><?=$this->Html->link('<span class="glyphicon glyphicon-plus"></span>'.__('dreamjob.pages.company.new'),array('controller'=>'user','action'=>'settings_pageInh'),array('escape'=>false));?></li>
<?php } ?>
</ul>
</div>
<?php

View File

@ -34,6 +34,9 @@ if(( !empty($COMPANY) and is_array($COMPANY) and count($COMPANY) > 0 and ($COMPA
echo $this->Html->link($pag['title'],array('controller'=>'user','action'=>'profil','page'=> $pag['id'] ),array('rel'=>"tab"));
?>
<?php }?>
<?php if(isset($WORKER) and $WORKER['AppUser']['id']==$profil['AppUser']['id']){ ?>
<li><?=$this->Html->link('<span class="glyphicon glyphicon-plus"></span>'.__('dreamjob.pages.new'),array('controller'=>'user','action'=>'settings_pageInh'),array('escape'=>false));?></li>
<?php } ?>
</ul>
</div>
<?php