blob: 9630e4c0ff34c66df6068ae7b224925d7d668dbd [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]
13 [is projectname "fuchsia"]
14 <a href="https://bugs.fuchsia.dev/p/fuchsia/issues/entry?template=Report+Community+Abuse" title="Monorail [app_version]">Report Abuse</a>
15 [end]
16 <a href="https://bugs.chromium.org/p/monorail/adminIntro" title="Monorail [app_version]">About Monorail</a>
17 <a href="https://chromium.googlesource.com/infra/infra/+/main/appengine/monorail/doc/userguide/README.md">User Guide</a>
18 <a href="https://chromium.googlesource.com/infra/infra/+/main/appengine/monorail/doc/release-notes.md">Release Notes</a>
19 <a href="https://bugs.chromium.org/p/monorail/issues/entry?template=Online%20Feedback" target="_blank">Feedback on Monorail</a>
20 <a href="https://chromium.googlesource.com/infra/infra/+/main/appengine/monorail/doc/terms.md">Terms</a>
21 <a href="https://www.google.com/policies/privacy/">Privacy</a>
22</div>
23
24[include "debug.ezt"]
25
26[include "../webpack-out/ezt-footer-scripts-package.ezt"]
27
28<script type="module" nonce="[nonce]">
29// Load and instantiate pRPC client before any other script.
30window.prpcClient = new AutoRefreshPrpcClient(
31 CS_env.token, CS_env.tokenExpiresSec);
32</script>
33
34[if-any is_ezt]
35 <script type="text/javascript" defer src="[version_base]/static/js/framework/externs.js" nonce="[nonce]"></script>
36 <script type="text/javascript" defer src="[version_base]/static/js/framework/env.js" nonce="[nonce]"></script>
37 <script type="text/javascript" defer src="[version_base]/static/js/framework/framework-ajax.js" nonce="[nonce]"></script>
38 <script type="text/javascript" defer src="[version_base]/static/js/framework/framework-cues.js" nonce="[nonce]"></script>
39 <script type="text/javascript" defer src="[version_base]/static/js/framework/framework-display.js" nonce="[nonce]"></script>
40 <script type="text/javascript" defer src="[version_base]/static/js/framework/framework-menu.js" nonce="[nonce]"></script>
41 <script type="text/javascript" defer src="[version_base]/static/js/framework/framework-myhotlists.js" nonce="[nonce]"></script>
42 <script type="text/javascript" defer src="[version_base]/static/js/framework/framework-stars.js" nonce="[nonce]"></script>
43 <script type="text/javascript" defer src="[version_base]/static/js/framework/project-name-check.js" nonce="[nonce]"></script>
44 <script type="text/javascript" defer src="[version_base]/static/js/graveyard/xmlhttp.js" nonce="[nonce]"></script>
45[end]
46[include "footer-script.ezt"]
47
48
49[if-any is_ezt]
50 <script type="text/javascript" nonce="[nonce]">
51 runOnLoad(function() {
52 var toggles = document.getElementsByClassName("toggleHidden");
53 for (var i = 0; i < toggles.length; ++i) {
54 var toggle = toggles[[]i];
55 toggle.addEventListener("click", function (event) {
56 _toggleHidden(event.target);
57 event.preventDefault();
58 });
59 }
60
61 toggles = document.getElementsByClassName("toggleCollapse");
62 for (var i = 0; i < toggles.length; ++i) {
63 var toggle = toggles[[]i];
64 toggle.addEventListener("click", function (event) {
65 _toggleCollapse(event.target);
66 event.preventDefault();
67 });
68 }
69
70 [if-any form_token]
71 var tokenFields = document.querySelectorAll("input[[]name=token]");
72 for (var i = 0; i < tokenFields.length; ++i) {
73 var field = tokenFields[[]i];
74 field.form.addEventListener("submit", function(event) {
75 refreshTokens(
76 event, "[form_token]", "[form_token_path]", [token_expires_sec]);
77 });
78 }
79 [end]
80
81 [if-any project]
82 _fetchUserProjects(false);
83 [end]
84 _onload();
85
86 });
87 </script>
88[else]
89 <script type="text/javascript" nonce="[nonce]">
90 runOnLoad(function() {
91 TKR_install_ac();
92 });
93 </script>
94[end]
95
96<script type="text/javascript" nonce="[nonce]">
97runOnLoad(function() {
98 // CrDX Feedback Button
99 (function(i,s,o,g,r,a,m){i[[]'CrDXObject']=r;i[[]r]=i[[]r]||function(){
100 (i[[]r].q=i[[]r].q||[]).push(arguments)},a=s.createElement(o),
101 m=s.getElementsByTagName(o)[0];a.async=1;a.setAttribute('nonce','[nonce]');
102 a.src=g;m.parentNode.insertBefore(a,m)
103 })(window,document,'script','https://storage.googleapis.com/chops-feedback/feedback.js','crdx');
104
105 crdx('setFeedbackButtonLink', 'https://bugs.chromium.org/p/monorail/issues/entry?template=Online%20Feedback');
106});
107</script>