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
5936d733
Commit
5936d733
authored
Oct 05, 2012
by
Tom Giannattasio
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added certificate button; reworked dashboard page to accommodate
parent
41b0eb9d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
14 deletions
+41
-14
lms/static/sass/multicourse/_dashboard.scss
+24
-4
lms/templates/dashboard.html
+17
-10
No files found.
lms/static/sass/multicourse/_dashboard.scss
View file @
5936d733
...
@@ -288,12 +288,13 @@
...
@@ -288,12 +288,13 @@
white-space
:
nowrap
;
white-space
:
nowrap
;
a
{
a
{
font-family
:
$serif
;
color
:
$base-font-color
;
color
:
$base-font-color
;
font-weight
:
700
;
text-shadow
:
0
1px
rgba
(
255
,
255
,
255
,
0
.6
);
text-shadow
:
0
1px
rgba
(
255
,
255
,
255
,
0
.6
);
&
:hover
{
&
:hover
{
text-decoration
:
underline
;
color
:
$pink
;
text-decoration
:
none
;
}
}
}
}
}
}
...
@@ -316,6 +317,26 @@
...
@@ -316,6 +317,26 @@
letter-spacing
:
1px
;
letter-spacing
:
1px
;
text-align
:
center
;
text-align
:
center
;
}
}
&
.ended
{
width
:
flex-grid
(
4
);
background
:
#ddd
;
}
}
.download-certificate
{
@include
button
(
shiny
,
lighten
(
$pink
,
15%
));
@include
box-sizing
(
border-box
);
@include
border-radius
(
3px
);
display
:
block
;
float
:
left
;
font
:
normal
.9rem
/
1
.6rem
$sans-serif
;
padding
:
6px
0px
;
text-transform
:
uppercase
;
text-align
:
center
;
margin-top
:
16px
;
margin-right
:
flex-gutter
();
width
:
flex-grid
(
4
);
}
}
.enter-course
{
.enter-course
{
...
@@ -324,8 +345,7 @@
...
@@ -324,8 +345,7 @@
@include
border-radius
(
3px
);
@include
border-radius
(
3px
);
display
:
block
;
display
:
block
;
float
:
left
;
float
:
left
;
font
:
normal
1rem
/
1
.6rem
$sans-serif
;
font
:
normal
.9rem
/
1
.6rem
$sans-serif
;
letter-spacing
:
1px
;
padding
:
6px
0px
;
padding
:
6px
0px
;
text-transform
:
uppercase
;
text-transform
:
uppercase
;
text-align
:
center
;
text-align
:
center
;
...
...
lms/templates/dashboard.html
View file @
5936d733
...
@@ -73,25 +73,32 @@
...
@@ -73,25 +73,32 @@
course_target =
reverse('about_course',
args=
[course.id])
course_target =
reverse('about_course',
args=
[course.id])
%
>
%
>
<a
href=
"${course_target}"
>
<a
href=
"${course_target}"
>
<section
class=
"cover"
style=
"background-image: url('${course_image_url(course)}')"
>
<section
class=
"cover"
style=
"background-image: url('${course_image_url(course)}')"
>
<div
class=
"shade"
></div>
<div
class=
"shade"
></div>
<div
class=
"arrow"
>
❯
</div>
<div
class=
"arrow"
>
❯
</div>
</section>
</section>
</a>
<section
class=
"info"
>
<section
class=
"info"
>
<hgroup>
<hgroup>
<h2
class=
"university"
>
${get_course_about_section(course, 'university')}
</h2>
<h2
class=
"university"
>
${get_course_about_section(course, 'university')}
</h2>
<h3>
${course.number} ${course.title}
</h3>
<h3>
<a
href=
"${course_target}"
>
${course.number} ${course.title}
</a>
</h3>
</hgroup>
</hgroup>
<section
class=
"course-status"
>
<p>
Class Starts -
<span>
${course.start_date_text}
</span></p>
<!-- add the "ended" class if the course has ended -->
<section
class=
"course-status ended"
>
<p>
Class Ended
</p>
</section>
</section>
<!-- insert the certificate button if the course has ended -->
<a
href=
"#"
class=
"download-certificate"
>
Download Certificate
</a>
% if course.id in show_courseware_links_for:
% if course.id in show_courseware_links_for:
<
p
class=
"enter-course"
>
View Courseware
</p
>
<
a
href=
"${course_target}"
class=
"enter-course"
>
View Courseware
</a
>
% endif
% endif
</section>
</section>
</a>
</article>
</article>
<a
href=
"#unenroll-modal"
class=
"unenroll"
rel=
"leanModal"
data-course-id=
"${course.id}"
data-course-number=
"${course.number}"
>
Unregister
</a>
<a
href=
"#unenroll-modal"
class=
"unenroll"
rel=
"leanModal"
data-course-id=
"${course.id}"
data-course-number=
"${course.number}"
>
Unregister
</a>
...
...
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