Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
E
edx-platform-release
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
1
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hsin-Yu Chien
edx-platform-release
Commits
a12e628f
Commit
a12e628f
authored
12 years ago
by
David Ormsbee
Browse files
Options
Downloads
Patches
Plain Diff
Display real course start date in course about page
parent
9def7ae6
No related branches found
Branches containing commit
Tags
release-2020-11-02-12.26
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
common/lib/xmodule/xmodule/course_module.py
+5
-1
5 additions, 1 deletion
common/lib/xmodule/xmodule/course_module.py
lms/templates/portal/course_about.html
+1
-1
1 addition, 1 deletion
lms/templates/portal/course_about.html
with
6 additions
and
2 deletions
common/lib/xmodule/xmodule/course_module.py
+
5
−
1
View file @
a12e628f
...
...
@@ -29,7 +29,7 @@ class CourseDescriptor(SequenceDescriptor):
def
has_started
(
self
):
return
time
.
gmtime
()
>
self
.
start
@classmethod
def
id_to_location
(
cls
,
course_id
):
org
,
course
,
name
=
course_id
.
split
(
'
/
'
)
...
...
@@ -39,6 +39,10 @@ class CourseDescriptor(SequenceDescriptor):
def
id
(
self
):
return
"
/
"
.
join
([
self
.
location
.
org
,
self
.
location
.
course
,
self
.
location
.
name
])
@property
def
start_date_text
(
self
):
return
time
.
strftime
(
"
%m/%d/%y
"
,
self
.
start
)
@property
def
title
(
self
):
return
self
.
metadata
[
'
display_name
'
]
...
...
This diff is collapsed.
Click to expand it.
lms/templates/portal/course_about.html
+
1
−
1
View file @
a12e628f
...
...
@@ -62,7 +62,7 @@
</header>
<ol
class=
"important-dates"
>
<li><div
class=
"icon start-icon"
></div><p>
Classes Start
</p><span
class=
"start-date"
>
7/12/12
</span></li>
<li><div
class=
"icon start-icon"
></div><p>
Classes Start
</p><span
class=
"start-date"
>
${course.start_date_text}
</span></li>
##
<li><div
class=
"icon final-icon"
></div><p>
Final Exam
</p><span
class=
"final-date"
>
12/09/12
</span></li>
##
<li><div
class=
"icon length-icon"
></div><p>
Course Length
</p><span
class=
"course-length"
>
15 weeks
</span></li>
<li><div
class=
"icon number-icon"
></div><p>
Course Number
</p><span
class=
"course-number"
>
${course.number}
</span></li>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment