fix some mistakes in some views

This commit is contained in:
Georg Gadinger 2020-05-17 18:15:02 +02:00
parent e1a8ac3db5
commit 49bc29b31a
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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)