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
0ad9eb91
Commit
0ad9eb91
authored
Mar 25, 2016
by
Simon Chen
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #11943 from edx/schen/FixPageTagsOnDashboardMakoTemplates
Fix to remove mulitple page tags on mako templates
parents
f1c700a6
d15e192b
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
6 deletions
+5
-6
common/djangoapps/student/tests/tests.py
+3
-2
lms/templates/dashboard/_dashboard_certificate_information.html
+1
-2
lms/templates/dashboard/_dashboard_xseries_info.html
+1
-2
No files found.
common/djangoapps/student/tests/tests.py
View file @
0ad9eb91
...
...
@@ -9,6 +9,7 @@ from datetime import datetime, timedelta
from
urlparse
import
urljoin
import
pytz
from
markupsafe
import
escape
from
mock
import
Mock
,
patch
from
opaque_keys.edx.locations
import
SlashSeparatedCourseKey
from
pyquery
import
PyQuery
as
pq
...
...
@@ -404,7 +405,7 @@ class DashboardTest(ModuleStoreTestCase):
self
.
assertNotIn
(
'Add Certificate to LinkedIn'
,
response
.
content
)
response_url
=
'http://www.linkedin.com/profile/add?_ed='
self
.
assertNotContains
(
response
,
response_url
)
self
.
assertNotContains
(
response
,
escape
(
response_url
)
)
@unittest.skipUnless
(
settings
.
ROOT_URLCONF
==
'lms.urls'
,
'Test only valid in lms'
)
@patch.dict
(
'django.conf.settings.FEATURES'
,
{
'CERTIFICATES_HTML_VIEW'
:
False
})
...
...
@@ -452,7 +453,7 @@ class DashboardTest(ModuleStoreTestCase):
'pfCertificationUrl=www.edx.org&'
'source=o'
)
self
.
assertContains
(
response
,
e
xpected_url
)
self
.
assertContains
(
response
,
e
scape
(
expected_url
)
)
@unittest.skipUnless
(
settings
.
ROOT_URLCONF
==
'lms.urls'
,
'Test only valid in lms'
)
@ddt.data
(
ModuleStoreEnum
.
Type
.
mongo
,
ModuleStoreEnum
.
Type
.
split
)
...
...
lms/templates/dashboard/_dashboard_certificate_information.html
View file @
0ad9eb91
<
%
page
expression_filter=
"h"
/>
<
%
page
args=
"cert_status, course_overview, enrollment"
/>
<
%
page
expression_filter=
"h"
args=
"cert_status, course_overview, enrollment"
/>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
...
...
lms/templates/dashboard/_dashboard_xseries_info.html
View file @
0ad9eb91
<
%
page
expression_filter=
"h"
/>
<
%
page
args=
"program_data, enrollment_mode, display_category"
/>
<
%
page
expression_filter=
"h"
args=
"program_data, enrollment_mode, display_category"
/>
<
%!
from
django
.
utils
.
translation
import
ugettext
as
_
from
openedx
.
core
.
djangolib
.
markup
import
Text
,
HTML
...
...
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