Add example for template tags to docs

This commit is contained in:
Erik Kalkoken 2022-06-17 11:58:05 +00:00 committed by Ariel Rin
parent 2b31be789d
commit 1e029af83a

View File

@ -1,15 +1,27 @@
============= =======================
Template Tags Template tags & filters
============= =======================
The following template tags are available to be used by all apps. To use them just load the respeetive template tag in your template like so: The following template tags and filters are available to be used by all apps. To use them just load them into your template like so:
.. code-block:: html .. code-block:: html+django
{% load evelinks %} {% load evelinks %}
Template Filters
================
evelinks evelinks
======== --------
Example for using an evelinks filter to render an alliance logo:
.. code-block:: html+django
<img src="{{ alliance_id|alliance_logo_url }}">
.. automodule:: allianceauth.eveonline.templatetags.evelinks .. automodule:: allianceauth.eveonline.templatetags.evelinks
:members: :members: