Skip to content

Commit

Permalink
feat(Jobs): Use formatLocation view helper in job lists
Browse files Browse the repository at this point in the history
  • Loading branch information
TiSiE committed Jun 4, 2020
1 parent 3f350f5 commit a1cdf3b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions module/Jobs/view/jobs/index/index.ajax.phtml
Expand Up @@ -15,7 +15,7 @@ $snapshots = $this->services('repositories.Jobs/JobSnapshot');
<tr>
<th><?php echo $this->translate('Date of receipt')?></th>
<th><?php echo $this->translate('Title of the job')?></th>
<th><?php echo $this->translate('Location')?></th>
<th><?php echo $this->translate('Location')?></th>
<th><?php echo $this->translate('Companyname')?></th>
<th><?php echo $this->translate('Reference')?></th>
<?php if ($isRecruiter):?>
Expand Down Expand Up @@ -46,7 +46,7 @@ $isSnapshot = $job->hasSnapshotDraft();

?>)
<?php endif ?></td>

<td>
<?php if ($isSnapshot): ?><span class="label label-warning"><?=$this->translate('Changed')?></span><?php
elseif ( ($snapshot = $job->getLatestSnapshot()) ):
Expand All @@ -65,7 +65,7 @@ $isSnapshot = $job->hasSnapshotDraft();
<small><?=$job->getClassifications()->getProfessions()?></small> |
<small><?=$job->getClassifications()->getEmploymentTypes()?></small>
</td>
<td><?php echo $job->getLocation()?></td>
<td><?php echo $this->formatLoaction($job->getLocations())?></td>
<td><?php echo $job->getCompany()?></td>
<td><?php echo empty($job->getReference())? $job->getApplyId():$job->getReference() ?></td>

Expand All @@ -77,8 +77,8 @@ $isSnapshot = $job->hasSnapshotDraft();
</a>
<?php endif;?>
<?php if ($job->getUnreadApplications()->count()):?>
/
<a title="<?php echo $this->translate("unread")?>"
/
<a title="<?php echo $this->translate("unread")?>"
href="<?php echo $this->url( 'lang/applications', array(), array('query' => 'job=' . $job->getId() . '&unread=1'), true) ?>">
<span class="badge"> <?php echo $job->getUnreadApplications()->count()?></span>
</a>
Expand Down
2 changes: 1 addition & 1 deletion module/Jobs/view/jobs/jobboard/index.ajax.phtml
Expand Up @@ -100,7 +100,7 @@ $this->proxy('jobsByMailSubscriptionForm')->render($jobs)
<?php endif; ?>
</td>
<td>
<div><?php echo $job->getLocation()?></div>
<div><?php echo $this->formatLocation($job->getLocations())?></div>
<small>
<?php
if ($job->getDatePublishStart()): echo $this->dateFormat($job->getdatePublishStart(), 'short', 'none');
Expand Down

0 comments on commit a1cdf3b

Please sign in to comment.