mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 01:57:54 +00:00
Update admonition block template
This commit is contained in:
parent
ff3cc17d8c
commit
e5e2b0789b
@ -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 %>
|
||||
<svg class="icon">
|
||||
<use href="<%= icon_uri(attr :name) %>#<%= attr :name %>" alt="<%= @caption %>"></use>
|
||||
</svg><%
|
||||
else %>
|
||||
<div class="title"><%= @caption %></div><%
|
||||
end %>
|
||||
<td class="icon" title="<%= @caption %>">
|
||||
<svg class="icon">
|
||||
<use href="<%= icon_uri(attr :name) %>#<%= attr :name %>" alt="<%= @caption %>"></use>
|
||||
</svg>
|
||||
</td>
|
||||
<td class="content"><%
|
||||
if title? %>
|
||||
|
Loading…
Reference in New Issue
Block a user