Skip to content
Snippets Groups Projects
Unverified Commit 8cd9f141 authored by Waheed Ahmed's avatar Waheed Ahmed Committed by GitHub
Browse files

Merge pull request #22721 from edx/waheed/PROD-800-add-page-title-for-program-webviews

Add page title for program dashboard webviews.
parents 74f430f3 8a1c3b4a
No related branches found
Tags release-2021-02-04-20.02
No related merge requests found
......@@ -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.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment