Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 {% set title = 'Isolate Server' %} | 1 {% set title = 'Isolate Server' %} |
| 2 {% extends "isolate/base.html" %} | 2 {% extends "isolate/base.html" %} |
| 3 | 3 |
| 4 | 4 |
| 5 {% block headers %} | 5 {% block headers %} |
| 6 <style> | 6 <style> |
| 7 html, body { | 7 html, body { |
| 8 height: 100%; | 8 height: 95%; |
| 9 margin: 0; | 9 margin: 0; |
| 10 width: 100%; | 10 width: 100%; |
| 11 } | 11 } |
| 12 div.use_all_space { | 12 div.use_all_space { |
| 13 margin: 0; | 13 margin: 0; |
| 14 overflow-y: hidden; | 14 overflow-y: hidden; |
| 15 padding: 0; | 15 padding: 0; |
| 16 width: 100%; | 16 width: 100%; |
| 17 } | 17 } |
| 18 .monospace { | 18 .monospace { |
| 19 font-family: monospace; | 19 font-family: monospace; |
| 20 white-space: pre-wrap; | 20 white-space: pre-wrap; |
| 21 } | 21 } |
| 22 iframe.use_all_space { | 22 iframe.use_all_space { |
| 23 margin: 0; | 23 margin: 0; |
| 24 overflow-y: hidden; | 24 overflow-y: hidden; |
| 25 padding: 0; | 25 padding: 0; |
| 26 width: 100%; | 26 width: 100%; |
| 27 min-height: 80%; | |
| 27 } | 28 } |
| 28 </style> | 29 </style> |
| 29 | 30 |
| 30 | 31 |
| 31 {# | 32 {# |
| 32 TODO(maruel): Reenable once Web UI authentication is switched to OAuth2. | 33 TODO(maruel): Reenable once Web UI authentication is switched to OAuth2. |
| 33 <script type="text/javascript" src="third_party/pako/pako-0.2.3.min.js"> | 34 <script type="text/javascript" src="third_party/pako/pako-0.2.3.min.js"> |
| 34 </script> | 35 </script> |
| 35 <script> | 36 <script> |
| 36 if (typeof String.prototype.endsWith !== 'function') { | 37 if (typeof String.prototype.endsWith !== 'function') { |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 128 | 129 |
| 129 Enter the namespace and digest of an object:<br> | 130 Enter the namespace and digest of an object:<br> |
| 130 <form id="form1" method="GET"> | 131 <form id="form1" method="GET"> |
| 131 <input id="namespace" name="namespace" value="{{namespace}}" /><br> | 132 <input id="namespace" name="namespace" value="{{namespace}}" /><br> |
| 132 <input id="digest" name="digest" maxlength=40 size=40 value="{{digest}}" /> | 133 <input id="digest" name="digest" maxlength=40 size=40 value="{{digest}}" /> |
| 133 <br> | 134 <br> |
| 134 <input type=submit value="Load item"/><br> | 135 <input type=submit value="Load item"/><br> |
| 135 </form> | 136 </form> |
| 136 <p> | 137 <p> |
| 137 <div id="generated_link"> </div> | 138 <div id="generated_link"> </div> |
| 138 <p> | 139 </p> |
| 139 <hr> | 140 <hr> |
| 140 <div class="use_all_space monospace">{{content}}{# <iframe id="content" class=" use_all_space" sandbox="allow-same-origin"></iframe>#}</div> | |
| 141 | 141 |
| 142 <div id="iframe-entry"></div> | |
| 143 <iframe id="content" class="use_all_space" sandbox="allow-same-origin allow-popu ps" src="content?namespace={{namespace}}&digest={{digest}}"> | |
|
M-A Ruel
2016/04/13 20:32:09
Why allow-popups?
kjlubick
2016/04/14 13:18:43
If allow-popups isn't set to true, I can't make th
| |
| 144 </iframe> | |
| 142 {% endblock %} | 145 {% endblock %} |
| OLD | NEW |