Commit c26190a7 by Ibrahim Ahmed Committed by GitHub

Merge pull request #15429 from edx/ibrahimahmed443/WL-1078-program-details-changes

Ibrahimahmed443/wl 1078 program details changes
parents beba48a5 44f1f7f9
...@@ -66,14 +66,11 @@ description_max_length = 250 ...@@ -66,14 +66,11 @@ description_max_length = 250
<h1 class="banner-title">${title}</h1> <h1 class="banner-title">${title}</h1>
<p class="banner-description">${subtitle}</p> <p class="banner-description">${subtitle}</p>
% if program.get('is_learner_eligible_for_one_click_purchase'): % if program.get('is_learner_eligible_for_one_click_purchase'):
<a href="${buy_button_href}" class="btn-brand btn-large hidden-sm btn-start"> <a href="${buy_button_href}" class="btn-brand btn-large btn-start">
${Text(_('Buy the {program_name} (${price} USD)')).format( ${_('Purchase the Program')}
program_name=title,
price=full_program_price
)}
</a> </a>
% else: % else:
<a href="#courses" class="btn-brand btn-large hidden-sm btn-start"> <a href="#courses" class="btn-brand btn-large btn-start">
${_('Start Learning')} ${_('Start Learning')}
</a> </a>
% endif % endif
...@@ -81,7 +78,7 @@ description_max_length = 250 ...@@ -81,7 +78,7 @@ description_max_length = 250
<div class="col col-12 md-col-4 lg-col-3" id="course-trailer"> <div class="col col-12 md-col-4 lg-col-3" id="course-trailer">
<a href="#video-modal" class="media trailer-link visible-sm" rel="leanModal"> <a href="#video-modal" class="media trailer-link visible-sm" rel="leanModal">
<i class="fa fa-play-circle-o" aria-hidden="true"></i> <i class="fa fa-play-circle-o" aria-hidden="true"></i>
<span>${_('View Course Trailer')}</span> <span>${_('View Program Trailer')}</span>
</a> </a>
<div class="hidden-sm"> <div class="hidden-sm">
<button href="#video-modal" class="media btn-play" rel="leanModal"> <button href="#video-modal" class="media btn-play" rel="leanModal">
...@@ -169,19 +166,21 @@ description_max_length = 250 ...@@ -169,19 +166,21 @@ description_max_length = 250
<div class="accordion-item"> <div class="accordion-item">
<div class="accordion-head">${_('Overview')}</div> <div class="accordion-head">${_('Overview')}</div>
<div class="accordion-content"> <div class="accordion-content">
<p>${overview}</p> <p>${HTML(overview)}</p>
</div>
</div>
<div class="accordion-item">
<div class="accordion-head">${_('Job Outlook')}</div>
<div class="accordion-content">
<ul class="list-bulleted list-disc no-indent">
% for item in job_outlook_items:
<li>${item}</li>
% endfor
</ul>
</div> </div>
</div> </div>
% if job_outlook_items:
<div class="accordion-item">
<div class="accordion-head">${_('Job Outlook')}</div>
<div class="accordion-content">
<ul class="list-bulleted list-disc no-indent">
% for item in job_outlook_items:
<li>${item}</li>
% endfor
</ul>
</div>
</div>
% endif
<div class="accordion-item"> <div class="accordion-item">
<div class="accordion-head">${_("What You'll Learn")}</div> <div class="accordion-head">${_("What You'll Learn")}</div>
<div class="accordion-content"> <div class="accordion-content">
...@@ -237,7 +236,7 @@ description_max_length = 250 ...@@ -237,7 +236,7 @@ description_max_length = 250
</h3> </h3>
</div> </div>
</div> </div>
<div class="instructor-bio">${instructor['bio']}</div> <div class="instructor-bio">${HTML(instructor['bio'])}</div>
</div> </div>
<a href="#" class="focusKeeper"></a> <a href="#" class="focusKeeper"></a>
</div> </div>
...@@ -271,8 +270,10 @@ description_max_length = 250 ...@@ -271,8 +270,10 @@ description_max_length = 250
<div class="quote"> <div class="quote">
% if endorsement: % if endorsement:
<span>"${endorsement_quote}"</span> <span>"${endorsement_quote}"</span>
% if endorser and endorsement_image: % if endorser:
<img class="visible-sm pull-left" src="${endorsement_image}" width="40" height="40" alt="${_('Endorser Image')}"/> % if endorsement_image:
<img class="visible-sm pull-left" src="${endorsement_image}" width="40" height="40" alt="${_('Endorser Image')}"/>
% endif
<span class="writer"> <span class="writer">
${endorsement_name}, ${endorsement_name},
${endorsement_position}, ${endorsement_position},
...@@ -329,7 +330,7 @@ description_max_length = 250 ...@@ -329,7 +330,7 @@ description_max_length = 250
</h3> </h3>
</div> </div>
</div> </div>
<div class="instructor-bio">${instructor['bio']}</div> <div class="instructor-bio">${HTML(instructor['bio'])}</div>
</div> </div>
<a href="#" class="focusKeeper"></a> <a href="#" class="focusKeeper"></a>
</div> </div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment