Module: Refinery::SiteBarHelper
- Defined in:
- app/helpers/refinery/site_bar_helper.rb
Instance Method Summary collapse
-
#site_bar_switch_link ⇒ Object
Generates the link to determine where the site bar switch button returns to.
- #site_bar_translate_locale_args ⇒ Object
Instance Method Details
#site_bar_switch_link ⇒ Object
Generates the link to determine where the site bar switch button returns to.
5 6 7 8 9 10 11 |
# File 'app/helpers/refinery/site_bar_helper.rb', line 5 def link_to_if(admin?, t('.switch_to_your_website', ), refinery.root_path()) do link_to t('.switch_to_your_website_editor', ), refinery.admin_root_path end end |
#site_bar_translate_locale_args ⇒ Object
13 14 15 |
# File 'app/helpers/refinery/site_bar_helper.rb', line 13 def { :locale => Refinery::I18n.current_locale } end |