mirror of
https://github.com/erpnext/foundation.git
synced 2026-10-16 18:00:47 +02:00
fix: layout for sponsors
This commit is contained in:
@@ -37,7 +37,7 @@
|
|||||||
] %}
|
] %}
|
||||||
|
|
||||||
{% macro show_section(sponsors, with_img = False) %}
|
{% macro show_section(sponsors, with_img = False) %}
|
||||||
<div class='row mt-4'>
|
<div class='row mt-4 justify-content-center'>
|
||||||
{% for sponsor in sponsors %}
|
{% for sponsor in sponsors %}
|
||||||
<div class='mx-3 mx-md-0 col-sm-3 mb-4'>
|
<div class='mx-3 mx-md-0 col-sm-3 mb-4'>
|
||||||
<a href='{{ ("{}{}".format("" if sponsor.website_url.startswith("http") else "//", sponsor.website_url)) if sponsor.website_url else "#" }}' target='_blank' class='card h-100'>
|
<a href='{{ ("{}{}".format("" if sponsor.website_url.startswith("http") else "//", sponsor.website_url)) if sponsor.website_url else "#" }}' target='_blank' class='card h-100'>
|
||||||
@@ -58,7 +58,7 @@
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
{% if loop.index is divisibleby 4 %}
|
{% if loop.index is divisibleby 4 %}
|
||||||
</div><div class='row'>
|
</div><div class='row justify-content-center'>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user