File: footer_template.eex

package info (click to toggle)
elixir-ex-doc 0.35.1%2Bdfsg-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,784 kB
  • sloc: javascript: 2,848; makefile: 15; xml: 12; sh: 5
file content (44 lines) | stat: -rw-r--r-- 1,749 bytes parent folder | download
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
    <footer class="footer">
      <p>
        <%= if config.package do %>
          <span class="line">
            <a href="https://hex.pm/packages/<%= config.package %>/<%= config.version %>" class="footer-hex-package">Hex Package</a>

            <a href="https://preview.hex.pm/preview/<%= config.package %>/<%= config.version %>">Hex Preview</a>

            <%= source_path = node && Map.get(node, :source_path); if source_path do %>
              (<a href="https://preview.hex.pm/preview/<%= config.package %>/<%= config.version %>/show/<%= source_path %>">current file</a>)
            <% end %>
          </span>
        <% end %>

        <span class="line">
          <button class="a-main footer-button display-quick-switch" title="Search HexDocs packages">
            Search HexDocs
          </button>

          <%= if "epub" in config.formatters do %>
            <a href="<%= config.project %>.epub" title="ePub version">
              Download ePub version
            </a>
          <% end %>
        </span>
      </p>

      <p class="built-using">
        Built using
        <a href="https://github.com/elixir-lang/ex_doc" title="ExDoc" target="_blank" rel="help noopener" translate="no">ExDoc</a> (v<%= ExDoc.version() %>) for the
        <%= if config.proglang == :erlang do %>
          <a href="https://erlang.org" title="Erlang" target="_blank" translate="no">Erlang programming language</a>
        <% else %>
          <a href="https://elixir-lang.org" title="Elixir" target="_blank" translate="no">Elixir programming language</a>
        <% end %>
      </p>
      <%= before_closing_footer_tag(config, :html) %>
    </footer>
  </div>
</main>
</div>
  <%= before_closing_body_tag(config, :html) %>
  </body>
</html>