4a9c91c0252721aab668a5cc2cef2aa3c87792e5
[depot.git] / app / helpers / store_helper.rb
1 module StoreHelper
2
3 def hidden_div_if(condition, attributes = {}, &block)
4 if condition
5 attributes["style"] = "display: none"
6 end
7 content_tag("div", attributes, &block)
8 end
9
10 end