Revert: use /{{ service.image }} - need to check actual DB value first
This commit is contained in:
@@ -11,7 +11,7 @@
|
|||||||
<div class="col-lg-6" data-aos="fade-right">
|
<div class="col-lg-6" data-aos="fade-right">
|
||||||
<div class="service-image-wrapper">
|
<div class="service-image-wrapper">
|
||||||
{% if service.image %}
|
{% if service.image %}
|
||||||
<img src="/static/{{ service.image }}" alt="{{ service.name }}" class="img-fluid rounded-4 shadow-lg">
|
<img src="/{{ service.image }}" alt="{{ service.name }}" class="img-fluid rounded-4 shadow-lg">
|
||||||
{% else %}
|
{% else %}
|
||||||
<img src="{% static 'assets/img/placeholder-service.jpg' %}" alt="{{ service.name }}" class="img-fluid rounded-4 shadow-lg">
|
<img src="{% static 'assets/img/placeholder-service.jpg' %}" alt="{{ service.name }}" class="img-fluid rounded-4 shadow-lg">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|||||||
@@ -56,7 +56,7 @@
|
|||||||
<div class="card-modern h-100">
|
<div class="card-modern h-100">
|
||||||
<div class="position-relative overflow-hidden" style="height: 200px;">
|
<div class="position-relative overflow-hidden" style="height: 200px;">
|
||||||
{% if service.image %}
|
{% if service.image %}
|
||||||
<img src="/static/{{ service.image }}" class="w-100 h-100" style="object-fit: cover;" alt="{{ service.name }}">
|
<img src="/{{ service.image }}" class="w-100 h-100" style="object-fit: cover;" alt="{{ service.name }}">
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="w-100 h-100 bg-gradient d-flex align-items-center justify-content-center">
|
<div class="w-100 h-100 bg-gradient d-flex align-items-center justify-content-center">
|
||||||
<i class="fas fa-cogs text-white" style="font-size: 3rem;"></i>
|
<i class="fas fa-cogs text-white" style="font-size: 3rem;"></i>
|
||||||
|
|||||||
Reference in New Issue
Block a user