From b1cf259276774ab68aa9cc942515b1aae49871cb Mon Sep 17 00:00:00 2001 From: Ellen Wittingen Date: Sat, 21 Oct 2023 18:03:33 +0200 Subject: [PATCH] Implemented comments in PR --- .../cards/public-room-advert-card.hbs | 32 ++--- .../cards/public-room-advert-card.js | 9 -- app/components/cards/room-advert-card.hbs | 36 ++--- app/components/cards/room-advert-card.js | 9 -- app/components/header-nav.hbs | 32 ++--- app/components/header-nav.js | 127 ++++++++++-------- app/styles/components/navbar.scss | 12 +- app/templates/public/room-forum.hbs | 8 +- app/templates/room-adverts/index.hbs | 6 +- app/templates/room-adverts/new.hbs | 4 +- .../room-adverts/room-advert/edit.hbs | 4 +- translations/en.yaml | 6 +- 12 files changed, 136 insertions(+), 149 deletions(-) delete mode 100644 app/components/cards/public-room-advert-card.js delete mode 100644 app/components/cards/room-advert-card.js diff --git a/app/components/cards/public-room-advert-card.hbs b/app/components/cards/public-room-advert-card.hbs index ed3257c5f..10a2eacc6 100644 --- a/app/components/cards/public-room-advert-card.hbs +++ b/app/components/cards/public-room-advert-card.hbs @@ -5,52 +5,52 @@
-

{{roomAdvert.houseName}}

+

{{@roomAdvert.houseName}}


- {{#if roomAdvert.location}} + {{#if @roomAdvert.location}} {{/if}} - {{#if roomAdvert.availableFrom}} + {{#if @roomAdvert.availableFrom}} - + {{/if}}
{{t 'component.public.roomForum.location'}} - {{roomAdvert.location}} + {{@roomAdvert.location}}
{{t 'component.public.roomForum.availableFrom'}}{{roomAdvert.availableFrom}}{{@roomAdvert.availableFrom}}
{{t 'component.public.roomForum.contact'}} - {{#if (is-phone roomAdvert.contact)}} - {{roomAdvert.contact}} - {{else if (is-email roomAdvert.contact)}} - {{roomAdvert.contact}} - {{else if (is-url roomAdvert.contact)}} - {{roomAdvert.contact}} + {{#if (is-phone @roomAdvert.contact)}} + {{@roomAdvert.contact}} + {{else if (is-email @roomAdvert.contact)}} + {{@roomAdvert.contact}} + {{else if (is-url @roomAdvert.contact)}} + {{@roomAdvert.contact}} {{else}} - {{roomAdvert.contact}} + {{@roomAdvert.contact}} {{/if}}
- {{#if roomAdvert.coverPhotoUrl}} - + {{#if @roomAdvert.coverPhotoUrl}} + {{/if}}

{{markdown-to-html - roomAdvert.descriptionCamofied + @roomAdvert.descriptionCamofied extensions='youtubeEmbed bootstrapTable' }}

diff --git a/app/components/cards/public-room-advert-card.js b/app/components/cards/public-room-advert-card.js deleted file mode 100644 index d6cb9c6db..000000000 --- a/app/components/cards/public-room-advert-card.js +++ /dev/null @@ -1,9 +0,0 @@ -import Component from '@ember/component'; - -const PublicRoomAdvertCardComponent = Component.extend({}); - -PublicRoomAdvertCardComponent.reopenClass({ - positionalParams: ['roomAdvert'], -}); - -export default PublicRoomAdvertCardComponent; diff --git a/app/components/cards/room-advert-card.hbs b/app/components/cards/room-advert-card.hbs index d6aa60a4a..036730c97 100644 --- a/app/components/cards/room-advert-card.hbs +++ b/app/components/cards/room-advert-card.hbs @@ -1,21 +1,21 @@
- +

- {{roomAdvert.houseName}} + {{@roomAdvert.houseName}}

- {{roomAdvert.author.fullName}} + {{@roomAdvert.author.fullName}}

@@ -24,22 +24,22 @@
- {{#if roomAdvert.location}} + {{#if @roomAdvert.location}} {{/if}} - {{#if roomAdvert.availableFrom}} + {{#if @roomAdvert.availableFrom}}
Beschikbaar vanaf: - {{roomAdvert.availableFrom}} + {{@roomAdvert.availableFrom}}
{{/if}}
@@ -47,24 +47,24 @@

{{markdown-to-html - roomAdvert.descriptionCamofied + @roomAdvert.descriptionCamofied extensions='youtubeEmbed bootstrapTable' }}

- {{#if roomAdvert.contact}} + {{#if @roomAdvert.contact}}
Contact: - {{#if (is-phone roomAdvert.contact)}} - {{roomAdvert.contact}} - {{else if (is-email roomAdvert.contact)}} - {{roomAdvert.contact}} - {{else if (is-url roomAdvert.contact)}} - {{roomAdvert.contact}} + {{#if (is-phone @roomAdvert.contact)}} + {{@roomAdvert.contact}} + {{else if (is-email @roomAdvert.contact)}} + {{@roomAdvert.contact}} + {{else if (is-url @roomAdvert.contact)}} + {{@roomAdvert.contact}} {{else}} - {{roomAdvert.contact}} + {{@roomAdvert.contact}} {{/if}}
diff --git a/app/components/cards/room-advert-card.js b/app/components/cards/room-advert-card.js deleted file mode 100644 index 455328f49..000000000 --- a/app/components/cards/room-advert-card.js +++ /dev/null @@ -1,9 +0,0 @@ -import Component from '@ember/component'; - -const RoomAdvertCardComponent = Component.extend({}); - -RoomAdvertCardComponent.reopenClass({ - positionalParams: ['roomAdvert'], -}); - -export default RoomAdvertCardComponent; diff --git a/app/components/header-nav.hbs b/app/components/header-nav.hbs index 90f8d23e5..839c7d8c8 100644 --- a/app/components/header-nav.hbs +++ b/app/components/header-nav.hbs @@ -1,35 +1,35 @@ -