mirror of
https://github.com/foo-dogsquared/asciidoctor-foodogsquared-extensions.git
synced 2025-01-31 04:58:07 +00:00
24 lines
703 B
Plaintext
24 lines
703 B
Plaintext
<div<%= @id && %( id="#{@id}") %> class="<%= ['admonitionblock',(attr :name),role].compact * ' ' %>">
|
|
<table>
|
|
<tr>
|
|
<td class="icon"><%
|
|
if document.attr? :icons, 'font' %>
|
|
<i class="icon-<%= attr 'name' %>" title="<%= @caption %>"></i><%
|
|
elsif document.attr? :icons %>
|
|
<svg class="icon">
|
|
<use href="<%= icon_uri(attr :name) %>#<%= attr :name %>" alt="<%= @caption %>"></use>
|
|
</svg><%
|
|
else %>
|
|
<div class="title"><%= @caption %></div><%
|
|
end %>
|
|
</td>
|
|
<td class="content"><%
|
|
if title? %>
|
|
<div class="title"><%= title %></div><%
|
|
end %>
|
|
<%= content %>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|