Skip to content

Commit

Permalink
fix(info): remove unneeded controller
Browse files Browse the repository at this point in the history
  • Loading branch information
velrest committed Dec 31, 2021
1 parent 23e6542 commit 1b27a57
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 36 deletions.
11 changes: 0 additions & 11 deletions frontend/app/info/controller.js

This file was deleted.

26 changes: 14 additions & 12 deletions frontend/app/info/template.hbs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<div class="section__inner">

<h2 class="section__title">
{{~t "page.info.title"~}}
{{t "page.info.title"}}
</h2>

<div class="uk-margin">
Expand All @@ -11,50 +11,52 @@
<p>{{t "page.info.textEnd"}}</p>
</div>

<LinkTo class="uk-button uk-button-primary" @route="login">{{t "page.info.login"}}</LinkTo>
<LinkTo class="uk-button uk-button-primary" @route="login">
{{t "page.info.login"}}
</LinkTo>
</div>
</section>

<section class="section uk-section-primary">
<div class="section__inner">

<h2 class="section__title">
{{~t "page.index.support.title"~}}
{{t "page.index.support.title"}}
</h2>

<ul class="support__list" uk-grid>
<li class="support__item">
<p class="support__callout">
{{~t "page.index.support.callout" htmlSafe=true~}}
{{t "page.index.support.callout"}}
</p>

<p class="support__opening-hours">
{{~t "page.index.support.opening-hours" htmlSafe=true~}}
{{t "page.index.support.opening-hours"}}
</p>
</li>

<li class="support__item">
<a
href="mailto:{{this.support.email}}"
title={{this.support.email}}
href="mailto:{{@model.support.email}}"
title={{@model.support.email}}
uk-icon="icon: mail; ratio: 3"
></a>
</li>

<li class="support__item">
<a
href="tel:{{this.support.phone}}"
title={{this.support.phone}}
href="tel:{{@model.support.phone}}"
title={{@model.support.phone}}
uk-icon="icon: receiver; ratio: 3"
></a>
</li>
</ul>

<hr>
<hr />

{{#if this.profiles.length}}
{{#if @model.profiles.length}}
<ul class="profiles__list">
{{#each this.profiles as |profile|}}
{{#each @model.profiles as |profile|}}
<li class="profiles__item">
<a
href={{profile.address}}
Expand Down
11 changes: 0 additions & 11 deletions frontend/tests/unit/info/controller-test.js

This file was deleted.

4 changes: 2 additions & 2 deletions frontend/translations/de.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,10 @@ page:
support:
title: Support
callout: |
Sie brauchen Support?<br>
Sie brauchen Support?
Kontaktieren Sie uns per Mail oder Telefonisch.
opening-hours: |
Wir sind von Montag bis Freitag zu Bürozeiten für Sie da.<br>
Wir sind von Montag bis Freitag zu Bürozeiten für Sie da.
(08:00 bis 17:30)
locations:
Expand Down

0 comments on commit 1b27a57

Please sign in to comment.