Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
schedules
schedules
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 11
    • Issues 11
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • SRCT
  • schedulesschedules
  • Issues
  • #36

Closed
Open
Opened Jan 23, 2019 by Zac Wood@zwood2Owner

On instructor pages, course cards "expand" arrow should be set to "minimize"

The instructor page on load looks like this:

Expected Behavior

The expand arrow should be set to minimize since the card starts expanded.

Actual Behavior

The card is expanded, but the arrow is still set to expand.

Tips

The expand arrow in the course card partial can be found here https://git.gmu.edu/srct/schedules/blob/master/schedules/app/views/shared/_course.html.erb#L38.

The card is passed a local variable named expanded to know if it should render the sections or not. Using an if statement in ERB, set the arrow and text to be "minimize" and up respectively if expanded is true, else "expand" and down as they are now.

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: srct/schedules#36