Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 1 | [# This template displays the part of the footer used by both web components and EZT pages. ] |
| 2 | |
| 3 | <div id="footer"> |
| 4 | [if-any old_ui_url] |
| 5 | <a href="[old_ui_url]"> |
| 6 | View in the old UI |
| 7 | </a> |
| 8 | [else][if-any new_ui_url] |
| 9 | <a href="[new_ui_url]"> |
| 10 | View in the new UI |
| 11 | </a> |
| 12 | [end][end] |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 13 | <a href="https://bugs.chromium.org/p/monorail/adminIntro" title="Monorail [app_version]">About Monorail</a> |
| 14 | <a href="https://chromium.googlesource.com/infra/infra/+/main/appengine/monorail/doc/userguide/README.md">User Guide</a> |
Adrià Vilanova MartÃnez | 2356fff | 2022-05-15 23:37:29 +0200 | [diff] [blame^] | 15 | <a href="https://gerrit.avm99963.com/plugins/gitiles/monorail-avm99963/+/HEAD/doc/terms.md">Terms</a> |
Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame] | 16 | </div> |
| 17 | |
| 18 | [include "debug.ezt"] |
| 19 | |
| 20 | [include "../webpack-out/ezt-footer-scripts-package.ezt"] |
| 21 | |
| 22 | <script type="module" nonce="[nonce]"> |
| 23 | // Load and instantiate pRPC client before any other script. |
| 24 | window.prpcClient = new AutoRefreshPrpcClient( |
| 25 | CS_env.token, CS_env.tokenExpiresSec); |
| 26 | </script> |
| 27 | |
| 28 | [if-any is_ezt] |
| 29 | <script type="text/javascript" defer src="[version_base]/static/js/framework/externs.js" nonce="[nonce]"></script> |
| 30 | <script type="text/javascript" defer src="[version_base]/static/js/framework/env.js" nonce="[nonce]"></script> |
| 31 | <script type="text/javascript" defer src="[version_base]/static/js/framework/framework-ajax.js" nonce="[nonce]"></script> |
| 32 | <script type="text/javascript" defer src="[version_base]/static/js/framework/framework-cues.js" nonce="[nonce]"></script> |
| 33 | <script type="text/javascript" defer src="[version_base]/static/js/framework/framework-display.js" nonce="[nonce]"></script> |
| 34 | <script type="text/javascript" defer src="[version_base]/static/js/framework/framework-menu.js" nonce="[nonce]"></script> |
| 35 | <script type="text/javascript" defer src="[version_base]/static/js/framework/framework-myhotlists.js" nonce="[nonce]"></script> |
| 36 | <script type="text/javascript" defer src="[version_base]/static/js/framework/framework-stars.js" nonce="[nonce]"></script> |
| 37 | <script type="text/javascript" defer src="[version_base]/static/js/framework/project-name-check.js" nonce="[nonce]"></script> |
| 38 | <script type="text/javascript" defer src="[version_base]/static/js/graveyard/xmlhttp.js" nonce="[nonce]"></script> |
| 39 | [end] |
| 40 | [include "footer-script.ezt"] |
| 41 | |
| 42 | |
| 43 | [if-any is_ezt] |
| 44 | <script type="text/javascript" nonce="[nonce]"> |
| 45 | runOnLoad(function() { |
| 46 | var toggles = document.getElementsByClassName("toggleHidden"); |
| 47 | for (var i = 0; i < toggles.length; ++i) { |
| 48 | var toggle = toggles[[]i]; |
| 49 | toggle.addEventListener("click", function (event) { |
| 50 | _toggleHidden(event.target); |
| 51 | event.preventDefault(); |
| 52 | }); |
| 53 | } |
| 54 | |
| 55 | toggles = document.getElementsByClassName("toggleCollapse"); |
| 56 | for (var i = 0; i < toggles.length; ++i) { |
| 57 | var toggle = toggles[[]i]; |
| 58 | toggle.addEventListener("click", function (event) { |
| 59 | _toggleCollapse(event.target); |
| 60 | event.preventDefault(); |
| 61 | }); |
| 62 | } |
| 63 | |
| 64 | [if-any form_token] |
| 65 | var tokenFields = document.querySelectorAll("input[[]name=token]"); |
| 66 | for (var i = 0; i < tokenFields.length; ++i) { |
| 67 | var field = tokenFields[[]i]; |
| 68 | field.form.addEventListener("submit", function(event) { |
| 69 | refreshTokens( |
| 70 | event, "[form_token]", "[form_token_path]", [token_expires_sec]); |
| 71 | }); |
| 72 | } |
| 73 | [end] |
| 74 | |
| 75 | [if-any project] |
| 76 | _fetchUserProjects(false); |
| 77 | [end] |
| 78 | _onload(); |
| 79 | |
| 80 | }); |
| 81 | </script> |
| 82 | [else] |
| 83 | <script type="text/javascript" nonce="[nonce]"> |
| 84 | runOnLoad(function() { |
| 85 | TKR_install_ac(); |
| 86 | }); |
| 87 | </script> |
| 88 | [end] |