Skip to content

Commit

Permalink
Merge pull request #90 from rubydev/master
Browse files Browse the repository at this point in the history
Fix path to tab icons
  • Loading branch information
ndbroadbent committed Nov 28, 2011
2 parents 4fb4095 + df81a72 commit dc23914
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/layouts/_tabbed.html.haml
Expand Up @@ -5,7 +5,7 @@
= link_to(tab[:url], :class => tab[:active] ? "active" : "") do
- unless request.fullpath.include?("/admin")
- img_base_path = "tab_icons/#{tab[:text].to_s.downcase.sub(/^tab_/, '')}"
- if File.exists?(Rails.root.join("app/assets/images/#{img_base_path}.png"))
- if File.exists?(Rails.root.join("vendor/assets/images/#{img_base_path}.png"))
= image_tag("#{img_base_path}#{tab[:active] ? "_active" : ""}.png")
= t(tab[:text])

Expand Down

0 comments on commit dc23914

Please sign in to comment.