This is a step to removing the base tag. Once everything uses absolute URLs, base tag will be removed and some URLs will be replaced by relative URLs.
45 lines
1.8 KiB
HTML
45 lines
1.8 KiB
HTML
{% extends "layout.html" %}
|
|
|
|
{% block main %}
|
|
|
|
<div class="lxrident">
|
|
{% if symbol_sections|length != 0 %}
|
|
{% for section in symbol_sections %}
|
|
{% if 'symbols' in section %}
|
|
{% for type, symbols in section['symbols'].items() %}
|
|
<h2>{{ section['title'] }} in {{ symbols|length }} files
|
|
{{- ' as a '+type if type != '_unknown' else '' -}}:</h2>
|
|
<ul>
|
|
{% for symbol in symbols %}
|
|
<li>
|
|
<a href="/{{ current_project }}/{{ current_tag_urlencoded }}/source/{{ symbol.path }}#L{{ symbol.line[0] }}">
|
|
<strong>{{ symbol.path }}</strong>
|
|
{%- if symbol.line|length == 1 %},
|
|
line {{ symbol.line[0] }}
|
|
{%- elif symbols|length > 100 %},
|
|
<em>{{ symbol.line|length }} times</em>
|
|
{% endif %}
|
|
{% if symbol.type is not none %}
|
|
<em>(as a {{ symbol.type }})</em>
|
|
{% endif %}
|
|
</a>
|
|
{% if symbol.line|length > 1 and symbols|length <= 100 %}
|
|
<ul>
|
|
{% for l in symbol.line %}
|
|
<li><a href="/{{ current_project }}/{{ current_tag_urlencoded }}/source/{{ symbol.path }}#L{{ l }}">line {{ l }}</a>
|
|
{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% endfor %}
|
|
</ul>
|
|
{% endfor %}
|
|
{% else %}
|
|
<h2>{{ section['message'] }}</h2>
|
|
{% endif %}
|
|
{% endfor %}
|
|
{% else %}
|
|
<h2>Identifier not used</h2>
|
|
{% endif %}
|
|
</div>
|
|
|
|
{% endblock %}
|