File: versions.html

package info (click to toggle)
python-mkdocs 1.6.1%2Bdfsg1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 7,812 kB
  • sloc: python: 14,346; javascript: 10,535; perl: 143; sh: 57; makefile: 30; xml: 11
file content (27 lines) | stat: -rw-r--r-- 1,250 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
<div class="rst-versions" role="note" aria-label="{% trans %}Versions{% endtrans %}">
  <span class="rst-current-version" data-toggle="rst-current-version">
    {% if config.repo_name == 'GitHub' %}
        <span>
          <a href="{{ config.repo_url }}" class="fa fa-github" style="color: #fcfcfc"> GitHub</a>
        </span>
    {% elif config.repo_name == 'Bitbucket' %}
        <span>
          <a href="{{ config.repo_url }}" class="icon icon-bitbucket" style="color: #fcfcfc"> BitBucket</a>
        </span>
    {% elif config.repo_name == 'GitLab' %}
        <span>
          <a href="{{ config.repo_url }}" class="icon icon-gitlab" style="color: #fcfcfc"> GitLab</a>
        </span>
    {% elif config.repo_name %}
        <span>
          <a href="{{ config.repo_url }}" class="fa fa-code-fork" style="color: #fcfcfc"> {{ config.repo_name }}</a>
        </span>
    {% endif %}
    {% if page.previous_page %}
      <span><a href="{{ page.previous_page.url|url }}" style="color: #fcfcfc">&laquo; {% trans %}Previous{% endtrans %}</a></span>
    {% endif %}
    {% if page.next_page %}
      <span><a href="{{ page.next_page.url|url }}" style="color: #fcfcfc">{% trans %}Next{% endtrans %} &raquo;</a></span>
    {% endif %}
  </span>
</div>