Skip to content
This repository was archived by the owner on Nov 22, 2019. It is now read-only.

Fixes see and uses issues #22

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 10 additions & 2 deletions class.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,15 @@
<dt>See also</dt>
{% endif %}
{% for tag in tags %}
<dd><a href="{{ tag.link }}"><div class="namespace-wrapper">{{ tag.description }}</div></a></dd>
<dd><a href="{{ tag.link }}"><div class="namespace-wrapper">{{ tag.reference|route|raw }}{% if tag.description %} {{ tag.description }}{% endif %}</div></a></dd>
{% endfor %}
{% endfor %}
{% for tagName,tags in node.tags if tagName in ['uses'] %}
{% if loop.first %}
<dt>Uses</dt>
{% endif %}
{% for tag in tags %}
<dd><a href="{{ tag.reference|route('url') }}"><div class="namespace-wrapper">{{ tag.reference|route|raw }}{% if tag.description %} {{ tag.description }}{% endif %}</div></a></dd>
{% endfor %}
{% endfor %}

Expand All @@ -227,7 +235,7 @@
</dl>
<h2>Tags</h2>
<table class="table table-condensed">
{% for tagName,tags in node.tags if tagName not in ['link', 'see', 'abstract', 'method', 'property', 'property-read', 'property-write', 'package', 'subpackage'] %}
{% for tagName,tags in node.tags if tagName not in ['link', 'see', 'abstract', 'method', 'property', 'property-read', 'property-write', 'package', 'subpackage', 'uses'] %}
<tr>
<th>
{{ tagName }}
Expand Down
4 changes: 2 additions & 2 deletions elements/method.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -76,15 +76,15 @@
<dt>See also</dt>
{% endif %}
{% for tag in tags %}
<dd><a href="{{ (tag.reference|route('url')) ?: tag.link }}"><span class="namespace-wrapper">{{ tag.description }}</span></a></dd>
<dd><a href="{{ (tag.reference|route('url')) ?: tag.link }}"><span class="namespace-wrapper">{{ tag.reference|route|raw }}{% if tag.description %} {{ tag.description }}{% endif %}</span></a></dd>
{% endfor %}
{% endfor %}
{% for tagName,tags in method.tags if tagName in ['uses'] %}
{% if loop.first %}
<dt>Uses</dt>
{% endif %}
{% for tag in tags %}
<dd>{{ tag.reference|route|raw }}</dd>
<dd><a href="{{ tag.reference|route('url') }}"><span class="namespace-wrapper">{{ tag.reference|route|raw }}{% if tag.description %} {{ tag.description }}{% endif %}</span></a></dd>
{% endfor %}
{% endfor %}
</dl>
Expand Down