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
OpenEdx
edx-platform
Commits
e96abc96
Commit
e96abc96
authored
Nov 22, 2017
by
Matt Tuchfarber
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Basic bio showing
parent
254aa84f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
38 additions
and
5 deletions
+38
-5
lms/static/js/program_marketing.js
+14
-0
lms/static/sass/views/_program-marketing-page.scss
+12
-3
lms/templates/courseware/program_marketing.html
+12
-2
No files found.
lms/static/js/program_marketing.js
View file @
e96abc96
...
...
@@ -4,3 +4,17 @@ function playVideo(src) {
document
.
querySelector
(
'#program_video iframe'
).
style
=
'display:block;'
;
document
.
querySelector
(
'#program_video iframe'
).
src
=
src
;
}
function
toggleBio
(
currentEl
,
bioHash
)
{
'use strict'
;
var
button
=
currentEl
;
var
bioId
=
'instructor-bio-'
+
bioHash
;
var
bio
=
document
.
getElementById
(
bioId
);
var
hidden
=
bio
.
classList
.
contains
(
'hidden'
);
if
(
hidden
)
{
bio
.
classList
.
remove
(
'hidden'
);
button
.
innerHTML
=
'Hide Bio'
;
}
else
{
bio
.
classList
.
add
(
'hidden'
);
button
.
innerHTML
=
'View Bio'
;
}
}
lms/static/sass/views/_program-marketing-page.scss
View file @
e96abc96
...
...
@@ -7,14 +7,15 @@
.main-banner
{
color
:
$white
;
margin-bottom
:
1px
;
background-size
:cover
!
important
;
background-repeat
:no-repeat
!
important
;
background-size
:
cover
!
important
;
background-repeat
:
no-repeat
!
important
;
.authoring-org-logo
{
background-color
:
$white
;
height
:
100px
;
}
.logo-space
{
.logo-space
{
height
:
50px
;
}
...
...
@@ -190,6 +191,14 @@
.instructor-position
{
font-weight
:
bold
;
}
.instructor-bio-toggle
{
margin-top
:
5px
;
}
.hidden
{
display
:
none
;
}
}
}
...
...
lms/templates/courseware/program_marketing.html
View file @
e96abc96
...
...
@@ -154,7 +154,7 @@ endorser_org = endorser_position.get('organization_name') or corporate_endorseme
</div>
</
%
block>
<div
id=
"program-details-page"
class=
"container"
>
<div
id=
"program-details-page"
class=
"container"
>
<div
class=
"row program-info"
>
<div
class=
"col col-12 col-lg-7"
>
<div
class=
"section"
>
...
...
@@ -341,7 +341,7 @@ endorser_org = endorser_position.get('organization_name') or corporate_endorseme
<h2>
${_('Instructors')}
</h2>
</div>
% for instructor in instructors:
<div
class=
"col-
6 col-sm-3
instructor"
>
<div
class=
"col-
12 col-sm-6 col-md-4
instructor"
>
<div>
<img
alt=
""
src=
"${instructor['image']}"
/>
</div>
...
...
@@ -350,6 +350,16 @@ endorser_org = endorser_position.get('organization_name') or corporate_endorseme
<div
class=
"instructor-position"
>
${instructor['position'].get('position')}
</div>
<div
class=
"instructor-org"
>
${instructor['position'].get('organization_name')}
</div>
% endif
% if instructor.get('bio'):
<div>
<div
class=
"instructor-bio"
>
${HTML(instructor.get('bio'))}
</div>
<button
class=
"btn btn-primary"
>
${_('View Bio')}
</button>
</div>
% endif
</div>
% endfor
</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