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 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
<%= head_template(config, %{title: module.title, type: module.type, noindex: false}) %>
<%= sidebar_template(config, nodes_map) %>
<div id="top-content">
<h1>
<%= if module.source_url do %>
<a href="<%= module.source_url %>" title="View Source" class="icon-action" rel="help">
<i class="ri-code-s-slash-line" aria-hidden="true"></i>
<span class="sr-only">View Source</span>
</a>
<% end %>
<span translate="no"><%= module.title %></span> <%= module_type(module) %>
<small class="app-vsn" translate="no">(<%= config.project %> v<%= config.version %>)</small>
<%= for annotation <- module.annotations do %>
<span class="note">(<%= annotation %>)</span>
<% end %>
</h1>
<%= if deprecated = module.deprecated do %>
<div class="deprecated">
This <%= module.type %> is deprecated. <%= h(deprecated) %>.
</div>
<% end %>
<%= if doc = module.rendered_doc do %>
<section id="moduledoc">
<%= link_moduledoc_headings(doc) %>
</section>
<% end %>
</div>
<%= if summary != [] do %>
<section id="summary" class="details-list">
<h1 class="section-heading">
<a class="hover-link" href="#summary">
<i class="ri-link-m" aria-hidden="true"></i>
</a>
<span class="text">Summary</span>
</h1>
<%= for {name, nodes} <- summary, do: summary_template(name, nodes) %>
</section>
<% end %>
<%= for {name, nodes} <- summary, key = text_to_id(name) do %>
<section id="<%= key %>" class="details-list">
<h1 class="section-heading">
<a class="hover-link" href="#<%= key %>">
<i class="ri-link-m" aria-hidden="true"></i>
</a>
<span class="text"><%= name %></span>
</h1>
<div class="<%= key %>-list">
<%= for node <- nodes, do: detail_template(node, module) %>
</div>
</section>
<% end %>
<%= footer_template(config, module) %>
|