From a7269bb202d01059b83ead8ea15b7baceec84bc5 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Tue, 3 Jan 2023 16:16:16 +0100 Subject: [PATCH] Replace some icons with better choices from FA6 --- app/views/actions/_question.html.haml | 4 ++-- app/views/answerbox/_header.html.haml | 2 +- app/views/inbox/_entry.html.haml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/views/actions/_question.html.haml b/app/views/actions/_question.html.haml index 8e960655..fd303ba2 100644 --- a/app/views/actions/_question.html.haml +++ b/app/views/actions/_question.html.haml @@ -13,10 +13,10 @@ = t("voc.block") - if current_user.mod? = button_to anonymous_block_path, method: :post, params: { question: question.id, global: true }, class: "dropdown-item" do - %i.fa.fa-fw.fa-volume-off + %i.fas.fa-fw.fa-user-slash = t("voc.block_site_wide") %a.dropdown-item{ href: moderation_questions_path(author_identifier: question.author_identifier) } - %i.fa.fa-fw.fa-user-secret + %i.fas.fa-fw.fa-mask = t("voc.show_anonymous_questions") - if current_user.admin? %a.dropdown-item{ href: rails_admin_path_for_resource(question), target: "_blank" } diff --git a/app/views/answerbox/_header.html.haml b/app/views/answerbox/_header.html.haml index 588bc821..098978d8 100644 --- a/app/views/answerbox/_header.html.haml +++ b/app/views/answerbox/_header.html.haml @@ -12,7 +12,7 @@ = render "actions/question", question: a.question %h6.text-muted.media-heading.answerbox__question-user - if a.question.author_is_anonymous - %i.fa.fa-user-secret{ title: t(".anon_hint") } + %i.fas.fa-mask{ title: t(".anon_hint") } = t(".asked_html", user: user_screen_name(a.question.user, context_user: a.user, author_identifier: a.question.author_is_anonymous ? a.question.author_identifier: nil), time: time_tooltip(a.question)) - if !a.question.author_is_anonymous && !a.question.direct · diff --git a/app/views/inbox/_entry.html.haml b/app/views/inbox/_entry.html.haml index 1bf50d93..a8e6898b 100644 --- a/app/views/inbox/_entry.html.haml +++ b/app/views/inbox/_entry.html.haml @@ -7,7 +7,7 @@ .media-body %h6.text-muted.media-heading.answerbox__question-user - if i.question.author_is_anonymous - %i.fa.fa-user-secret{ title: t('.anon_hint') } + %i.fas.fa-mask{ title: t('.anon_hint') } = t(".asked_html", user: user_screen_name(i.question.user, context_user: i.user, author_identifier: i.question.author_is_anonymous ? i.question.author_identifier : nil), time: time_tooltip(i.question)) - if !i.question.author_is_anonymous && i.question.answer_count.positive? ·