From e9fc0a5b55c3441c3424302bdb7f6da92efd31f6 Mon Sep 17 00:00:00 2001 From: Vladyslav Tymofeiev <“vladyslavty@softwareplanetgroup.com”> Date: Mon, 19 Aug 2024 15:24:15 +0300 Subject: [PATCH 1/3] Connect iframe-render.js to main.html --- lms/templates/main.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lms/templates/main.html b/lms/templates/main.html index 37a4325..7be6b4f 100644 --- a/lms/templates/main.html +++ b/lms/templates/main.html @@ -126,6 +126,7 @@ }).call(this, require || RequireJS.require); + <%block name="js_overrides"> ${render_require_js_path_overrides(settings.REQUIRE_JS_PATH_OVERRIDES) | n, decode.utf8} @@ -214,6 +215,7 @@ <%static:optional_include_mako file="body-extra.html" is_theming_enabled="True" /> + From 5ef69003bbd157831c8c076f9319ba11bb8e383b Mon Sep 17 00:00:00 2001 From: Vladyslav Tymofeiev <“vladyslavty@softwareplanetgroup.com”> Date: Mon, 19 Aug 2024 15:29:50 +0300 Subject: [PATCH 2/3] Remove redundant duplication --- lms/templates/main.html | 1 - 1 file changed, 1 deletion(-) diff --git a/lms/templates/main.html b/lms/templates/main.html index 7be6b4f..6719fe0 100644 --- a/lms/templates/main.html +++ b/lms/templates/main.html @@ -215,7 +215,6 @@ <%static:optional_include_mako file="body-extra.html" is_theming_enabled="True" /> - From c50e42b49c033c78cacb972dea3eb80247a6c1c7 Mon Sep 17 00:00:00 2001 From: Vladyslav Tymofeiev <“vladyslavty@softwareplanetgroup.com”> Date: Mon, 19 Aug 2024 16:38:35 +0300 Subject: [PATCH 3/3] Add style to hide elements --- lms/static/sass/base/_base.scss | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lms/static/sass/base/_base.scss b/lms/static/sass/base/_base.scss index 0fad872..b0e2bc4 100644 --- a/lms/static/sass/base/_base.scss +++ b/lms/static/sass/base/_base.scss @@ -272,4 +272,9 @@ a.nav-skip { .fa { font-family: 'FontAwesome' !important; +} + +// Hide element when rendered in iFrame +.hidden-element { + display: none !important; } \ No newline at end of file