{% import "macros.html" as ui %} {% set role = page_role(state, entity) %} {% for crumb in breadcrumbs %} {{ crumb.name }} › {% endfor %} {{ ui.icon(role, symbols.get(role, "")) }} {{ entity.name }} {{ role }} {{ entity.path }} {% if entity.filepath %} {{ entity.filepath }}{% if entity.lineno and entity.kind != "module" %}:{{ entity.lineno }}–{{ entity.endlineno }}{% endif %} {% endif %} {# Open the graph views focused on this entity. #} {% set views = [] %} {% if entity.kind == "module" %} {% set views = [("architecture", "Architecture", "/architecture?focus=" ~ entity.path), ("git", "Git", "/git?file=" ~ entity.filepath)] %} {% elif entity.kind == "class" %} {% set views = [("classes", "Classes", "/classes?package=" ~ entity.parent ~ "&focus=" ~ entity.path), ("calls", "Calls", "/calls?focus=" ~ entity.path)] %} {% elif entity.kind == "function" %} {% set views = [("calls", "Calls", "/calls?focus=" ~ entity.path)] %} {% endif %} {% if views %} See in {% for name, label, url in views %}{{ ui.icon(name) }}{{ label }}{% endfor %} {% endif %}
{% for crumb in breadcrumbs %} {{ crumb.name }} › {% endfor %}
{{ entity.path }} {% if entity.filepath %} {{ entity.filepath }}{% if entity.lineno and entity.kind != "module" %}:{{ entity.lineno }}–{{ entity.endlineno }}{% endif %} {% endif %}
{{ entity.path }}
See in {% for name, label, url in views %}{{ ui.icon(name) }}{{ label }}{% endfor %}