mirror of
https://github.com/erpnext/foundation.git
synced 2026-10-16 18:00:47 +02:00
Add bootstrap classes to homepage
This commit is contained in:
@@ -2,15 +2,13 @@
|
||||
<div class="media centered {% if link %}clickable{% endif %}"
|
||||
{% if link %}style="cursor: pointer;"{% endif %}
|
||||
{% if link %}onclick="location.href='{{ link }}'"{% endif %}>
|
||||
<div class="media-left">
|
||||
<a href="{{ link or "#" }}">
|
||||
<img class="media-object"
|
||||
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>
|
||||
<a class="mr-3" href="{{ link or "#" }}">
|
||||
<img class="img-thumbnail"
|
||||
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">
|
||||
{% if title %}<h4 class="media-heading">{{ title }}</h4>{% endif %}
|
||||
{% if title %}<h4>{{ title }}</h4>{% endif %}
|
||||
{{ content }}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user