Skip to content

Commit

Permalink
feat: add contact link to Adfinis website
Browse files Browse the repository at this point in the history
  • Loading branch information
Akanksh Saxena authored and velrest committed Feb 10, 2022
1 parent 6bc6fef commit b7cf703
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions frontend/app/application/controller.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ export default class ApplicationController extends Controller {
}));
}

get isEnglishSelected() {
return this.intl.primaryLocale === "en";
}

@action async changeLanguage(language) {
await this.account.changeLanguage(language);
}
Expand Down
10 changes: 10 additions & 0 deletions frontend/app/application/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@
</li>
{{/if}}

<li class="site-header__nav__item">
<a
href="{{if this.isEnglishSelected "https://www.adfinis.com/en/contact" "https://www.adfinis.com/kontakt"}}"
target="_blank"
rel="noopener noreferrer"
>
{{t "page.application.nav.contact"}}
</a>
</li>

<li class="site-header__nav__item">
<a
href="#"
Expand Down
1 change: 1 addition & 0 deletions frontend/translations/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ page:
subscriptions: Projekte
subscriptions-confirm: Bestellungen bestätigen
account-logout: Logout
contact: Kontakt


error:
Expand Down
1 change: 1 addition & 0 deletions frontend/translations/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ page:
subscriptions: Subscriptions
subscriptions-confirm: Confirm subscriptions
account-logout: Logout
contact: Contact


error:
Expand Down

0 comments on commit b7cf703

Please sign in to comment.