You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

17 lines
940 B

<aside class="phpdocumentor-element-found-in">
<abbr class="phpdocumentor-element-found-in__file" title="{{ node.file.path }}">{{ node.file|route('file:short') }}</abbr>
:
<span class="phpdocumentor-element-found-in__line">{{ node.line }}</span>
{% if project.settings.custom['package.url_repository'] %}
{% set custom = project.settings.custom %}
{% set url = custom['package.url_repository']|replace({'.git': ''}) %}
{% set url = url ~ '/src/branch/%s/%s'|format(custom['package.branch'], node.file.path) %}
{% set url = url ~ '#L%s'|format( node.line ) %}
<a href="{{ url }}" class="phpdocumentor-element-found-in__repository">Source</a>
{% endif %}
{% if node.file.source %}
<a href="{{ target_path }}#source-view.{{ node.line }}" class="phpdocumentor-element-found-in__source" data-line="{{ node.line }}" data-modal="source-view"></a>
{% endif %}
</aside>