Add bootstrap classes to homepage

This commit is contained in:
Raghavendra Kamath
2018-04-17 16:47:28 +05:30
parent ea7bb60247
commit 7a717b63e7
4 changed files with 105 additions and 106 deletions

View File

@@ -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>