Skip to content

Commit

Permalink
fix slider and final tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
arslanashraf7 committed Oct 26, 2023
1 parent 650cd0b commit ff502d6
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions cms/blocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@ class InstructorBlock(blocks.StructBlock):


class InstructorSponsorItems(StructValue):
"""Custom value for StructBlock"""
"""Custom value for StructBlock so that it can return Instructors or Sponsors"""

def instructor_sponsor_items(self):
"""Return possible items for Instructors or Sponsors to be displayed"""
"""Return possible items for Instructors or Sponsors to be displayed to the user"""
return self.get("members") or self.get("sponsors")


class InstructorSponsorBlock(blocks.StructBlock):
"""Parent class for sponsors and instructors"""
"""Parent Block class for sponsors and instructors"""

heading = blocks.CharBlock(
max_length=255, help_text="The heading to display for this section on the page."
Expand All @@ -57,7 +57,7 @@ class Meta:

class InstructorSectionBlock(InstructorSponsorBlock):
"""
Block class that defines a instrcutors section
Block class that defines an instrcutor section
"""

members = blocks.StreamBlock(
Expand All @@ -68,7 +68,7 @@ class InstructorSectionBlock(InstructorSponsorBlock):

class SponsorSectionBlock(InstructorSponsorBlock):
"""
Block class that defines a sponsors section
Block class that defines a sponsor section
"""

sponsors = blocks.StreamBlock(
Expand Down
2 changes: 1 addition & 1 deletion cms/models_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ def test_instructors_section():

def test_sponsors_section():
"""
Verify user can create sponsot section under bootcamp run page.
Verify that user can create sponsor sections under bootcamp run page.
"""
bootcamp_run_page = BootcampRunPageFactory.create()
assert bootcamp_run_page.three_column_image_text_section is None
Expand Down
2 changes: 1 addition & 1 deletion cms/templates/partials/instructor.html
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ <h5>{{ section.value.heading }}</h5>
</div>
<script>
var totalSections = {{ page.sections|length }};
var type = "{{ type|slugify }}";
var type = "{{ type }}";
for(var i=1; i <= totalSections; i++){
$(".slider-" + type + "-" + i).slick({
rows: 0,
Expand Down

0 comments on commit ff502d6

Please sign in to comment.