Commit e0122c05 by David Ormsbee

Merge pull request #7624 from mcgachey/mcgachey-courseware-flags

[LTI Provider] Adding options to suppress chrome for embedding courseware
parents 53c12d51 bc293b05
<%! from django.utils.translation import ugettext as _ %> <%! from django.utils.translation import ugettext as _ %>
<%! from django.core.urlresolvers import reverse %> <%! from django.core.urlresolvers import reverse %>
% if reverifications["must_reverify"]:
% if reverifications:
% if reverifications["must_reverify"]:
% if len(reverifications["must_reverify"]) > 1: % if len(reverifications["must_reverify"]) > 1:
<div class="wrapper-msg urgency-high"> <div class="wrapper-msg urgency-high">
...@@ -57,10 +59,10 @@ ...@@ -57,10 +59,10 @@
</div> </div>
% endfor % endfor
%endif %endif
%endif %endif
%if reverifications["denied"] and denied_banner: %if reverifications["denied"] and denied_banner:
<div class="wrapper-msg urgency-high" id="failed-verification-banner"> <div class="wrapper-msg urgency-high" id="failed-verification-banner">
<div class="msg msg-reverify is-dismissable"> <div class="msg msg-reverify is-dismissable">
<div class="msg-content"> <div class="msg-content">
<h2 class="title">${_("Your re-verification failed")}</h2> <h2 class="title">${_("Your re-verification failed")}</h2>
...@@ -84,4 +86,5 @@ ...@@ -84,4 +86,5 @@
</div> </div>
</div> </div>
</div> </div>
%endif
%endif %endif
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
</title> </title>
</%block> </%block>
% if not allow_iframing:
<script type="text/javascript"> <script type="text/javascript">
/* immediately break out of an iframe if coming from the marketing website */ /* immediately break out of an iframe if coming from the marketing website */
(function(window) { (function(window) {
...@@ -57,6 +58,7 @@ ...@@ -57,6 +58,7 @@
} }
})(this); })(this);
</script> </script>
% endif
<script type="text/javascript" src="/jsi18n/"></script> <script type="text/javascript" src="/jsi18n/"></script>
...@@ -141,13 +143,16 @@ ...@@ -141,13 +143,16 @@
<%include file="mathjax_accessible.html" /> <%include file="mathjax_accessible.html" />
% if not disable_header:
<%include file="${header_file}" /> <%include file="${header_file}" />
% endif
<div class="content-wrapper" id="content"> <div class="content-wrapper" id="content">
${self.body()} ${self.body()}
<%block name="bodyextra"/> <%block name="bodyextra"/>
</div> </div>
% if not disable_footer:
<%block name="footer"> <%block name="footer">
## Can be overridden by child templates wanting to hide the footer. ## Can be overridden by child templates wanting to hide the footer.
<% <%
...@@ -160,6 +165,7 @@ ...@@ -160,6 +165,7 @@
%> %>
<%include file="${footer_file}" /> <%include file="${footer_file}" />
</%block> </%block>
% endif
</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