.dropdown-menu.dropdown-menu-end{ role: :menu } - if current_user.mod? || question.user == current_user %a.dropdown-item.text-danger{ href: "#", tabindex: -1, data: { action: "ab-question-destroy", q_id: question.id } } %i.fa.fa-fw.fa-trash-o = t("voc.delete") - unless question.user == current_user %a.dropdown-item{ href: "#", tabindex: -1, data: { action: "ab-question-report", q_id: question.id } } %i.fa.fa-fw.fa-exclamation-triangle = t("voc.report") - if question.anonymous? && !question.generated? - unless question.user == current_user = button_to anonymous_block_path, method: :post, params: { question: question.id }, class: "dropdown-item" do %i.fa.fa-fw.fa-minus-circle = 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.fas.fa-fw.fa-user-slash = t("voc.block_site_wide") %a.dropdown-item{ href: moderation_questions_path(author_identifier: question.author_identifier) } %i.fas.fa-fw.fa-user-secret = t("voc.show_anonymous_questions") - if current_user.admin? %a.dropdown-item{ href: rails_admin_path_for_resource(question), target: "_blank" } %i.fa.fa-fw.fa-gears = t("voc.view_in_rails_admin")