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
c20ebd13
Commit
c20ebd13
authored
Aug 04, 2012
by
ichuang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
in course_about.html make "You are registered..." a link to course
parent
9de6e281
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
0 deletions
+13
-0
lms/templates/portal/course_about.html
+13
-0
No files found.
lms/templates/portal/course_about.html
View file @
c20ebd13
...
...
@@ -62,7 +62,20 @@
<div
class=
"main-cta"
>
%if user.is_authenticated():
%if registered:
<
%
if
course
.
has_started
()
or
settings
.
MITX_FEATURES
['
DISABLE_START_DATES
']
:
course_target =
reverse('info',
args=
[course.id])
else:
course_target =
reverse('about_course',
args=
[course.id])
show_link =
settings.MITX_FEATURES.get('ENABLE_LMS_MIGRATION')
%
>
%if show_link:
<a
href=
"${course_target}"
>
%endif
<span
class=
"register disabled"
>
You are registered for this course (${course.number}).
</span>
%if show_link:
</a>
%endif
%else:
<a
href=
"#"
class=
"register"
>
Register for ${course.number}
</a>
<div
id=
"register_message"
></div>
...
...
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