mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2025-07-09 12:30:15 +02:00
Add example for template tags to docs
This commit is contained in:
parent
2b31be789d
commit
1e029af83a
@ -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:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user