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
4fd7f293
Commit
4fd7f293
authored
Jun 30, 2016
by
Simon Chen
Committed by
GitHub
Jun 30, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ECOM-4219 Add coming soon message styles to the course cards (#12890)
parent
ca56dadf
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
11 deletions
+16
-11
lms/static/js/spec/learner_dashboard/course_card_view_spec.js
+2
-2
lms/static/sass/elements/_course-card.scss
+10
-5
lms/templates/learner_dashboard/course_enroll.underscore
+4
-4
No files found.
lms/static/js/spec/learner_dashboard/course_card_view_spec.js
View file @
4fd7f293
...
...
@@ -108,8 +108,8 @@ define([
expect
(
view
.
$
(
'.course-details .course-text .course-key'
).
html
()).
toEqual
(
context
.
key
);
expect
(
view
.
$
(
'.course-details .course-text .run-period'
).
length
).
toBe
(
0
);
expect
(
view
.
$
(
'.no-action-message'
).
text
().
trim
()).
toBe
(
'Coming Soon'
);
expect
(
view
.
$
(
'.enroll-open-date'
).
text
().
trim
())
.
to
Be
(
context
.
run_modes
[
0
].
enrollment_open_date
);
expect
(
view
.
$
(
'.enroll
ment
-open-date'
).
text
().
trim
())
.
to
Equal
(
context
.
run_modes
[
0
].
enrollment_open_date
);
});
it
(
'should render if enrollment_open_date is not provided'
,
function
(){
...
...
lms/static/sass/elements/_course-card.scss
View file @
4fd7f293
...
...
@@ -15,7 +15,10 @@
@include
float
(
left
);
.header-img
{
max-width
:
191px
;
max-width
:
100%
;
@include
susy-media
(
$bp-screen-sm
)
{
max-width
:
191px
;
}
}
}
...
...
@@ -55,16 +58,18 @@
}
.no-action-message
{
margin-bottom
:
$baseline
/
2
;
color
:
palette
(
grayscale
,
blac
k
);
color
:
palette
(
grayscale
,
dar
k
);
font-size
:
font-size
(
large
);
text-align
:
center
;
text-transform
:
uppercase
;
margin-top
:
$baseline
*
2
;
}
.enrollment-opens
{
text-align
:
center
;
margin-bottom
:
$baseline
/
2
;
}
.enroll-open-date
{
text-align
:
center
;
.enrollment-open-date
{
white-space
:
nowrap
;
}
}
.run-select-container
{
margin-bottom
:
$baseline
;
...
...
lms/templates/learner_dashboard/course_enroll.underscore
View file @
4fd7f293
...
...
@@ -49,10 +49,10 @@
<%- gettext('Coming Soon') %>
</div>
<div class="enrollment-opens">
<%- gettext('Enrollment Opens') %>
</div
>
<div class="enroll-open-date"
>
<
%- enrollment_open_date %
>
<%- gettext('Enrollment Opens
on
') %>
<span class="enrollment-open-date"
>
<%- enrollment_open_date %
>
<
/span
>
</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