Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed i18n issue with pdf admin sorts

  • Loading branch information...
commit 718065932b23621912c8451b7babe9fd859494d9 1 parent 5468efd
@zquestz authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 app/helpers/application_helper.rb
View
4 app/helpers/application_helper.rb
@@ -62,6 +62,10 @@ def sort_bar(items, joinval = ' | ')
items.each do |c|
sort_links.push(sort_calc(t("activerecord.attributes.image.#{c}"), c))
end
+ elsif ['pdfs'].include?(controller.controller_name)
+ items.each do |c|
+ sort_links.push(sort_calc(t("activerecord.attributes.pdf.#{c}"), c))
+ end
else
items.each do |c|
sort_links.push(sort_calc(c.to_s.humanize, c))
Please sign in to comment.
Something went wrong with that request. Please try again.