File: versions.html

package info (click to toggle)
python-mkdocs 1.4.2%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,640 kB
  • sloc: python: 12,310; javascript: 2,315; perl: 142; sh: 84; makefile: 24; xml: 12
file content (23 lines) | stat: -rw-r--r-- 1,070 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
<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>
    {% 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>