From 49bc29b31ac2d9cb432a6b83d06ef5abab854380 Mon Sep 17 00:00:00 2001 From: Georg Gadinger Date: Sun, 17 May 2020 18:15:02 +0200 Subject: [PATCH] fix some mistakes in some views --- app/views/application/_answerbox.haml | 2 +- app/views/moderation/priority.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/application/_answerbox.haml b/app/views/application/_answerbox.haml index 1639c5da..1f427b7d 100644 --- a/app/views/application/_answerbox.haml +++ b/app/views/application/_answerbox.haml @@ -34,7 +34,7 @@ %i.fa.fa-clock-o = link_to(raw(t('views.answerbox.time', time: time_tooltip(a))), show_user_answer_path(a.user.screen_name, a.id)) .col-8.col-sm-8.col-md-6.text-right - = render 'answerbox/actions', a: a + = render 'answerbox/actions', a: a, display_all: display_all .card-footer{ id: "ab-comments-section-#{a.id}", style: display_all.nil? ? 'display: none' : nil } %div{ id: "ab-smiles-#{a.id}" }= render 'answerbox/smiles', a: a %div{ id: "ab-comments-#{a.id}" }= render 'answerbox/comments', a: a diff --git a/app/views/moderation/priority.haml b/app/views/moderation/priority.haml index 436fb9ea..6f64fe75 100644 --- a/app/views/moderation/priority.haml +++ b/app/views/moderation/priority.haml @@ -7,4 +7,4 @@ .row.row-cols-1.row-cols-sm-2.row-cols-md-3 - @users.each do |u, c| .col - = render 'moderation/userbox', user: u, count: c + = render 'moderation/userbox', user: u, count: (c || 0)