Merge pull request #5398 from edx/sanchez/fix_about_page_header
Allowing new styles on White Label about pages.
This commit is contained in:
@@ -748,6 +748,9 @@ def course_about(request, course_id):
|
||||
'invitation_only': invitation_only,
|
||||
'active_reg_button': active_reg_button,
|
||||
'is_shib_course': is_shib_course,
|
||||
# We do not want to display the internal courseware header, which is used when the course is found in the
|
||||
# context. This value is therefor explicitly set to render the appropriate header.
|
||||
'disable_courseware_header': True,
|
||||
})
|
||||
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ site_status_msg = get_site_status_msg(course_id)
|
||||
% endif
|
||||
</%block>
|
||||
|
||||
<header class="${"global slim" if course else "global-new"}" aria-label="Main" role="banner">
|
||||
<header class="${"global slim" if course and not disable_courseware_header else "global-new"}" aria-label="Main" role="banner">
|
||||
<nav aria-label="Main">
|
||||
<h1 class="logo" itemscope="" itemtype="http://schema.org/Organization">
|
||||
<a href="${marketing_link('ROOT')}" title="Home page" itemprop="url">
|
||||
@@ -46,7 +46,7 @@ site_status_msg = get_site_status_msg(course_id)
|
||||
</a>
|
||||
</h1>
|
||||
|
||||
% if course:
|
||||
% if course and not disable_courseware_header:
|
||||
<h2><span class="provider">${course.display_org_with_default | h}:</span> ${course.display_number_with_default | h} ${course.display_name_with_default}</h2>
|
||||
% endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user