Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
7ef443f7
Commit
7ef443f7
authored
Dec 04, 2017
by
Nimisha Asthagiri
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update usages to ace_common
parent
c6ee8eb6
Hide whitespace changes
Inline
Side-by-side
Showing
24 changed files
with
33 additions
and
31 deletions
+33
-31
cms/envs/common.py
+1
-0
lms/djangoapps/discussion/tasks.py
+1
-1
lms/djangoapps/discussion/templates/discussion/edx_ace/responsenotification/email/body.html
+2
-2
lms/djangoapps/discussion/templates/discussion/edx_ace/responsenotification/email/head.html
+1
-1
lms/djangoapps/discussion/tests/test_tasks.py
+1
-1
lms/envs/common.py
+1
-0
openedx/core/djangoapps/ace_common/templatetags/ace.py
+2
-2
openedx/core/djangoapps/ace_common/tests/test_templatetags.py
+3
-3
openedx/core/djangoapps/ace_common/tests/test_tracking.py
+2
-2
openedx/core/djangoapps/schedules/resolvers.py
+1
-1
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/courseupdate/email/body.html
+3
-3
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/courseupdate/email/body.txt
+1
-1
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/courseupdate/email/head.html
+1
-1
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day10/email/body.html
+3
-3
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day10/email/body.txt
+1
-1
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day10/email/head.html
+1
-1
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day3/email/body.html
+3
-3
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day3/email/body.txt
+1
-1
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day3/email/head.html
+1
-1
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/upgradereminder/email/body.html
+1
-1
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/upgradereminder/email/head.html
+1
-1
themes/red-theme/lms/templates/ace_common/edx_ace/common/base_body.html
+0
-0
themes/red-theme/lms/templates/ace_common/edx_ace/common/return_to_course_cta.html
+0
-0
themes/red-theme/lms/templates/schedules/edx_ace/recurringnudge_day3/email/body.txt
+1
-1
No files found.
cms/envs/common.py
View file @
7ef443f7
...
@@ -1118,6 +1118,7 @@ INSTALLED_APPS = [
...
@@ -1118,6 +1118,7 @@ INSTALLED_APPS = [
'openedx.core.djangoapps.waffle_utils'
,
'openedx.core.djangoapps.waffle_utils'
,
# Dynamic schedules
# Dynamic schedules
'openedx.core.djangoapps.ace_common.apps.AceCommonConfig'
,
'openedx.core.djangoapps.schedules.apps.SchedulesConfig'
,
'openedx.core.djangoapps.schedules.apps.SchedulesConfig'
,
# DRF filters
# DRF filters
...
...
lms/djangoapps/discussion/tasks.py
View file @
7ef443f7
...
@@ -20,7 +20,7 @@ from lms.djangoapps.django_comment_client.utils import permalink
...
@@ -20,7 +20,7 @@ from lms.djangoapps.django_comment_client.utils import permalink
import
lms.lib.comment_client
as
cc
import
lms.lib.comment_client
as
cc
from
openedx.core.djangoapps.content.course_overviews.models
import
CourseOverview
from
openedx.core.djangoapps.content.course_overviews.models
import
CourseOverview
from
openedx.core.djangoapps.
schedules
.template_context
import
get_base_template_context
from
openedx.core.djangoapps.
ace_common
.template_context
import
get_base_template_context
from
openedx.core.lib.celery.task_utils
import
emulate_http_request
from
openedx.core.lib.celery.task_utils
import
emulate_http_request
...
...
lms/djangoapps/discussion/templates/discussion/edx_ace/responsenotification/email/body.html
View file @
7ef443f7
{% extends '
schedules
/edx_ace/common/base_body.html' %}
{% extends '
ace_common
/edx_ace/common/base_body.html' %}
{% load i18n %}
{% load i18n %}
{% load static %}
{% load static %}
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
</div>
</div>
{% trans "View discussion" as course_cta_text %}
{% trans "View discussion" as course_cta_text %}
{% include "
schedules
/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text course_cta_url=post_link%}
{% include "
ace_common
/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text course_cta_url=post_link%}
{% block google_analytics_pixel %}
{% block google_analytics_pixel %}
<img
src=
"{{ ga_tracking_pixel_url }}"
alt=
""
role=
"presentation"
aria-hidden=
"true"
style=
"display: block;"
/>
<img
src=
"{{ ga_tracking_pixel_url }}"
alt=
""
role=
"presentation"
aria-hidden=
"true"
style=
"display: block;"
/>
...
...
lms/djangoapps/discussion/templates/discussion/edx_ace/responsenotification/email/head.html
View file @
7ef443f7
{% extends '
schedules
/edx_ace/common/base_head.html' %}
{% extends '
ace_common
/edx_ace/common/base_head.html' %}
lms/djangoapps/discussion/tests/test_tasks.py
View file @
7ef443f7
...
@@ -21,7 +21,7 @@ from lms.djangoapps.discussion.config.waffle import waffle, FORUM_RESPONSE_NOTIF
...
@@ -21,7 +21,7 @@ from lms.djangoapps.discussion.config.waffle import waffle, FORUM_RESPONSE_NOTIF
from
lms.djangoapps.discussion.signals.handlers
import
ENABLE_FORUM_NOTIFICATIONS_FOR_SITE_KEY
from
lms.djangoapps.discussion.signals.handlers
import
ENABLE_FORUM_NOTIFICATIONS_FOR_SITE_KEY
from
lms.djangoapps.discussion.tasks
import
_should_send_message
from
lms.djangoapps.discussion.tasks
import
_should_send_message
from
openedx.core.djangoapps.content.course_overviews.tests.factories
import
CourseOverviewFactory
from
openedx.core.djangoapps.content.course_overviews.tests.factories
import
CourseOverviewFactory
from
openedx.core.djangoapps.
schedules
.template_context
import
get_base_template_context
from
openedx.core.djangoapps.
ace_common
.template_context
import
get_base_template_context
from
openedx.core.djangoapps.site_configuration.tests.factories
import
SiteConfigurationFactory
from
openedx.core.djangoapps.site_configuration.tests.factories
import
SiteConfigurationFactory
from
openedx.core.djangoapps.theming.middleware
import
CurrentSiteThemeMiddleware
from
openedx.core.djangoapps.theming.middleware
import
CurrentSiteThemeMiddleware
from
openedx.core.djangoapps.waffle_utils.testutils
import
override_waffle_flag
from
openedx.core.djangoapps.waffle_utils.testutils
import
override_waffle_flag
...
...
lms/envs/common.py
View file @
7ef443f7
...
@@ -2331,6 +2331,7 @@ INSTALLED_APPS = [
...
@@ -2331,6 +2331,7 @@ INSTALLED_APPS = [
'database_fixups'
,
'database_fixups'
,
'openedx.core.djangoapps.waffle_utils'
,
'openedx.core.djangoapps.waffle_utils'
,
'openedx.core.djangoapps.ace_common.apps.AceCommonConfig'
,
'openedx.core.djangoapps.schedules.apps.SchedulesConfig'
,
'openedx.core.djangoapps.schedules.apps.SchedulesConfig'
,
# Course Goals
# Course Goals
...
...
openedx/core/djangoapps/ace_common/templatetags/ace.py
View file @
7ef443f7
from
urlparse
import
urlparse
,
parse_qs
from
urlparse
import
urlparse
from
crum
import
get_current_request
from
crum
import
get_current_request
from
django
import
template
from
django
import
template
from
django.utils.safestring
import
mark_safe
from
django.utils.safestring
import
mark_safe
from
openedx.core.djangoapps.
schedules
.tracking
import
CampaignTrackingInfo
,
GoogleAnalyticsTrackingPixel
from
openedx.core.djangoapps.
ace_common
.tracking
import
CampaignTrackingInfo
,
GoogleAnalyticsTrackingPixel
from
openedx.core.djangolib.markup
import
HTML
from
openedx.core.djangolib.markup
import
HTML
register
=
template
.
Library
()
register
=
template
.
Library
()
...
...
openedx/core/djangoapps/ace_common/tests/test_templatetags.py
View file @
7ef443f7
...
@@ -6,13 +6,13 @@ from django.test import override_settings
...
@@ -6,13 +6,13 @@ from django.test import override_settings
from
mock
import
patch
from
mock
import
patch
from
edx_ace
import
Message
,
Recipient
from
edx_ace
import
Message
,
Recipient
from
openedx.core.djangoapps.
schedules
.templatetags.ace
import
(
from
openedx.core.djangoapps.
ace_common
.templatetags.ace
import
(
ensure_url_is_absolute
,
ensure_url_is_absolute
,
with_link_tracking
,
with_link_tracking
,
google_analytics_tracking_pixel
,
google_analytics_tracking_pixel
,
_get_google_analytics_tracking_url
_get_google_analytics_tracking_url
)
)
from
openedx.core.djangoapps.
schedules
.tests.mixins
import
QueryStringAssertionMixin
from
openedx.core.djangoapps.
ace_common
.tests.mixins
import
QueryStringAssertionMixin
from
openedx.core.djangoapps.site_configuration.tests.factories
import
SiteFactory
from
openedx.core.djangoapps.site_configuration.tests.factories
import
SiteFactory
from
openedx.core.djangolib.testing.utils
import
CacheIsolationTestCase
,
skip_unless_lms
from
openedx.core.djangolib.testing.utils
import
CacheIsolationTestCase
,
skip_unless_lms
from
student.tests.factories
import
UserFactory
from
student.tests.factories
import
UserFactory
...
@@ -41,7 +41,7 @@ class TestAbsoluteUrl(CacheIsolationTestCase):
...
@@ -41,7 +41,7 @@ class TestAbsoluteUrl(CacheIsolationTestCase):
class
EmailTemplateTagMixin
(
object
):
class
EmailTemplateTagMixin
(
object
):
def
setUp
(
self
):
def
setUp
(
self
):
patcher
=
patch
(
'openedx.core.djangoapps.
schedules
.templatetags.ace.get_current_request'
)
patcher
=
patch
(
'openedx.core.djangoapps.
ace_common
.templatetags.ace.get_current_request'
)
self
.
mock_get_current_request
=
patcher
.
start
()
self
.
mock_get_current_request
=
patcher
.
start
()
self
.
addCleanup
(
patcher
.
stop
)
self
.
addCleanup
(
patcher
.
stop
)
...
...
openedx/core/djangoapps/ace_common/tests/test_tracking.py
View file @
7ef443f7
...
@@ -2,8 +2,8 @@ from unittest import TestCase
...
@@ -2,8 +2,8 @@ from unittest import TestCase
from
django.test
import
override_settings
from
django.test
import
override_settings
from
openedx.core.djangoapps.
schedules
.tests.mixins
import
QueryStringAssertionMixin
from
openedx.core.djangoapps.
ace_common
.tests.mixins
import
QueryStringAssertionMixin
from
openedx.core.djangoapps.
schedules
.tracking
import
(
from
openedx.core.djangoapps.
ace_common
.tracking
import
(
CampaignTrackingInfo
,
CampaignTrackingInfo
,
DEFAULT_CAMPAIGN_SOURCE
,
DEFAULT_CAMPAIGN_SOURCE
,
DEFAULT_CAMPAIGN_MEDIUM
,
DEFAULT_CAMPAIGN_MEDIUM
,
...
...
openedx/core/djangoapps/schedules/resolvers.py
View file @
7ef443f7
...
@@ -19,7 +19,7 @@ from openedx.core.djangoapps.schedules.content_highlights import get_week_highli
...
@@ -19,7 +19,7 @@ from openedx.core.djangoapps.schedules.content_highlights import get_week_highli
from
openedx.core.djangoapps.schedules.exceptions
import
CourseUpdateDoesNotExist
from
openedx.core.djangoapps.schedules.exceptions
import
CourseUpdateDoesNotExist
from
openedx.core.djangoapps.schedules.models
import
Schedule
,
ScheduleExperience
from
openedx.core.djangoapps.schedules.models
import
Schedule
,
ScheduleExperience
from
openedx.core.djangoapps.schedules.utils
import
PrefixedDebugLoggerMixin
from
openedx.core.djangoapps.schedules.utils
import
PrefixedDebugLoggerMixin
from
openedx.core.djangoapps.
schedules
.template_context
import
get_base_template_context
from
openedx.core.djangoapps.
ace_common
.template_context
import
get_base_template_context
from
openedx.core.djangoapps.site_configuration.models
import
SiteConfiguration
from
openedx.core.djangoapps.site_configuration.models
import
SiteConfiguration
from
openedx.features.course_experience
import
course_home_url_name
from
openedx.features.course_experience
import
course_home_url_name
...
...
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/courseupdate/email/body.html
View file @
7ef443f7
{% extends '
schedules
/edx_ace/common/base_body.html' %}
{% extends '
ace_common
/edx_ace/common/base_body.html' %}
{% load i18n %}
{% load i18n %}
{% block preview_text %}
{% block preview_text %}
...
@@ -31,9 +31,9 @@
...
@@ -31,9 +31,9 @@
</p>
</p>
{% trans "Resume your course now" as course_cta_text %}
{% trans "Resume your course now" as course_cta_text %}
{% include "
schedules
/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text%}
{% include "
ace_common
/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text%}
{% include "
schedules
/edx_ace/common/upsell_cta.html"%}
{% include "
ace_common
/edx_ace/common/upsell_cta.html"%}
</td>
</td>
</tr>
</tr>
</table>
</table>
...
...
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/courseupdate/email/body.txt
View file @
7ef443f7
...
@@ -14,5 +14,5 @@ We want to let you know what you can look forward to in week {{ week_num }}:
...
@@ -14,5 +14,5 @@ We want to let you know what you can look forward to in week {{ week_num }}:
With self-paced courses, you learn on your own schedule. We encourage you to spend time with the course each week.
With self-paced courses, you learn on your own schedule. We encourage you to spend time with the course each week.
Your focused attention will pay off in the end!
Your focused attention will pay off in the end!
{% endblocktrans %}
{% endblocktrans %}
{% include "
schedules
/edx_ace/common/upsell_cta.txt"%}
{% include "
ace_common
/edx_ace/common/upsell_cta.txt"%}
{% endautoescape %}
{% endautoescape %}
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/courseupdate/email/head.html
View file @
7ef443f7
{% extends '
schedules
/edx_ace/common/base_head.html' %}
{% extends '
ace_common
/edx_ace/common/base_head.html' %}
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day10/email/body.html
View file @
7ef443f7
{% extends '
schedules
/edx_ace/common/base_body.html' %}
{% extends '
ace_common
/edx_ace/common/base_body.html' %}
{% load i18n %}
{% load i18n %}
{% block preview_text %}
{% block preview_text %}
...
@@ -36,9 +36,9 @@
...
@@ -36,9 +36,9 @@
</p>
</p>
{% trans "Keep learning" as course_cta_text %}
{% trans "Keep learning" as course_cta_text %}
{% include "
schedules
/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text%}
{% include "
ace_common
/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text%}
{% include "
schedules
/edx_ace/common/upsell_cta.html"%}
{% include "
ace_common
/edx_ace/common/upsell_cta.html"%}
</td>
</td>
</tr>
</tr>
</table>
</table>
...
...
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day10/email/body.txt
View file @
7ef443f7
...
@@ -14,5 +14,5 @@
...
@@ -14,5 +14,5 @@
{% endblocktrans %}
{% endblocktrans %}
{% trans "Keep learning" %} <{% with_link_tracking course_url %}>
{% trans "Keep learning" %} <{% with_link_tracking course_url %}>
{% endif %}
{% endif %}
{% include "
schedules
/edx_ace/common/upsell_cta.txt"%}
{% include "
ace_common
/edx_ace/common/upsell_cta.txt"%}
{% endautoescape %}
{% endautoescape %}
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day10/email/head.html
View file @
7ef443f7
{% extends '
schedules
/edx_ace/common/base_head.html' %}
{% extends '
ace_common
/edx_ace/common/base_head.html' %}
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day3/email/body.html
View file @
7ef443f7
{% extends '
schedules
/edx_ace/common/base_body.html' %}
{% extends '
ace_common
/edx_ace/common/base_body.html' %}
{% load i18n %}
{% load i18n %}
{% block preview_text %}
{% block preview_text %}
...
@@ -36,9 +36,9 @@
...
@@ -36,9 +36,9 @@
</p>
</p>
{% trans "Start learning now" as course_cta_text %}
{% trans "Start learning now" as course_cta_text %}
{% include "
schedules
/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text%}
{% include "
ace_common
/edx_ace/common/return_to_course_cta.html" with course_cta_text=course_cta_text%}
{% include "
schedules
/edx_ace/common/upsell_cta.html"%}
{% include "
ace_common
/edx_ace/common/upsell_cta.html"%}
</td>
</td>
</tr>
</tr>
</table>
</table>
...
...
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day3/email/body.txt
View file @
7ef443f7
...
@@ -16,5 +16,5 @@
...
@@ -16,5 +16,5 @@
{% trans "Start learning now" %} <{% with_link_tracking course_url %}>
{% trans "Start learning now" %} <{% with_link_tracking course_url %}>
{% endif %}
{% endif %}
{% include "
schedules
/edx_ace/common/upsell_cta.txt"%}
{% include "
ace_common
/edx_ace/common/upsell_cta.txt"%}
{% endautoescape %}
{% endautoescape %}
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/recurringnudge_day3/email/head.html
View file @
7ef443f7
{% extends '
schedules
/edx_ace/common/base_head.html' %}
{% extends '
ace_common
/edx_ace/common/base_head.html' %}
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/upgradereminder/email/body.html
View file @
7ef443f7
{% extends '
schedules
/edx_ace/common/base_body.html' %}
{% extends '
ace_common
/edx_ace/common/base_body.html' %}
{% load i18n %}
{% load i18n %}
{% load static %}
{% load static %}
{% load ace %}
{% load ace %}
...
...
openedx/core/djangoapps/schedules/templates/schedules/edx_ace/upgradereminder/email/head.html
View file @
7ef443f7
{% extends '
schedules
/edx_ace/common/base_head.html' %}
{% extends '
ace_common
/edx_ace/common/base_head.html' %}
themes/red-theme/lms/templates/
schedules
/edx_ace/common/base_body.html
→
themes/red-theme/lms/templates/
ace_common
/edx_ace/common/base_body.html
View file @
7ef443f7
File moved
themes/red-theme/lms/templates/
schedules
/edx_ace/common/return_to_course_cta.html
→
themes/red-theme/lms/templates/
ace_common
/edx_ace/common/return_to_course_cta.html
View file @
7ef443f7
File moved
themes/red-theme/lms/templates/schedules/edx_ace/recurringnudge_day3/email/body.txt
View file @
7ef443f7
...
@@ -17,4 +17,4 @@ This is the RED theme!
...
@@ -17,4 +17,4 @@ This is the RED theme!
{% trans "Start learning now" %} <{% with_link_tracking course_url %}>
{% trans "Start learning now" %} <{% with_link_tracking course_url %}>
{% endif %}
{% endif %}
{% include "
schedules
/edx_ace/common/upsell_cta.txt"%}
{% include "
ace_common
/edx_ace/common/upsell_cta.txt"%}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment