Sha256: f277738ba8e2340fc746211b1717a19bef0a0ec97d7f7e9b8e22719731dd8351
Contents?: true
Size: 467 Bytes
Versions: 21
Compression:
Stored size: 467 Bytes
Contents
- id ||= "figure-" << (1000 * rand).to_i.to_s - size ||= "300px" - height ||= size - width ||= size - 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
21 entries across 21 versions & 1 rubygems