blob: 5cc5757c523439a96ecf14d361e78e272ec66392 [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001[# 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]
Copybara854996b2021-09-07 19:36:02 +000013 <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ínez2356fff2022-05-15 23:37:29 +020015 <a href="https://gerrit.avm99963.com/plugins/gitiles/monorail-avm99963/+/HEAD/doc/terms.md">Terms</a>
Copybara854996b2021-09-07 19:36:02 +000016</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.
24window.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]
Adrià Vilanova Martínezf19ea432024-01-23 20:20:52 +010089
90<script
91 data-autoload-cookie-consent-bar="true"
92 src="https://www.gstatic.com/brandstudio/kato/cookie_choice_component/cookie_consent_bar.v3.js"
93 nonce="[nonce]">
94</script>