Update admonition block template

This commit is contained in:
Gabriel Arazas 2023-11-09 13:37:07 +08:00
parent ff3cc17d8c
commit e5e2b0789b
No known key found for this signature in database
GPG Key ID: ADE0C41DAB221FCC

View File

@ -1,16 +1,10 @@
<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 %>
<td class="icon" title="<%= @caption %>">
<svg class="icon">
<use href="<%= icon_uri(attr :name) %>#<%= attr :name %>" alt="<%= @caption %>"></use>
</svg><%
else %>
<div class="title"><%= @caption %></div><%
end %>
</svg>
</td>
<td class="content"><%
if title? %>