Skip to content
Browse files

icon_url helper

  • Loading branch information...
1 parent b28c34c commit de3e7eb34009c32f39d0ba004ce21a122869c91e @wynst wynst committed with jamesu Feb 21, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 app/helpers/application_helper.rb
View
4 app/helpers/application_helper.rb
@@ -32,6 +32,10 @@ def pagination_links(url, ids)
"<div class=\"advancedPagination\"><span>#{:page.l}: </span><span>(#{values})</span></div>"
end
+
+ def icon_url(filename)
+ "/themes/#{AppConfig.site_theme}/images/icons/#{filename}.gif"
+ end
def checkbox_link(link, checked=false, hint=nil, attrs={})
icon_url = checked ? "/themes/#{AppConfig.site_theme}/images/icons/checked.gif" : "/themes/#{AppConfig.site_theme}/images/icons/not-checked.gif"

0 comments on commit de3e7eb

Please sign in to comment.
Something went wrong with that request. Please try again.