summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/admin_helper.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/helpers/admin_helper.rb b/app/helpers/admin_helper.rb
index 2684fffb..5a1a42a3 100644
--- a/app/helpers/admin_helper.rb
+++ b/app/helpers/admin_helper.rb
@@ -7,4 +7,11 @@ module AdminHelper
7 link_to raw('<span class="inactive">Deutsch</span>'), url_for(params.permit(:locale, :page_path).to_h.merge('locale' => 'de')) 7 link_to raw('<span class="inactive">Deutsch</span>'), url_for(params.permit(:locale, :page_path).to_h.merge('locale' => 'de'))
8 end 8 end
9 end 9 end
10
11 def flag(icon_name, hint, tier: nil)
12 classes = ["flag", tier && "flag_#{tier}"].compact.join(" ")
13 content_tag(:span, icon(icon_name, library: "tabler", "aria-hidden": true),
14 :role => "img", :class => classes,
15 :title => hint, "aria-label" => hint)
16 end
10end 17end