{% if certificates | length %}
{% for certificate in certificates %} {% set course = frappe.db.get_value("LMS Course", certificate.course, ["title", "name", "image"], as_dict=True) %}
{{ course.title }}
{{ _("Issued on") }} : {{ frappe.utils.format_date(certificate.issue_date, "medium") }}
{% endfor %}
{% else %} {% set course_list_link = "course list" %}
{{ _("No certificates") }}
{{ _("Check out the {0} to know more about certification.").format(course_list_link) }}
{% endif %}