Sha256: fbb425cf999238dba45d9e4f461a912dbf95a3c476e3f40a7f7198592b4e4ad7
Contents?: true
Size: 573 Bytes
Versions: 6
Compression:
Stored size: 573 Bytes
Contents
module Refinery module SiteBarHelper # Generates the link to determine where the site bar switch button returns to. def site_bar_switch_link link_to_if(admin?, t('.switch_to_your_website', site_bar_translate_locale_args), refinery.root_path(site_bar_translate_locale_args)) do link_to t('.switch_to_your_website_editor', site_bar_translate_locale_args), refinery.admin_root_path end end def site_bar_translate_locale_args { :locale => Refinery::I18n.current_locale } end end end
Version data entries
6 entries across 6 versions & 1 rubygems