Sha256: fe8408b1190decb14834b586780a0ad99d6be17f12482c7899a03215d70e3ae4
Contents?: true
Size: 821 Bytes
Versions: 9
Compression:
Stored size: 821 Bytes
Contents
- if (has_role? 'aside') or (has_role? 'speaker') or (has_role? 'notes') include notes.html.slim - else = html_tag('div', { :id => @id, :class => ['admonitionblock', (attr :name), role, ('fragment' if (option? :step) || (attr? 'step'))] }.merge(data_attrs(@attributes))) table: tr td.icon - if @document.attr? :icons, 'font' - icon_mapping = Hash['caution', 'fire', 'important', 'exclamation-circle', 'note', 'info-circle', 'tip', 'lightbulb-o', 'warning', 'warning'] i class=%(fa fa-#{icon_mapping[attr :name]}) title=(attr :textlabel || @caption) - elsif @document.attr? :icons img src=icon_uri(attr :name) alt=@caption - else .title=(attr :textlabel) || @caption td.content - if title? .title=title =content
Version data entries
9 entries across 9 versions & 1 rubygems