{# Copyright (C) 2016 Robin Schneider #} {# Copyright (C) 2018 Maciej Delmanowski #} {# Copyright (C) 2016-2018 DebOps #} {# SPDX-License-Identifier: GPL-3.0-or-later #} {# Support for Sphinx 1.3+ page_source_suffix, but don't break old builds. #} {% if page_source_suffix %} {% set suffix = page_source_suffix %} {% else %} {% set suffix = source_suffix %} {% endif %} {% if meta is defined and meta is not none %} {% set check_meta = True %} {% else %} {% set check_meta = False %} {% endif %} {% if check_meta and 'github_url' in meta %} {% set display_github = True %} {% endif %} {% if check_meta and 'bitbucket_url' in meta %} {% set display_bitbucket = True %} {% endif %}
    {% block breadcrumbs %}
  • Docs »
  • {% for doc in parents %}
  • {{ doc.title }} »
  • {% endfor %}
  • {{ title }}
  • {% endblock %} {% block breadcrumbs_aside %}
  • {% if pagename != "search" %} {% if display_github and pagename in source_file_to_url_map %} {% if check_meta and 'github_url' in meta %} Edit on GitHub {% else %} {# Removed: github_version #} Edit on GitHub {% endif %} {% elif display_bitbucket %} {% if check_meta and 'bitbucket_url' in meta %} Edit on Bitbucket {% else %} Edit on Bitbucket {% endif %} {% elif show_source and source_url_prefix %} View page source {% elif show_source and has_source and sourcename %} View page source {% endif %} {% endif %}
  • {% endblock %}