Commit 5139d36c by Waheed Ahmed

Fixed empty state messages.

ECOM-7700
parent d15ff4b2
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-13 18:39+0500\n"
"POT-Creation-Date: 2017-04-14 15:14+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -2576,6 +2576,10 @@ msgid "PUBLISHED COURSE RUNS"
msgstr ""
#: templates/publisher/dashboard/_in_preview.html
msgid "No course run previews are currently available."
msgstr ""
#: templates/publisher/dashboard/_in_preview.html
msgid ""
"The following course run previews are available for course team approval. "
"After the course team approves the preview, the edX marketing team will "
......@@ -2596,7 +2600,7 @@ msgid "In Review"
msgstr ""
#: templates/publisher/dashboard/_in_progress.html
msgid "There are no in progress course runs."
msgid "There are no in development course runs."
msgstr ""
#: templates/publisher/dashboard/_in_progress.html
......@@ -2622,7 +2626,7 @@ msgid "End"
msgstr ""
#: templates/publisher/dashboard/_published.html
msgid "Looks like you haven't published any course yet"
msgid "Looks like you haven't published any course yet."
msgstr ""
#: templates/publisher/dashboard/_published.html
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-13 18:39+0500\n"
"POT-Creation-Date: 2017-04-14 15:14+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -84,10 +84,6 @@ msgstr ""
msgid "There was an error in saving your data."
msgstr ""
#: static/js/publisher/views/dashboard.js
msgid "No course run previews are currently available."
msgstr ""
#: static/js/publisher/views/navbar.js
msgid "OFF"
msgstr ""
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-13 18:39+0500\n"
"POT-Creation-Date: 2017-04-14 15:14+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -3020,6 +3020,12 @@ msgid "PUBLISHED COURSE RUNS"
msgstr "PÛBLÌSHÉD ÇÖÛRSÉ RÛNS Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, #"
#: templates/publisher/dashboard/_in_preview.html
msgid "No course run previews are currently available."
msgstr ""
"Nö çöürsé rün prévïéws äré çürréntlý äväïläßlé. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт,"
" ¢σηѕє¢тєтυя α#"
#: templates/publisher/dashboard/_in_preview.html
msgid ""
"The following course run previews are available for course team approval. "
"After the course team approves the preview, the edX marketing team will "
......@@ -3047,10 +3053,10 @@ msgid "In Review"
msgstr "Ìn Révïéw Ⱡ'σяєм ιρѕυм ∂σł#"
#: templates/publisher/dashboard/_in_progress.html
msgid "There are no in progress course runs."
msgid "There are no in development course runs."
msgstr ""
"Théré äré nö ïn prögréss çöürsé rüns. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, "
"¢σηѕє¢тєтυ#"
"Théré äré nö ïn dévélöpmént çöürsé rüns. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, "
"¢σηѕє¢тєтυя#"
#: templates/publisher/dashboard/_in_progress.html
msgid "Filter by"
......@@ -3075,10 +3081,10 @@ msgid "End"
msgstr "Énd Ⱡ'σяєм#"
#: templates/publisher/dashboard/_published.html
msgid "Looks like you haven't published any course yet"
msgid "Looks like you haven't published any course yet."
msgstr ""
"Lööks lïké ýöü hävén't püßlïshéd äný çöürsé ýét Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт,"
" ¢σηѕє¢тєтυя α#"
"Lööks lïké ýöü hävén't püßlïshéd äný çöürsé ýét. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт "
"αмєт, ¢σηѕє¢тєтυя α#"
#: templates/publisher/dashboard/_published.html
#, python-format
......
......@@ -7,7 +7,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2017-04-13 18:39+0500\n"
"POT-Creation-Date: 2017-04-14 15:14+0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
......@@ -98,12 +98,6 @@ msgstr ""
"Théré wäs än érrör ïn sävïng ýöür dätä. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, "
"¢σηѕє¢тєтυя#"
#: static/js/publisher/views/dashboard.js
msgid "No course run previews are currently available."
msgstr ""
"Nö çöürsé rün prévïéws äré çürréntlý äväïläßlé. Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт,"
" ¢σηѕє¢тєтυя α#"
#: static/js/publisher/views/navbar.js
msgid "OFF"
msgstr "ÖFF Ⱡ'σяєм#"
......
......@@ -58,8 +58,7 @@ $(document).ready(function() {
});
$('.data-table-preview').DataTable({
"autoWidth": false,
"oLanguage": { "sEmptyTable": gettext("No course run previews are currently available.") }
"autoWidth": false
});
var inProgressTable = $('.data-table-in-progress').DataTable({
......
......@@ -328,18 +328,13 @@
}
.empty-courserun-text {
@include padding(100px, 160px, 100px, 160px);
p {
@include padding(0px, 0px, 0px, 0px);
@include margin(0px, 0px, 0px, 0px);
}
padding-top: 20px;
padding-bottom: 20px;
text-align: center;
}
.approval-widget, .course-widgets {
.btn-course-edit, .btn-courserun-edit, .btn-change-state, .btn-preview, .btn-save-preview-url, .btn-edit-preview-url {
......
......@@ -41,7 +41,6 @@
<div role="tabpanel" id="preview" class="tab-panel" aria-labelledby="tab-preview" aria-hidden="true" tabindex="-1">
{% include "publisher/dashboard/_in_preview.html" %}
<p></p>
</div>
{% if is_project_coordinator %}
......
{% load i18n %}
<p>
{% trans "The following course run previews are available for course team approval. After the course team approves the preview, the edX marketing team will publish the course run on edx.org. The course team will receive an email message when the course run has been published." %}
</p>
<div class="table-view">
<table class="data-table-preview display" cellspacing="0" width="100%">
<thead>
<tr>
<th role="button">
{% trans "Course Name" %}
</th>
<th role="button">
{% trans "Organization" %}
</th>
<th role="button">
{% trans "Status" %}
</th>
<th role="button">
{% trans "Preview URL" %}
</th>
</tr>
</thead>
<tbody>
{% for course_run in preview_course_runs %}
{% if preview_count == 0 %}
<div class="empty-courserun-text">{% trans "No course run previews are currently available." %}</div>
{% else %}
<p>
{% trans "The following course run previews are available for course team approval. After the course team approves the preview, the edX marketing team will publish the course run on edx.org. The course team will receive an email message when the course run has been published." %}
</p>
<div class="table-view">
<table class="data-table-preview display" cellspacing="0" width="100%">
<thead>
<tr>
<td id="course-title-{{ course_run.title }}">
<a href="{% url 'publisher:publisher_course_run_detail' course_run.id %}">{{ course_run.title }}</a>
</td>
<td>
{% if course_run.course.organizations.first %}{{ course_run.course.organizations.first.key }}{% endif %}
</td>
<td>
{% if not course_run.preview_url %}
{% trans "Preview Requested" %}
{% elif course_run.course_run_state.preview_accepted %}
{% trans "Approved" %}
{% else %}
{% trans "In Review" %}
{% endif %}
</td>
<td>
<a target="_blank" href="{{ course_run.preview_url }}">{{ course_run.preview_url }}</a>
</td>
<th role="button">
{% trans "Course Name" %}
</th>
<th role="button">
{% trans "Organization" %}
</th>
<th role="button">
{% trans "Status" %}
</th>
<th role="button">
{% trans "Preview URL" %}
</th>
</tr>
{% endfor %}
</tbody>
</table>
</div>
</thead>
<tbody>
{% for course_run in preview_course_runs %}
<tr>
<td id="course-title-{{ course_run.title }}">
<a href="{% url 'publisher:publisher_course_run_detail' course_run.id %}">{{ course_run.title }}</a>
</td>
<td>
{% if course_run.course.organizations.first %}{{ course_run.course.organizations.first.key }}{% endif %}
</td>
<td>
{% if not course_run.preview_url %}
{% trans "Preview Requested" %}
{% elif course_run.course_run_state.preview_accepted %}
{% trans "Approved" %}
{% else %}
{% trans "In Review" %}
{% endif %}
</td>
<td>
<a target="_blank" href="{{ course_run.preview_url }}">{{ course_run.preview_url }}</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
{% endif %}
{% load i18n %}
{% if in_progress_count == 0 %}
<p>{% trans "There are no in progress course runs." %}</p>
<div class="empty-courserun-text">{% trans "There are no in development course runs." %}</div>
{% else %}
<table class="data-table-in-progress display" cellspacing="0" width="100%">
<div class="filters">
......
{% load i18n %}
{% if published_count == 0 %}
<p>{% trans "Looks like you haven't published any course yet" %}</p>
<div class="empty-courserun-text">{% trans "Looks like you haven't published any course yet." %}</div>
{% else %}
<p>
{% blocktrans trimmed %}
......
......@@ -58,7 +58,5 @@
</div>
{% else %}
<div class="depth depth-0">
<p class="empty-courserun-text">{% trans "There are no course-runs require studio instance." %}</p>
</div>
<div class="empty-courserun-text">{% trans "There are no course-runs require studio instance." %}</div>
{% 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