Commit a6121728 by Asad Azam Committed by AsadAzam

added a message on the course detail page if no run exists

parent df522eaa
...@@ -1636,6 +1636,10 @@ msgstr "" ...@@ -1636,6 +1636,10 @@ msgstr ""
msgid "Not yet created" msgid "Not yet created"
msgstr "" msgstr ""
#: templates/publisher/course_detail/_widgets.html
msgid "No course runs exist for this course"
msgstr ""
#: templates/publisher/course_edit_form.html #: templates/publisher/course_edit_form.html
msgid "Edit Course" msgid "Edit Course"
msgstr "" msgstr ""
......
...@@ -1907,6 +1907,12 @@ msgstr "STÛDÌÖ ÛRL Ⱡ'σяєм ιρѕυм ∂σłσ#" ...@@ -1907,6 +1907,12 @@ msgstr "STÛDÌÖ ÛRL Ⱡ'σяєм ιρѕυм ∂σłσ#"
msgid "Not yet created" msgid "Not yet created"
msgstr "Nöt ýét çréätéd Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт α#" msgstr "Nöt ýét çréätéd Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт α#"
#: templates/publisher/course_detail/_widgets.html
msgid "No course runs exist for this course"
msgstr ""
"Nö çöürsé rüns éxïst för thïs çöürsé Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, "
"¢σηѕє¢тєтυ#"
#: templates/publisher/course_edit_form.html #: templates/publisher/course_edit_form.html
msgid "Edit Course" msgid "Edit Course"
msgstr "Édït Çöürsé Ⱡ'σяєм ιρѕυм ∂σłσя #" msgstr "Édït Çöürsé Ⱡ'σяєм ιρѕυм ∂σłσя #"
......
...@@ -12,6 +12,7 @@ ...@@ -12,6 +12,7 @@
</a> </a>
</div> </div>
<div class="course-run-list"> <div class="course-run-list">
{% if course.course_runs %}
{% for course_run in course.course_runs %} {% for course_run in course.course_runs %}
<div class="layout-1t2t layout-reversed course-run-item"> <div class="layout-1t2t layout-reversed course-run-item">
<div class="layout-col layout-col-a created-by"> <div class="layout-col layout-col-a created-by">
...@@ -36,6 +37,11 @@ ...@@ -36,6 +37,11 @@
</div> </div>
</div> </div>
{% endfor %} {% endfor %}
{% else %}
<div class="course-run-item">
{% trans "No course runs exist for this course" %}
</div>
{% endif %}
</div> </div>
<div class="approval-widget {% if not publisher_approval_widget_feature %}hidden{% endif %}"> <div class="approval-widget {% if not publisher_approval_widget_feature %}hidden{% endif %}">
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment