Added anonymous user id and extra params in program lti (#29429)

* fix: added anonymous user id and extra params in program lti

* refactor: updated flag name

* fix: fixed linter issues
This commit is contained in:
Ahtisham Shahid
2021-12-02 17:05:35 +05:00
committed by GitHub
parent ca867c105f
commit 00b53287d5
9 changed files with 41 additions and 25 deletions

View File

@@ -20,7 +20,7 @@ ProgramDetailsFactory({
userPreferences: ${user_preferences | n, dump_js_escaped_json},
industryPathways: ${industry_pathways | n, dump_js_escaped_json},
creditPathways: ${credit_pathways | n, dump_js_escaped_json},
programDiscussionEnabled: ${program_discussions_enabled | n, dump_js_escaped_json},
programTabViewEnabled: ${program_tab_view_enabled | n, dump_js_escaped_json},
discussionFragment: ${discussion_fragment, | n, dump_js_escaped_json}
});
</%static:webpack>

View File

@@ -21,7 +21,7 @@
</div>
<% } %>
</aside>
<% if (!programDiscussionEnabled) { %>
<% if (!programTabViewEnabled) { %>
<% if (creditPathways.length > 0) { %>
<aside class="aside js-program-pathways program-credit-pathways">
<h2 class = "divider-heading"><%- gettext('Additional Credit Opportunities') %></h2>

View File

@@ -1,13 +1,13 @@
<header class="js-program-header program-header full-width-banner"></header>
<!-- TODO: consider if article is the most appropriate element here -->
<% if (programDiscussionEnabled) { %>
<% if (programTabViewEnabled) { %>
<div class="program-detail-nav">
<ul class="nav nav-tabs program-detail-nav-list" id="programTabs" role="tablist">
<li class="nav-item" role="presentation">
<button class="nav-link btn-link active" id="home-tab" data-toggle="tab" data-target="#journey" type="button" role="tab" aria-controls="journey" aria-selected="true">Journey</button>
</li>
<% if (discussionFragment.enabled) { %>
<% if (discussionFragment.configured) { %>
<li class="nav-item" role="presentation">
<button class="nav-link btn-link" id="profile-tab" data-toggle="tab" data-target="#community" type="button" role="tab" aria-controls="community" aria-selected="false">Community</button>
</li>
@@ -102,7 +102,7 @@
<aside class="js-program-sidebar program-sidebar"></aside>
</div>
<% if (discussionFragment.enabled) { %>
<% if (discussionFragment.configured) { %>
<div class="tab-pane fade" id="community" role="tabpanel" aria-labelledby="community-tab"><%= HtmlUtils.HTML(discussionFragment.iframe) %></div>
<% } %>
<div class="tab-pane fade" id="live" role="tabpanel" aria-labelledby="live-tab">Live tab content</div>