From cf6d59bf84c0c7fbf57061ff8e8d51497ca8fe6a Mon Sep 17 00:00:00 2001 From: Jeldrik Hanschke Date: Sun, 10 Nov 2019 17:44:44 +0100 Subject: [PATCH] readd colors indicating answer to participant table (#289) --- app/styles/_participants-table.scss | 12 +++++++++ .../poll-evaluation-participants-table.hbs | 26 ++++++++----------- 2 files changed, 23 insertions(+), 15 deletions(-) diff --git a/app/styles/_participants-table.scss b/app/styles/_participants-table.scss index dbb0909..3509c38 100644 --- a/app/styles/_participants-table.scss +++ b/app/styles/_participants-table.scss @@ -42,6 +42,18 @@ } } } + + tbody { + td { + &.yes { + background-color: #c6ffbf; + } + + &.no { + background-color: #ffbabc; + } + } + } } } } diff --git a/app/templates/components/poll-evaluation-participants-table.hbs b/app/templates/components/poll-evaluation-participants-table.hbs index 6af7de9..5430420 100644 --- a/app/templates/components/poll-evaluation-participants-table.hbs +++ b/app/templates/components/poll-evaluation-participants-table.hbs @@ -46,23 +46,19 @@ {{user.name}} {{#each this.options as |option index|}} - - {{#let (object-at index user.selections) as |selection|}} - {{#if this.isFreeText}} - {{selection.label}} + {{#let (object-at index user.selections) as |selection|}} + + {{#if selection.labelTranslation}} + {{t selection.labelTranslation}} {{else}} - {{#if selection.type}} - - - {{t selection.labelTranslation}} - - {{/if}} + {{selection.label}} {{/if}} - {{/let}} - + + {{/let}} {{/each}} {{/each}}