Skip to content

Commit

Permalink
feat: adaptive display of links
Browse files Browse the repository at this point in the history
Do not display the 'Learn more' and 'Share feedback' links for
banner that is enabled by the context_course.discussions_settings
flag if the URLs for these links are not set in the settings.
  • Loading branch information
Dima Alipov authored and DmytroAlipov committed Oct 12, 2024
1 parent 5b80967 commit e4c6956
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cms/templates/course_outline.html
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,18 @@ <h2 class="title title-3">${_("This course was created as a re-run. Some manual
${_("This course run is using an upgraded version of edx discussion forum. In order to display the discussions sidebar, discussions xBlocks will no longer be visible to learners.")}
</div>
<div style="margin-left:auto; width:fit-content;">
%if settings.DISCUSSIONS_INCONTEXT_LEARNMORE_URL:
<span>
<a href="${settings.DISCUSSIONS_INCONTEXT_LEARNMORE_URL}" target="_blank" rel="noreferrer noopener">${_(" Learn more")}</a>
<i class="fa fa-share-square-o" aria-hidden="true"></i>
</span>
%endif
%if settings.DISCUSSIONS_INCONTEXT_FEEDBACK_URL:
<span style="margin-left: 1rem">
<a href="${settings.DISCUSSIONS_INCONTEXT_FEEDBACK_URL}" target="_blank" rel="noreferrer noopener">${_("Share feedback")}</a>
<i class="fa fa-share-square-o" aria-hidden="true"></i>
</span>
%endif
</div>
</div>
</div>
Expand Down

0 comments on commit e4c6956

Please sign in to comment.