1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36
|
<section class="detail" id="<%=enc node.id %>">
<%= for {default_name, default_arity} <- get_defaults(node) do %>
<span id="<%=enc "#{default_name}/#{default_arity}" %>"></span>
<% end %>
<div class="detail-header">
<a href="#<%=enc node.id %>" class="detail-link" data-no-tooltip aria-label="Link to this <%= pretty_type(node) %>">
<i class="ri-link-m" aria-hidden="true"></i>
</a>
<h1 class="signature" translate="no"><%=h node.signature %></h1>
<%= if node.source_url do %>
<a href="<%= node.source_url %>" class="icon-action" rel="help" aria-label="View Source">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
</a>
<% end %>
<%= for annotation <- node.annotations do %>
<span class="note">(<%= annotation %>)</span>
<% end %>
</div>
<%= if deprecated = node.deprecated do %>
<div class="deprecated">
This <%= node.type %> is deprecated. <%= h(deprecated) %>.
</div>
<% end %>
<section class="docstring">
<%= if specs = get_specs(node) do %>
<div class="specs">
<%= for spec <- specs do %>
<pre translate="no"><span class="attribute"><%= format_spec_attribute(module, node) %></span> <%= spec %></pre>
<% end %>
</div>
<% end %>
<%= link_detail_headings(node.rendered_doc, enc(node.id)) %>
</section>
</section>
|