Commit 5139d36c by Waheed Ahmed

Fixed empty state messages.

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