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
f74c9b6d
Commit
f74c9b6d
authored
Sep 02, 2015
by
Matt Drayer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mattdrayer/cert-webview-add-org-fields: Added new fields to context
parent
49158fe0
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
2 deletions
+4
-2
lms/djangoapps/certificates/tests/test_views.py
+0
-0
lms/djangoapps/certificates/tests/test_webview_views.py
+0
-0
lms/djangoapps/certificates/views/webview.py
+4
-2
No files found.
lms/djangoapps/certificates/tests/test_views.py
View file @
f74c9b6d
This diff is collapsed.
Click to expand it.
lms/djangoapps/certificates/tests/test_webview_views.py
0 → 100644
View file @
f74c9b6d
This diff is collapsed.
Click to expand it.
lms/djangoapps/certificates/views/webview.py
View file @
f74c9b6d
...
...
@@ -93,8 +93,10 @@ def _update_certificate_context(context, course, user, user_certificate):
if
organizations
:
#TODO Need to add support for multiple organizations, Currently we are interested in the first one.
organization
=
organizations
[
0
]
partner_long_name
=
organization
.
get
(
'name'
,
None
)
partner_short_name
=
organization
.
get
(
'short_name'
,
course
.
org
)
partner_long_name
=
organization
.
get
(
'name'
,
partner_long_name
)
partner_short_name
=
organization
.
get
(
'short_name'
,
partner_short_name
)
context
[
'organization_long_name'
]
=
partner_long_name
context
[
'organization_short_name'
]
=
partner_short_name
context
[
'organization_logo'
]
=
organization
.
get
(
'logo'
,
None
)
context
[
'username'
]
=
user
.
username
...
...
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