mirror of
https://github.com/kemko/liquid.git
synced 2026-01-01 15:55:40 +03:00
Convert array to string interpolation, use 'unless' rather than 'if x !='
This commit is contained in:
@@ -18,11 +18,7 @@ module ShopFilter
|
||||
end
|
||||
|
||||
def stylesheet_tag(url, media = "all")
|
||||
html = []
|
||||
html << %(<link href="#{url}" rel="stylesheet")
|
||||
html << %(media="#{media}") if media != "all"
|
||||
html << "/>"
|
||||
html.join(" ")
|
||||
%(<link href="#{url}" rel="stylesheet" #{%(media="#{media}" ) unless media == 'all'}/>)
|
||||
end
|
||||
|
||||
def link_to(link, url, title = "")
|
||||
|
||||
Reference in New Issue
Block a user