fix portal job template

This commit is contained in:
Rushabh Mehta
2018-07-17 18:45:40 +05:30
parent 073c8915e0
commit de8216a6d3
2 changed files with 3 additions and 2 deletions

View File

@@ -3,7 +3,8 @@
<div class="card-body">
<a href="/{{ doc.route }}"><h5 class="card-title">{{ doc.title }}</h5></a>
<h6 class="card-subtitle mb-2 text-muted">{{ doc.country }}, {{ frappe.format_date(doc.creation) }} | {{ doc.job_type }}, {{ doc.status }}</h6>
<p class="card-text">{{ html2text(doc.description)[:200] }}{% if doc.description|len > 200 %}...{% endif %}</p>
<p class="card-text">{{ html2text(doc.description or
"No Description")[:200] }}{% if doc.description|len > 200 %}...{% endif %}</p>
<!-- <a href="/{{ doc.route }}" class="card-link">Details</a> -->
</div>
</div>

View File

@@ -21,7 +21,7 @@
<h5>
{{ item.title }}
</h5>
<div>{{ html2text(item.description)|truncate(240) }}</div>
<div>{{ html2text(item.description or "No Description")|truncate(240) }}</div>
<div class="text-muted mt-3">
{{ frappe.format_date(item.creation) }}
<span class='pull-right'>{{ item.country }}</span>