5 changed files with 25 additions and 2 deletions
@ -0,0 +1,17 @@
|
||||
<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> |
Loading…
Reference in new issue