Orbit/app/helpers/application_helper.rb

12 lines
204 B
Ruby
Raw Normal View History

2009-05-07 16:53:18 +00:00
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
2009-05-07 16:53:18 +00:00
end