Skip to content

Instantly share code, notes, and snippets.

Last active Dec 26, 2015
What would you like to do?
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>"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment