Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
5824b2eb
Commit
5824b2eb
authored
Jul 18, 2012
by
Matthew Mongeau
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Display registered when already registered for a course.
parent
cae5c99e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
1 deletions
+20
-1
lms/static/sass/_course_about.scss
+14
-0
lms/templates/portal/course_about.html
+6
-1
No files found.
lms/static/sass/_course_about.scss
View file @
5824b2eb
...
...
@@ -97,6 +97,20 @@
color
:
rgb
(
255
,
255
,
255
);
}
}
span
.register
{
@include
button
(
shiny
,
lighten
(
grayscale
(
$blue
)
,
50%
));
@include
box-sizing
(
border-box
);
@include
border-radius
(
3px
);
color
:
#888
;
display
:
block
;
font
:
normal
1
.2rem
/
1
.6rem
$sans-serif
;
letter-spacing
:
1px
;
padding
:
10px
0px
;
text-transform
:
uppercase
;
text-align
:
center
;
width
:
flex-grid
(
12
);
}
}
}
...
...
lms/templates/portal/course_about.html
View file @
5824b2eb
<
%!
from
django
.
core
.
urlresolvers
import
reverse
%
>
<
%!
from
student
.
models
import
CourseEnrollment
%
>
<
%
namespace
name=
'static'
file=
'../static_content.html'
/>
<
%
block
name=
"js_extra"
>
<script
src=
"${static.url('js/course_info.js')}"
></script>
...
...
@@ -16,7 +17,11 @@
<div
class=
"main-cta"
>
%if user.is_authenticated():
<a
href=
"${reverse('enroll', args=[course.id])}"
class=
"register"
>
Register
</a>
%if not CourseEnrollment.objects.filter(user=user, course_id=course.id).exists():
<a
href=
"${reverse('enroll', args=[course.id])}"
class=
"register"
>
Register
</a>
%else:
<span
class=
"register disabled"
>
Registered
</span>
%endif
%else:
<a
href=
"#signup-modal"
class=
"register"
rel=
"leanModal"
data-notice=
"You must register in order to enroll"
>
Register
</a>
%endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment