Skip to content

Commit 348265b

Browse files
Dima AlipovDmytroAlipov
authored andcommitted
feat: adaptive display of links
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.
1 parent 0cc9dee commit 348265b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

cms/templates/course_outline.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,14 +76,18 @@ <h2 class="title title-3">${_("This course was created as a re-run. Some manual
7676
${_("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.")}
7777
</div>
7878
<div style="margin-left:auto; width:fit-content;">
79+
%if settings.DISCUSSIONS_INCONTEXT_LEARNMORE_URL:
7980
<span>
8081
<a href="${settings.DISCUSSIONS_INCONTEXT_LEARNMORE_URL}" target="_blank" rel="noreferrer noopener">${_(" Learn more")}</a>
8182
<i class="fa fa-share-square-o" aria-hidden="true"></i>
8283
</span>
84+
%endif
85+
%if settings.DISCUSSIONS_INCONTEXT_FEEDBACK_URL:
8386
<span style="margin-left: 1rem">
8487
<a href="${settings.DISCUSSIONS_INCONTEXT_FEEDBACK_URL}" target="_blank" rel="noreferrer noopener">${_("Share feedback")}</a>
8588
<i class="fa fa-share-square-o" aria-hidden="true"></i>
8689
</span>
90+
%endif
8791
</div>
8892
</div>
8993
</div>

0 commit comments

Comments
 (0)