Merge pull request #185 from asbasawaraj/fix_event_date_in_portal_event

Fixes erpnext/foundation#184
This commit is contained in:
Prateeksha Singh
2018-05-04 13:30:18 +05:30
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@@ -9,6 +9,6 @@
<hr> <hr>
<p> <p>
<span class='label'>{{ doc.place }}</span> <span class='label'>{{ doc.place }}</span>
<span class='label'>{{ frappe.format_date(date) }}</span> <span class='label'>{{ frappe.format_date(event_date) }}</span>
</p> </p>
{% endblock %} {% endblock %}

View File

@@ -3,7 +3,7 @@
<h3 style='margin-top: 0px'>{{ doc.event_title }}</h3> <h3 style='margin-top: 0px'>{{ doc.event_title }}</h3>
<p> <p>
<span class='label'>{{ doc.place }}</span> <span class='label'>{{ doc.place }}</span>
<span class='label'>{{ frappe.format_date(date) }}</span> <span class='label'>{{ frappe.format_date(event_date) }}</span>
</p> </p>
<p> <p>
{{ html2text(doc.details[:200]) }}{% if doc.details|len > 200 %}...{% endif %}</p> {{ html2text(doc.details[:200]) }}{% if doc.details|len > 200 %}...{% endif %}</p>