2
0
mirror of https://github.com/inventree/inventree-docs.git synced 2025-07-30 09:11:46 +00:00
Files
_includes
overrides
app_carousel.html
carousel_end.html
carousel_img.html
carousel_start.html
config.yaml
docker-compose.yml
gunicorn.conf.py
img.html
index_carousel.html
nginx.conf
docs
.gitignore
LICENSE
README.md
mkdocs.yml
readthedocs.yml
requirements.txt
inventree-docs/_includes/carousel_img.html
2021-08-04 20:38:11 +10:00

15 lines
504 B
HTML

{% if 'readthedocs.org' in config.docs_dir %}
{% set assets = '/en/latest/assets' %}
{% else %}
{% set assets = '/assets' %}
{% endif %}
{% if 'http' in src %}
{% set img_url = src %}
{% else %}
{% set img_url = assets + '/images/' + src %}
{% endif %}
<div class='item{% if active %} active{% endif %}'>
<img class='center' src='{{ img_url }}' alt='{{ alt }}' style='{% if min_height %}min-height: {{ min_height }}; {% endif %}{% if max_height %}max-height: {{ max_height }}; {% endif %}'>
</div>