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

Reposition disabled courses #1318

Merged
merged 8 commits into from
Apr 6, 2021
Merged

Reposition disabled courses #1318

merged 8 commits into from
Apr 6, 2021

Conversation

Huahan98
Copy link
Contributor

@Huahan98 Huahan98 commented Apr 6, 2021

Description

Reposition disabled courses to the bottom of the course page

Motivation and Context

This PR made change in app/controllers/courses_controller.rb. There was no specific logic written for how courses should be ordered, the order that the courses appear is simply the order of keys in the listing dictionary. Putting disabled as the last key solves the problem.

How Has This Been Tested?

Tested locally, please refer to the image below

Screenshots (if appropriate):

Screen Shot 2021-04-05 at 10 45 49 PM

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

@Huahan98 Huahan98 requested a review from fanpu April 6, 2021 03:25
fanpu
fanpu previously approved these changes Apr 6, 2021
Copy link
Contributor

@fanpu fanpu left a comment

Choose a reason for hiding this comment

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

LGTM, can merge once the spacing issue is fixed!

app/controllers/courses_controller.rb Outdated Show resolved Hide resolved
@Huahan98 Huahan98 requested a review from fanpu April 6, 2021 04:36
Copy link
Contributor

@fanpu fanpu left a comment

Choose a reason for hiding this comment

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

LGTM

@Huahan98 Huahan98 merged commit 2bd32d6 into master Apr 6, 2021
@Huahan98 Huahan98 deleted the reposition-disabled-courses branch April 6, 2021 15:03
@victorhuangwq victorhuangwq linked an issue Apr 6, 2021 that may be closed by this pull request
amartinez116 pushed a commit that referenced this pull request May 2, 2021
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.

Put "Disabled" Courses below "Current" Courses
2 participants