Revert "Ora2 dates reprise"

This commit is contained in:
Dillon Dumesnil
2020-07-20 09:55:02 -07:00
committed by GitHub
parent 19f82258aa
commit 75db9b2534
9 changed files with 13 additions and 132 deletions

View File

@@ -41,20 +41,10 @@ class TestIcsGeneration(TestCase):
def make_assigment(
self, block_key=None, title=None, url=None, date=None, contains_gated_content=False, complete=False,
past_due=False, assignment_type=None, extra_info=None
past_due=False, assignment_type=None
):
""" Bundles given info into a namedtupled like get_course_assignments returns """
return _Assignment(
block_key,
title,
url,
date,
contains_gated_content,
complete,
past_due,
assignment_type,
extra_info
)
return _Assignment(block_key, title, url, date, contains_gated_content, complete, past_due, assignment_type)
def expected_ics(self, *assignments):
""" Returns hardcoded expected ics strings for given assignments """

View File

@@ -41,11 +41,10 @@ class ContentTypeGateTransformer(BlockStructureTransformer):
inside of it is content gated. `contains_gated_content` can then be used to indicate something
in the blocks subtree is gated.
"""
if block_structure.get_xblock_field(block_key, 'contains_gated_content'):
return
block_structure.override_xblock_field(block_key, 'contains_gated_content', True)
for parent_block_key in block_structure.get_parents(block_key):
if block_structure.get_xblock_field(parent_block_key, 'contains_gated_content'):
continue
block_structure.override_xblock_field(parent_block_key, 'contains_gated_content', True)
self._set_contains_gated_content_on_parents(block_structure, parent_block_key)
def transform(self, usage_info, block_structure):

View File

@@ -21,9 +21,6 @@ from django.utils.translation import ugettext as _
% if course_date.description:
<p class="description">${course_date.description}</p>
% endif
% if course_date.extra_info:
<div class="extra-info">${course_date.extra_info}</div>
% endif
% if course_date.link and course_date.link_text:
<div class="date-summary-link">
<a href="${course_date.link}">${course_date.link_text}</a>