diff --git a/Resources/Private/Language/de.locallang.xlf b/Resources/Private/Language/de.locallang.xlf index 8e004c0b51d8516f200b0665438dbfb310cd5b5a..81544c5e01eba0dd9802afcd91ceb80febd88872 100644 --- a/Resources/Private/Language/de.locallang.xlf +++ b/Resources/Private/Language/de.locallang.xlf @@ -474,6 +474,10 @@ <source><![CDATA[Vacancies worldwide]]></source> <target><![CDATA[Offene Stellen weltweit]]></target> </trans-unit> + <trans-unit id="frontend.remote" approved="yes"> + <source><![CDATA[Remote]]></source> + <target><![CDATA[Remote]]></target> + </trans-unit> </body> </file> </xliff> diff --git a/Resources/Private/Language/locallang.xlf b/Resources/Private/Language/locallang.xlf index c78c5ca5747f0dc82d33e8c3cd66083ff81009ef..4d3d5833977d4ff5a1553d0b883db07c983216d7 100644 --- a/Resources/Private/Language/locallang.xlf +++ b/Resources/Private/Language/locallang.xlf @@ -381,6 +381,9 @@ <trans-unit id="frontend.certificateUplodadButton"> <source><![CDATA[Upload certificate]]></source> </trans-unit> + <trans-unit id="frontend.remote"> + <source><![CDATA[Remote]]></source> + </trans-unit> </body> </file> </xliff> diff --git a/Resources/Private/Partials/Job.html b/Resources/Private/Partials/Job.html index 5ea116605c5d31c3f829314e6e0e704f5e10cbbc..b6c109f2c6d71a367088b13ec59765cc2f697ef3 100644 --- a/Resources/Private/Partials/Job.html +++ b/Resources/Private/Partials/Job.html @@ -1,7 +1,8 @@ <div class="col-md-6 col-sm-6 col-cs-12"> <div class="default-content-element"> - <f:link.action class="sg-jobs-job sg-card sg-card-shadow" id="offer-{job.uid}" pageUid="{settings.applyPage}" controller="Joblist" action="applyForm" - pluginName="JobApplication" arguments="{jobId: job.uid}"> + <f:link.action class="sg-jobs-job sg-card sg-card-shadow" id="offer-{job.uid}" pageUid="{settings.applyPage}" + controller="Joblist" action="applyForm" + pluginName="JobApplication" arguments="{jobId: job.uid}"> <div class="default-content-element default-header-element sg-card-title"> <h2 class="h2">{job.title}</h2> </div> @@ -16,25 +17,22 @@ <div class="sgjobs-highlight-area"> <ul class="default-list"> <li> - <f:format.raw><f:translate key="frontend.jobStart" /></f:format.raw> + <f:format.raw><f:translate key="frontend.jobStart"/></f:format.raw> <f:if condition="{job.alternativeStartDate}"> <f:then> {job.alternativeStartDate} </f:then> <f:else> - <f:format.date date="{job.startDate}" format="d.m.Y" /> + <f:format.date date="{job.startDate}" format="d.m.Y"/> </f:else> </f:if> </li> <li> - <f:if condition="!{job.telecommutePossible}"> - <f:then> - <f:format.raw><f:translate key="frontend.locationLabel"/></f:format.raw><br> - {job.companies -> f:count()} <f:translate key="frontend.locationCountLabel"/> - </f:then> - <f:else> - <f:format.raw><f:translate key="frontend.jobLocationRemote"/></f:format.raw> - </f:else> + <f:for each="{job.companies}" as="company" iteration="iterator"> + {company.city}{f:if(condition: '!{iterator.isLast} || {iterator.isLast} && {job.telecommutePossible} ', then: ', ')} + </f:for> + <f:if condition="{job.telecommutePossible}"> + <f:translate key="frontend.remote" /> </f:if> </li> </ul> @@ -43,7 +41,7 @@ </f:if> <div class="default-content-element sg-cta sg-cta-with-icon sg-cta-stretch"> <div class="btn btn-warning btn-lg"> - <f:format.raw><f:translate key="frontend.jobDetailsCta" /></f:format.raw> + <f:format.raw><f:translate key="frontend.jobDetailsCta"/></f:format.raw> </div> </div> </f:link.action> diff --git a/Resources/Private/Partials/Teaser.html b/Resources/Private/Partials/Teaser.html index f9d9b44a00a484786efc8011298238939ce8363b..acd141d7b66b23ccb7a5342e8797dedf3c8592bf 100644 --- a/Resources/Private/Partials/Teaser.html +++ b/Resources/Private/Partials/Teaser.html @@ -27,14 +27,11 @@ </f:if> </li> <li> - <f:if condition="!{job.telecommutePossible}"> - <f:then> - <f:format.raw><f:translate key="frontend.locationLabel"/></f:format.raw><br> - {job.companies -> f:count()} <f:translate key="frontend.locationCountLabel"/> - </f:then> - <f:else> - <f:format.raw><f:translate key="frontend.jobLocationRemote"/></f:format.raw> - </f:else> + <f:for each="{job.companies}" as="company" iteration="iterator"> + {company.city}{f:if(condition: '!{iterator.isLast} || {iterator.isLast} && {job.telecommutePossible} ', then: ', ')} + </f:for> + <f:if condition="{job.telecommutePossible}"> + <f:translate key="frontend.remote" /> </f:if> </li> </ul>