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