Sha256: 59ac7e3a59337dc30b334e9413cf84e195dc44892152497dc4f6ff0363453d25
Contents?: true
Size: 453 Bytes
Versions: 87
Compression:
Stored size: 453 Bytes
Contents
- id ||= "figure-" << (1000 * rand).to_i.to_s - height ||= "300px" - width ||= "300px" - title ||= nil - caption ||= nil - float = float ? "float" : nil .figure(id="#{"figure-"+id}" style="height:#{ height };width:#{ width }" class="#{float}") - if title %span.title= title = partial_render("tools/nvd3/#{plot}", locals.merge({:id => id.sub('figure', plot.to_s), :resolution => width.to_i * 0.8}) ) - if caption %span.caption= caption
Version data entries
87 entries across 87 versions & 1 rubygems