Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
8a1c3b4a
Commit
8a1c3b4a
authored
5 years ago
by
Waheed Ahmed
Browse files
Options
Downloads
Patches
Plain Diff
Add page title for program dashboard webviews.
PROD-800
parent
02daf897
No related branches found
Branches containing commit
Tags
release-2021-02-04-20.02
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lms/djangoapps/learner_dashboard/programs.py
+13
-1
13 additions, 1 deletion
lms/djangoapps/learner_dashboard/programs.py
with
13 additions
and
1 deletion
lms/djangoapps/learner_dashboard/programs.py
+
13
−
1
View file @
8a1c3b4a
...
...
@@ -8,7 +8,7 @@ import json
from
django.http
import
Http404
from
django.template.loader
import
render_to_string
from
django.urls
import
reverse
from
django.utils.translation
import
get_language_bidi
from
django.utils.translation
import
get_language_bidi
,
ugettext_lazy
as
_
from
web_fragments.fragment
import
Fragment
from
lms.djangoapps.commerce.utils
import
EcommerceService
...
...
@@ -58,6 +58,12 @@ class ProgramsFragmentView(EdxFragmentView):
return
programs_fragment
def
standalone_page_title
(
self
,
request
,
fragment
,
**
kwargs
):
"""
Return page title for the standalone page.
"""
return
_
(
'
Programs
'
)
def
css_dependencies
(
self
):
"""
Returns list of CSS files that this view depends on.
...
...
@@ -148,6 +154,12 @@ class ProgramDetailsFragmentView(EdxFragmentView):
self
.
add_fragment_resource_urls
(
program_details_fragment
)
return
program_details_fragment
def
standalone_page_title
(
self
,
request
,
fragment
,
**
kwargs
):
"""
Return page title for the standalone page.
"""
return
_
(
'
Program Details
'
)
def
css_dependencies
(
self
):
"""
Returns list of CSS files that this view depends on.
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment