Orbit/app/helpers/application_helper.rb

12 lines
204 B
Ruby

module ApplicationHelper
def colorize_in_use_locale(locale)
@site_in_use_locales.include?(locale)? 'green' : 'red'
end
def link_back
link_to t('back'), session[:last_page]
end
end