1 module AuthorizationHelper
2 include ActionView::Helpers::TranslationHelper
4 def authorization_scope(scope)
6 html << t("oauth.scopes.#{scope}")
7 if Oauth::MODERATOR_SCOPES.include? scope
9 html << image_tag("roles/moderator.png", :srcset => image_path("roles/moderator.svg", :class => "align-text-bottom"), :size => "20x20")