Skip to content

Commit

Permalink
icon_url helper
Browse files Browse the repository at this point in the history
  • Loading branch information
wynst authored and jamesu committed Feb 21, 2010
1 parent b28c34c commit de3e7eb
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions app/helpers/application_helper.rb
Expand Up @@ -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"
Expand Down

0 comments on commit de3e7eb

Please sign in to comment.