more stuff

This commit is contained in:
Rushabh Mehta
2017-03-02 18:46:34 +05:30
parent 6a8e3b6a45
commit 20652f948e
28 changed files with 507 additions and 80 deletions

View File

@@ -1,6 +1,6 @@
{% macro media(title, content, image, link) %}
<div class="media"
style="margin: 45px 0px; {% if link %}cursor: pointer;{% endif %}"
<div class="media foundation-media"
{% if link %}style="cursor: pointer;"{% endif %}
{% if link %}onclick="location.href='{{ link }}'"{% endif %}>
<div class="media-left">
<a href="{{ link or "#" }}">

View File

@@ -0,0 +1,5 @@
<div style='margin-bottom: 30px; max-width: 600px;'>
<a href="/{{ doc.route }}"><h3>{{ doc.title }}</h3></a>
<p class='text-muted small'>{{ doc.place }} | {{ frappe.format_date(date) }}</p>
<p>{{ html2text(doc.description[:200]) }}{% if doc.description|len > 200 %}...{% endif %}</p>
</div>