Commit df911f74 by Waheed Ahmed

Fixed preview link in published message on course detail page.

parent 62b21577
......@@ -1119,7 +1119,7 @@ class CourseRunDetailTests(TestCase):
history_object = self.course_run_state.history.filter(
name=CourseRunStateChoices.Published
).order_by('-modified').first()
expected = 'The About page for this course run was published on {publish_date}. View it on edx.org at'.format(
expected = 'The About page for this course run was published on {publish_date}.'.format(
publish_date=history_object.modified.strftime('%m/%d/%y')
)
self.assertContains(response, expected)
......
......@@ -11,10 +11,10 @@ msgstr ""
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: \n"
#: apps/api/filters.py
#, python-brace-format
......@@ -2500,7 +2500,10 @@ msgstr ""
#, python-format
msgid ""
"The About page for this course run was published on %(course_publish_date)s."
" View it on edx.org at"
msgstr ""
#: templates/publisher/course_run_detail/course_run_detail.html
msgid "View it on edx.org at"
msgstr ""
#: templates/publisher/course_run_detail/course_run_detail.html
......
......@@ -11,10 +11,10 @@ msgstr ""
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: \n"
#: static/js/catalogs-change-form.js
msgid "Preview"
......
......@@ -11,10 +11,10 @@ msgstr ""
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: apps/api/filters.py
......@@ -2956,10 +2956,13 @@ msgstr "Çöürsé Rün Détäïls Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт α
#, python-format
msgid ""
"The About page for this course run was published on %(course_publish_date)s."
" View it on edx.org at"
msgstr ""
"Thé Àßöüt pägé för thïs çöürsé rün wäs püßlïshéd ön %(course_publish_date)s."
" Vïéw ït ön édx.örg ät Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєт#"
" Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, ¢σηѕє¢тєтυя α#"
#: templates/publisher/course_run_detail/course_run_detail.html
msgid "View it on edx.org at"
msgstr "Vïéw ït ön édx.örg ät Ⱡ'σяєм ιρѕυм ∂σłσя ѕιт αмєт, #"
#: templates/publisher/course_run_detail/course_run_detail.html
#: templates/publisher/dashboard/_in_progress.html
......
......@@ -11,10 +11,10 @@ msgstr ""
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
"Language: \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Language: \n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#: static/js/catalogs-change-form.js
......
......@@ -16,10 +16,15 @@
<strong>
<!-- Is it possible to make "View it on edx.org" into a link? If so, make it into a link, add a period at the end, and delete "at". If not, keep "at", but remove the colon and add a period after the link. -->
{% blocktrans with publish_date|date:'m/d/y' as course_publish_date trimmed %}
The About page for this course run was published on {{ course_publish_date }}. View it on edx.org at
The About page for this course run was published on {{ course_publish_date }}.
{% endblocktrans %}
{% if object.preview_url %}
{% trans "View it on edx.org at" %}
{% endif %}
</strong>
{% if object.preview_url %}
<a href="{{ object.preview_url }}" target="_blank">{{ object.preview_url }}</a>
{% endif %}
</div>
{% endif %}
<nav class="administration-nav">
......
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