mirror of
https://github.com/frappe/erpnext.git
synced 2026-06-02 03:39:11 +00:00
[fix] convert Item and Item Grid images to absolute urls
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
{% macro product_image_square(website_image, css_class="") %}
|
{% macro product_image_square(website_image, css_class="") %}
|
||||||
<div class="product-image product-image-square {% if not website_image -%} missing-image {%- endif %} {{ css_class }}"
|
<div class="product-image product-image-square {% if not website_image -%} missing-image {%- endif %} {{ css_class }}"
|
||||||
{% if website_image -%} style="background-image: url('{{ frappe.utils.quoted(website_image) }}');" {%- endif %}>
|
{% if website_image -%} style="background-image: url('{{ frappe.utils.quoted(website_image) | abs_url }}');" {%- endif %}>
|
||||||
{% if not website_image -%}<i class="centered octicon octicon-device-camera"></i>{%- endif %}
|
{% if not website_image -%}<i class="centered octicon octicon-device-camera"></i>{%- endif %}
|
||||||
</div>
|
</div>
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
@@ -8,7 +8,7 @@
|
|||||||
{% macro product_image(website_image, css_class="") %}
|
{% macro product_image(website_image, css_class="") %}
|
||||||
<div class="product-image {% if not website_image -%} missing-image {%- endif %} {{ css_class }}">
|
<div class="product-image {% if not website_image -%} missing-image {%- endif %} {{ css_class }}">
|
||||||
{% if website_image -%}
|
{% if website_image -%}
|
||||||
<img src="{{ frappe.utils.quoted(website_image) }}" class="img-responsive">
|
<img src="{{ frappe.utils.quoted(website_image) | abs_url }}" class="img-responsive">
|
||||||
{%- else -%}
|
{%- else -%}
|
||||||
<i class="centered octicon octicon-device-camera"></i>
|
<i class="centered octicon octicon-device-camera"></i>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
|||||||
Reference in New Issue
Block a user