Skip to content

Instantly share code, notes, and snippets.

@xn
Last active December 26, 2015 02:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xn/7078127 to your computer and use it in GitHub Desktop.
Save xn/7078127 to your computer and use it in GitHub Desktop.
def render_stack(blockitem, size)
size = nil if size < 2
html = ""
link = localized.include?(blockitem) ? "" : "something"
html << "<a href=\"#{link}\" class=\"stack-link\">" # Not done, still need to change that for things
html << "<div class=\"recipe-icon\" style=\"background: url(#{url('images/wiki/#{blockitem}.png')});\" title=\"{$name}\">#{size}</div>"
html << "</a>"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment