Commit c88e9140 by Stephen Sanchez

Merge pull request #5398 from edx/sanchez/fix_about_page_header

Allowing new styles on White Label about pages.
parents 4d56f62d 3fd3bd4e
...@@ -748,6 +748,9 @@ def course_about(request, course_id): ...@@ -748,6 +748,9 @@ def course_about(request, course_id):
'invitation_only': invitation_only, 'invitation_only': invitation_only,
'active_reg_button': active_reg_button, 'active_reg_button': active_reg_button,
'is_shib_course': is_shib_course, '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) ...@@ -36,7 +36,7 @@ site_status_msg = get_site_status_msg(course_id)
% endif % endif
</%block> </%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"> <nav aria-label="Main">
<h1 class="logo" itemscope="" itemtype="http://schema.org/Organization"> <h1 class="logo" itemscope="" itemtype="http://schema.org/Organization">
<a href="${marketing_link('ROOT')}" title="Home page" itemprop="url"> <a href="${marketing_link('ROOT')}" title="Home page" itemprop="url">
...@@ -46,7 +46,7 @@ site_status_msg = get_site_status_msg(course_id) ...@@ -46,7 +46,7 @@ site_status_msg = get_site_status_msg(course_id)
</a> </a>
</h1> </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> <h2><span class="provider">${course.display_org_with_default | h}:</span> ${course.display_number_with_default | h} ${course.display_name_with_default}</h2>
% endif % endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment