mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-11-02 22:25:43 +00:00 
			
		
		
		
	* remove markuplint * remove dedicated html step - will be done by pre-commit * add djlint for django template linting * Fix T003: Endblock should have name * Fix H013: Img tag should have an alt attribute * Fix H014: Found extra blank lines * Fix T003: Endblock should have name * Fix H013: Img tag should have an alt attribute * small fixes * Fix T001: Variables should be wrapped in a single whitespace * Fix T003: Endblock should have name * small fixes * fix form method * add entry to contributing * fix template changes * another fix * use current version
		
			
				
	
	
		
			31 lines
		
	
	
		
			930 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			31 lines
		
	
	
		
			930 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% if 'http' in url %}
 | 
						|
{% set img_url = url %}
 | 
						|
{% else %}
 | 
						|
{% set img_url = config.assets_dir + '/images/' + url %}
 | 
						|
{% endif %}
 | 
						|
 | 
						|
<figure class='image image-inventree'>
 | 
						|
    {% if id %}
 | 
						|
    <!-- The link that, when clicked, will display the image in full screen -->
 | 
						|
    <a href="#{{ id }}">
 | 
						|
    {% elif img_url %}
 | 
						|
    <a href="{{ img_url }}">
 | 
						|
    {% endif %}
 | 
						|
        <img class='img-inline' src='{{ img_url }}' alt='{{ description }}' title='{{ description }}'
 | 
						|
        {% if maxwidth or maxheight %}style='
 | 
						|
        {% if maxwidth %} max-width:{{ maxwidth }};{% endif %}
 | 
						|
        {% if maxheight %} max-height: {{ maxheight }};{% endif %}
 | 
						|
        '{% endif %}
 | 
						|
        >
 | 
						|
    {% if id or img_url %}
 | 
						|
    </a>
 | 
						|
    {% endif %}
 | 
						|
 | 
						|
    {% if id %}
 | 
						|
    <!-- The full screen image, hidden by default  -->
 | 
						|
    <a href="#_" class="overlay" id="{{ id }}">
 | 
						|
      <img src="{{ img_url }}" alt="{{ description }}" />
 | 
						|
    </a>
 | 
						|
    {% endif %}
 | 
						|
</figure>
 |