Skip to content

Commit

Permalink
[Applications] Fixes link to job in list of applications. closes #96
Browse files Browse the repository at this point in the history
  • Loading branch information
cbleek committed Mar 12, 2015
1 parent 2c77ce9 commit 41f2923
Showing 1 changed file with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -100,9 +100,9 @@ echo $this->paginationControl($this->applications, 'Sliding', 'pagination-contro
</thead>

<tbody>
<?php
<?php
/* @var $application Applications\Entity\Application */
foreach ($this->applications as $application):

$isUnread = $application->isUnreadBy($this->auth('id'));?>
<tr<?php echo ($isUnread?' class="yk-new"':"")?>>
<td>
Expand All @@ -114,6 +114,7 @@ foreach ($this->applications as $application):
</td>
<td>
<div class="portrait">
<a href="<?php echo $this->url('lang/applications/detail', array('id' => $application->id), /* reuse matched params*/ true)?>">
<?php if ($application->contact->image):?>
<img src="<?php echo $this->basePath($application->contact->image->uri) ?>" />
<?php else:?>
Expand All @@ -123,6 +124,7 @@ foreach ($this->applications as $application):
<?php echo $this->translate($this->salutation($application->contact->gender))?>
<?php echo $application->contact->displayName?><br>
<?php echo $application->contact->city?>
</a>
</td>
<td class="yk-career">
<?php if (count($application->cv->educations)>0):?>
Expand Down Expand Up @@ -154,13 +156,12 @@ foreach ($this->applications as $application):
<?php foreach ($application->profiles as $profile):?>
<span class="btn btn-default btn-xs"><i class="yk-icon yk-icon-<?php echo strtolower($profile->name); ?>"></i></span>
<?php endforeach;?>
</div>
</div>
<?php endif;?>
</td>
<td class="yk-job">
<a href="<?php echo $this->url('lang/applications/detail', array('id' => $application->id), /* reuse matched params*/ true)?>">
<?php echo strip_tags($application->job->title) ?>
</a>
<?php $href = $application->job->link ? $application->job->link : $this->url('lang/jobs/view', array(), array('query' => array('id' => $application->job->id)), true); ?>
<?php echo $this->link($href, strip_tags($application->job->title))?>
</td>
<td>
<?php echo $this->translate($application->status->name) ?>
Expand Down

0 comments on commit 41f2923

Please sign in to comment.