Tweak behavior of registration button for marketing site

If a user is already registered for a course but the course has not started
yet, display a grey button that says "you are registered" and goes nowhere
instead of the blue "access courseware" button, which goes to the LMS course
about page (which 404s).
This commit is contained in:
Greg Price
2013-05-16 13:37:48 -04:00
parent 3ee0ed9e78
commit ff2ba68d79
3 changed files with 10 additions and 5 deletions

View File

@@ -79,14 +79,15 @@
.action {
// not registered (default)
&.action-register {
// register or access courseware
&.action-register, &.access-courseware {
@extend .btn-primary;
}
// already registered
// already registered but course not started
&.is-registered {
@extend .btn-secondary;
pointer-events: none !important;
}
// coming soon