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

Add links to facilitator landing pages based on course you facilitate #32936

Merged
merged 8 commits into from
Feb 4, 2020

Conversation

dmcavoy
Copy link
Contributor

@dmcavoy dmcavoy commented Jan 30, 2020

Right now facilitators just need to memorize the link to their landing pages on Curriculum builder such as curriculum.code.org/plcsp/ for CSP facilitators. This figures out which courses you facilitate and adds the links for your facilitator landing pages to the bottom of your homepage along with the links to the Workshop Dashboard.

The below example is a facilitator for CSF and CSD but not CSP.

Screen Shot 2020-01-30 at 2 42 21 PM

@dmcavoy dmcavoy requested review from Erin007, hacodeorg and a team and removed request for hacodeorg January 30, 2020 22:22
@dmcavoy
Copy link
Contributor Author

dmcavoy commented Jan 30, 2020

Updated (@hacodeorg )

Screen Shot 2020-01-30 at 2 42 21 PM

Copy link
Contributor

@hacodeorg hacodeorg left a comment

Choose a reason for hiding this comment

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

Facilitators will like this :)

dashboard/app/views/home/_homepage.html.haml Outdated Show resolved Hide resolved

-if courses_facilitated.include? Pd::Workshop::COURSE_CSF
%a{href: "https://curriculum.code.org/plcsf/", target: '_blank'}
%h3
Copy link
Member

Choose a reason for hiding this comment

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

I guess we use heading styles to make these links look big, and it's certainly an existing pattern, but these are usually not really headings, so I think it would be better if we could make a new CSS class and use that for all of these.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm going to leave the styling as is for now and let the PLC team decide how you would like this area to be styled going forward.

%h3
CSF Facilitator Landing Page
-if courses_facilitated.include? Pd::Workshop::COURSE_CSD
%a{href: "https://curriculum.code.org/plcsd/", target: '_blank'}
Copy link
Member

Choose a reason for hiding this comment

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

I feel like we should be using a helper function (or Rails route) to refer to "https://curriculum.code.org" rather than literally mentioning it multiple times. Amongst other advantages, it would make it much easier to change this domain in the future in one place, and also to link to a variation of it for different environments such as "staging" and "test"...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see your point but I'm going to leave it here since there are already lots of specific references to curriculum.code.org. Instead I will take a work item as part of platformization stuff to do this clean up.

@dmcavoy dmcavoy merged commit 385e603 into staging Feb 4, 2020
@dmcavoy dmcavoy deleted the facilitator-landing-page-link branch February 4, 2020 14:43
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

5 participants