File: edit-this-page.html

package info (click to toggle)
pydata-sphinx-theme 0.16.1%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,088 kB
  • sloc: python: 2,796; javascript: 701; makefile: 42; sh: 12
file content (16 lines) | stat: -rw-r--r-- 595 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
{% if sourcename is defined and theme_use_edit_page_button and page_source_suffix %}
  {% set src = sourcename.split('.') %}
  <div class="tocsection editthispage">
    <a href="{{ to_main(get_edit_provider_and_url()[1]) }}">
      <i class="fa-solid fa-pencil"></i>
      {% set provider = get_edit_provider_and_url()[0] %}
      {% block edit_this_page_text %}
        {% if provider %}
          {% trans provider=provider %}Edit on {{ provider }}{% endtrans %}
        {% else %}
          {% trans %}Edit{% endtrans %}
        {% endif %}
      {% endblock %}
    </a>
  </div>
{% endif %}