end
def rss_link_to(args = {})
- link_to(image_tag("RSS.png", :size => "16x16", :border => 0), args, :class => "rsssmall")
+ link_to(image_tag("RSS.png", :size => "16x16"), args, :class => "rsssmall")
end
def atom_link_to(args = {})
- link_to(image_tag("RSS.png", :size => "16x16", :border => 0), args, :class => "rsssmall")
+ link_to(image_tag("RSS.png", :size => "16x16"), args, :class => "rsssmall")
end
def dir
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