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
c45e34bf
Commit
c45e34bf
authored
Dec 05, 2014
by
Chris
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5842 from Stanford-Online/giulio/prerequisites-style-fixes
Remove extra prerequisites style and class
parents
f73d92bf
54b7a578
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
26 deletions
+17
-26
lms/static/sass/multicourse/_course_about.scss
+4
-14
lms/templates/courseware/course_about.html
+13
-12
No files found.
lms/static/sass/multicourse/_course_about.scss
View file @
c45e34bf
...
...
@@ -532,31 +532,21 @@
.important-dates
{
list-style
:
none
;
margin
:
0px
;
padding
:
0
(
$baseline
/
2
)
;
padding
:
0
px
;
li
{
.important-dates-item
{
@include
clearfix
;
border-bottom
:
1px
dotted
$border-color-2
;
margin-bottom
:
$baseline
;
padding-bottom
:
(
$baseline
/
2
);
&
.prerequisites
{
border
:
1px
solid
$border-color-2
;
margin
:
0
-
(
$baseline
/
2
)
0
;
padding
:
(
$baseline
/
2
);
p
{
margin-right
:
(
$baseline
/
2
);
}
}
&
:hover
,
&
:focus
{
.icon
{
opacity
:
1
.0
;
}
}
p
{
.important-dates-item-title
{
color
:
$lighter-base-font-color
;
float
:
left
;
font-family
:
$sans-serif
;
...
...
@@ -569,7 +559,7 @@
opacity
:
.6
;
}
span
{
.important-dates-item-text
{
float
:
right
;
font-weight
:
700
;
}
...
...
lms/templates/courseware/course_about.html
View file @
c45e34bf
...
...
@@ -285,33 +285,34 @@
</header>
<ol
class=
"important-dates"
>
<li
><i
class=
"icon icon-info-sign"
></i><p>
${_("Course Number")}
</p><span
class=
"
course-number"
>
${course.display_number_with_default | h}
</span></li>
<li
class=
"important-dates-item"
><i
class=
"icon icon-info-sign"
></i><p
class=
"important-dates-item-title"
>
${_("Course Number")}
</p><span
class=
"important-dates-item-text
course-number"
>
${course.display_number_with_default | h}
</span></li>
% if not course.start_date_is_still_default:
<li
><i
class=
"icon icon-calendar"
></i><p>
${_("Classes Start")}
</p><span
class=
"
start-date"
>
${course.start_datetime_text()}
</span></li>
<li
class=
"important-dates-item"
><i
class=
"icon icon-calendar"
></i><p
class=
"important-dates-item-title"
>
${_("Classes Start")}
</p><span
class=
"important-dates-item-text
start-date"
>
${course.start_datetime_text()}
</span></li>
% endif
## We plan to ditch end_date (which is not stored in course metadata),
## but for backwards compatibility, show about/end_date blob if it exists.
% if get_course_about_section(course, "end_date") or course.end:
<li>
<li
class=
"important-dates-item"
>
<i
class=
"icon icon-calendar"
></i>
<p>
${_("Classes End")}
</p><span
class=
"final-date"
>
% if get_course_about_section(course, "end_date"):
${get_course_about_section(course, "end_date")}
% else:
${course.end_datetime_text()}
% endif
<p
class=
"important-dates-item-title"
>
${_("Classes End")}
</p>
<span
class=
"important-dates-item-text final-date"
>
% if get_course_about_section(course, "end_date"):
${get_course_about_section(course, "end_date")}
% else:
${course.end_datetime_text()}
% endif
</span>
</li>
% endif
% if get_course_about_section(course, "effort"):
<li
><i
class=
"icon icon-pencil"
></i><p>
${_("Estimated Effort")}
</p><span
class=
"start-date
"
>
${get_course_about_section(course, "effort")}
</span></li>
<li
class=
"important-dates-item"
><i
class=
"icon icon-pencil"
></i><p
class=
"important-dates-item-title"
>
${_("Estimated Effort")}
</p><span
class=
"important-dates-item-text effort
"
>
${get_course_about_section(course, "effort")}
</span></li>
% endif
##
<li
><i
class=
"icon icon-time"
></i><p>
${_('Course Length')}
</p><span
class=
"
course-length"
>
${_('{number} weeks').format(number=15)}
</span></li>
##
<li
class=
"important-dates-item"
><i
class=
"icon icon-time"
></i><p
class=
"important-dates-item-title"
>
${_('Course Length')}
</p><span
class=
"important-dates-item-text
course-length"
>
${_('{number} weeks').format(number=15)}
</span></li>
% if get_course_about_section(course, "prerequisites"):
<li
class=
"
prerequisites"
><i
class=
"icon icon-book"
></i><p>
${_("Prerequisites")}
</p><span
class=
"start-date
"
>
${get_course_about_section(course, "prerequisites")}
</span></li>
<li
class=
"
important-dates-item"
><i
class=
"icon icon-book"
></i><p
class=
"important-dates-item-title"
>
${_("Prerequisites")}
</p><span
class=
"important-dates-item-text prerequisites
"
>
${get_course_about_section(course, "prerequisites")}
</span></li>
% endif
</ol>
</section>
...
...
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