Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass isEnglish to TeacherHomepage #19967

Merged
merged 1 commit into from Jan 12, 2018
Merged

Conversation

Erin007
Copy link
Contributor

@Erin007 Erin007 commented Jan 12, 2018

We want to conditionally show/hide elements for users who are viewing the teacher homepage in English (similar to /courses). This PR sets up that possibility by passing isEnglish to the TeacherHomepage. Specifically, we want to only show the upcoming special announcement about teacher applications for users in English ; this PR reduces the diff on #19922, which includes that announcement.

@@ -4,7 +4,7 @@
- homepage_data[:userid] = current_user.id
- homepage_data[:valid_grades] = Section.valid_grades
- homepage_data[:topCourse] = @top_course
- homepage_data[:isenglish] = @is_english
- homepage_data[:isEnglish] = @is_english
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it would be good to settle on a casing for these parameters but this one seems consistent with at least one of the above :)

@Erin007 Erin007 merged commit f5dd622 into staging Jan 12, 2018
@Erin007 Erin007 deleted the isEnglish-teacher-homepage branch January 12, 2018 21:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants