mirror of
https://github.com/foo-dogsquared/website.git
synced 2025-01-31 04:58:26 +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 * ' ' %>">
|
<div<%= @id && %( id="#{@id}") %> class="<%= ['admonitionblock',(attr :name),role].compact * ' ' %>">
|
||||||
<table>
|
<table>
|
||||||
<tr>
|
<tr>
|
||||||
<td class="icon"><%
|
<td class="icon" title="<%= @caption %>">
|
||||||
if document.attr? :icons, 'font' %>
|
<svg class="icon">
|
||||||
<i class="icon-<%= attr 'name' %>" title="<%= @caption %>"></i><%
|
<use href="<%= icon_uri(attr :name) %>#<%= attr :name %>" alt="<%= @caption %>"></use>
|
||||||
elsif document.attr? :icons %>
|
</svg>
|
||||||
<svg class="icon">
|
|
||||||
<use href="<%= icon_uri(attr :name) %>#<%= attr :name %>" alt="<%= @caption %>"></use>
|
|
||||||
</svg><%
|
|
||||||
else %>
|
|
||||||
<div class="title"><%= @caption %></div><%
|
|
||||||
end %>
|
|
||||||
</td>
|
</td>
|
||||||
<td class="content"><%
|
<td class="content"><%
|
||||||
if title? %>
|
if title? %>
|
||||||
|
Loading…
Reference in New Issue
Block a user