Merge pull request #240 from pateljannat/fix-translation-issue
This commit is contained in:
@@ -10,9 +10,9 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% if membership and not read_only %}
|
{% if membership and not read_only %}
|
||||||
{% if progress < 100 %}
|
{% if progress < 100 %}
|
||||||
<div class="course-card-pills dark-pills ml-auto">{{ frappe.utils.rounded(progress) }}% _("Completed")</div>
|
<div class="course-card-pills dark-pills ml-auto">{{ frappe.utils.rounded(progress) }}% {{ _("Completed") }}</div>
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="course-card-pills dark-pills ml-auto"> <img src="/assets/community/icons/check.svg"> _("Completed") </div>
|
<div class="course-card-pills dark-pills ml-auto"> <img src="/assets/community/icons/check.svg"> {{ _("Completed") }}</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
@@ -25,7 +25,7 @@
|
|||||||
<div class="course-card-meta muted-text">
|
<div class="course-card-meta muted-text">
|
||||||
{% if course.get_chapters() | length %}
|
{% if course.get_chapters() | length %}
|
||||||
<span>
|
<span>
|
||||||
{{ course.get_chapters() | length }} _("Chapters")
|
{{ course.get_chapters() | length }} {{ _("Chapters") }}
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if course.get_chapters() | length and course.get_upcoming_batches() | length %}
|
{% if course.get_chapters() | length and course.get_upcoming_batches() | length %}
|
||||||
@@ -33,7 +33,7 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
{% if course.get_upcoming_batches() | length %}
|
{% if course.get_upcoming_batches() | length %}
|
||||||
<span class="">
|
<span class="">
|
||||||
{{ course.get_upcoming_batches() | length }} _("Open Batches")
|
{{ course.get_upcoming_batches() | length }} {{ _("Open Batches") }}
|
||||||
</span>
|
</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</div>
|
</div>
|
||||||
@@ -81,30 +81,30 @@
|
|||||||
|
|
||||||
{% elif course.enable_certification and progress == 100 %}
|
{% elif course.enable_certification and progress == 100 %}
|
||||||
<div class="view-course-link is-default" id="certification" data-course="{{ course.name }}">
|
<div class="view-course-link is-default" id="certification" data-course="{{ course.name }}">
|
||||||
_("Get Certificate") <img class="ml-3" src="/assets/community/icons/black-arrow.svg" />
|
{{ _("Get Certificate") }} <img class="ml-3" src="/assets/community/icons/black-arrow.svg" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% elif progress == 100 %}
|
{% elif progress == 100 %}
|
||||||
<div class="view-course-link is-default">
|
<div class="view-course-link is-default">
|
||||||
_("Course Completed") <img class="ml-3" src="/assets/community/icons/black-arrow.svg" />
|
{{ _("Course Completed") }} <img class="ml-3" src="/assets/community/icons/black-arrow.svg" />
|
||||||
</div>
|
</div>
|
||||||
<a class="stretched-link" href="/courses/{{ course.name }}"></a>
|
<a class="stretched-link" href="/courses/{{ course.name }}"></a>
|
||||||
|
|
||||||
{% elif course.upcoming %}
|
{% elif course.upcoming %}
|
||||||
<div class="view-course-link is-secondary border">
|
<div class="view-course-link is-secondary border">
|
||||||
_("Upcoming Course") <img class="ml-3" src="/assets/community/icons/black-arrow.svg" />
|
{{ _("Upcoming Course") }} <img class="ml-3" src="/assets/community/icons/black-arrow.svg" />
|
||||||
</div>
|
</div>
|
||||||
<a class="stretched-link" href="/courses/{{ course.name }}"></a>
|
<a class="stretched-link" href="/courses/{{ course.name }}"></a>
|
||||||
|
|
||||||
{% elif membership %}
|
{% elif membership %}
|
||||||
<div class="view-course-link is-primary">
|
<div class="view-course-link is-primary">
|
||||||
_("Continue Course") <img class="ml-3" src="/assets/community/icons/white-arrow.svg" />
|
{{ _("Continue Course") }} <img class="ml-3" src="/assets/community/icons/white-arrow.svg" />
|
||||||
</div>
|
</div>
|
||||||
<a class="stretched-link" href="{{ course.get_learn_url(lesson_index) }}{{ query_parameter }}"></a>
|
<a class="stretched-link" href="{{ course.get_learn_url(lesson_index) }}{{ query_parameter }}"></a>
|
||||||
|
|
||||||
{% else %}
|
{% else %}
|
||||||
<div class="view-course-link is-default">
|
<div class="view-course-link is-default">
|
||||||
_("View Course") <img class="ml-3" src="/assets/community/icons/black-arrow.svg" />
|
{{ _("View Course") }} <img class="ml-3" src="/assets/community/icons/black-arrow.svg" />
|
||||||
</div>
|
</div>
|
||||||
<a class="stretched-link" href="/courses/{{ course.name }}"></a>
|
<a class="stretched-link" href="/courses/{{ course.name }}"></a>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user