Merge pull request #229 from lektor/issue-195

Add a link from a plugin event to the plugin tag page for that event.
This commit is contained in:
Joseph Nix 2018-06-28 16:41:55 -05:00 committed by GitHub
commit dbb88eadb6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -52,6 +52,12 @@
</ul> </ul>
{{ this.body }} {{ this.body }}
{% if this.parent._slug == 'events' %}
<br>
<p>
<a href="{{ ('/plugins/tag/' ~ this._slug ~ '/')|url }}" class="ref">Plugins That Use This Event</a>
</p>
{% endif %}
{% if this.version_history %} {% if this.version_history %}
<div class="version-info version-info-collapsed"> <div class="version-info version-info-collapsed">