Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

icon_url helper

  • Loading branch information...
commit de3e7eb34009c32f39d0ba004ce21a122869c91e 1 parent b28c34c
@wynst wynst authored committed
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"
Please sign in to comment.
Something went wrong with that request. Please try again.