Merge branch 'bootstrap-4' of github.com:erpnext/foundation into bootstrap-4

This commit is contained in:
Raghavendra Kamath
2018-04-19 14:50:59 +05:30
3 changed files with 784 additions and 869 deletions

View File

@@ -1,13 +1,18 @@
{% macro media(title, content, image, link) %}
<div class="media {% if link %}clickable{% endif %}"
<div class="media my-5 bg-light p-4 {% if link %}clickable{% endif %}"
{% if link %}style="cursor: pointer;"{% endif %}
{% if link %}onclick="location.href='{{ link }}'"{% endif %}>
<a class="mr-3" href="{{ link or "#" }}">
<img class="media-img img-thumbnail" src="{% if image %}{% if not '/' in image %}/assets/foundation/img/{% endif %}{{ image }}{% else %}/assets/foundation/img/frappe-bird-grey.svg{% endif %}"
>
</a>
<div class="media-body">
{% if title %}<h4>{{ title }}</h4>{% endif %}
<a href="{{ link or "#" }}">
<img class="mr-3 p-4"
src="{% if image %}{% if not '/' in image %}/assets/foundation/img/{% endif %}{{ image }}{% else %}/assets/foundation/img/frappe-bird-grey.svg{% endif %}"
style="{% if image and not '/' in image %}opacity: 0.4{% endif %}">
</a>
<div class="media-body mt-0 lead p-4">
{% if title %}<h4 class="media-heading">{{ title }}</h4>{% endif %}
{{ content }}
</div>
</div>
{% endmacro %}
{{ content }}
</div>
</div>