end
end
- def current_page_class(path)
- :current if current_page?(path)
+ def header_nav_link_class(path)
+ ["nav-link", current_page?(path) ? "text-secondary-emphasis" : "text-secondary"]
end
def application_data
data = {
:locale => I18n.locale,
- :preferred_editor => preferred_editor
+ :preferred_editor => preferred_editor,
+ :preferred_languages => preferred_languages.expand.map(&:to_s)
}
if current_user