blob: 5cc5757c523439a96ecf14d361e78e272ec66392 [file] [log] [blame]
[# This template displays the part of the footer used by both web components and EZT pages. ]
<div id="footer">
[if-any old_ui_url]
<a href="[old_ui_url]">
View in the old UI
</a>
[else][if-any new_ui_url]
<a href="[new_ui_url]">
View in the new UI
</a>
[end][end]
<a href="https://bugs.chromium.org/p/monorail/adminIntro" title="Monorail [app_version]">About Monorail</a>
<a href="https://chromium.googlesource.com/infra/infra/+/main/appengine/monorail/doc/userguide/README.md">User Guide</a>
<a href="https://gerrit.avm99963.com/plugins/gitiles/monorail-avm99963/+/HEAD/doc/terms.md">Terms</a>
</div>
[include "debug.ezt"]
[include "../webpack-out/ezt-footer-scripts-package.ezt"]
<script type="module" nonce="[nonce]">
// Load and instantiate pRPC client before any other script.
window.prpcClient = new AutoRefreshPrpcClient(
CS_env.token, CS_env.tokenExpiresSec);
</script>
[if-any is_ezt]
<script type="text/javascript" defer src="[version_base]/static/js/framework/externs.js" nonce="[nonce]"></script>
<script type="text/javascript" defer src="[version_base]/static/js/framework/env.js" nonce="[nonce]"></script>
<script type="text/javascript" defer src="[version_base]/static/js/framework/framework-ajax.js" nonce="[nonce]"></script>
<script type="text/javascript" defer src="[version_base]/static/js/framework/framework-cues.js" nonce="[nonce]"></script>
<script type="text/javascript" defer src="[version_base]/static/js/framework/framework-display.js" nonce="[nonce]"></script>
<script type="text/javascript" defer src="[version_base]/static/js/framework/framework-menu.js" nonce="[nonce]"></script>
<script type="text/javascript" defer src="[version_base]/static/js/framework/framework-myhotlists.js" nonce="[nonce]"></script>
<script type="text/javascript" defer src="[version_base]/static/js/framework/framework-stars.js" nonce="[nonce]"></script>
<script type="text/javascript" defer src="[version_base]/static/js/framework/project-name-check.js" nonce="[nonce]"></script>
<script type="text/javascript" defer src="[version_base]/static/js/graveyard/xmlhttp.js" nonce="[nonce]"></script>
[end]
[include "footer-script.ezt"]
[if-any is_ezt]
<script type="text/javascript" nonce="[nonce]">
runOnLoad(function() {
var toggles = document.getElementsByClassName("toggleHidden");
for (var i = 0; i < toggles.length; ++i) {
var toggle = toggles[[]i];
toggle.addEventListener("click", function (event) {
_toggleHidden(event.target);
event.preventDefault();
});
}
toggles = document.getElementsByClassName("toggleCollapse");
for (var i = 0; i < toggles.length; ++i) {
var toggle = toggles[[]i];
toggle.addEventListener("click", function (event) {
_toggleCollapse(event.target);
event.preventDefault();
});
}
[if-any form_token]
var tokenFields = document.querySelectorAll("input[[]name=token]");
for (var i = 0; i < tokenFields.length; ++i) {
var field = tokenFields[[]i];
field.form.addEventListener("submit", function(event) {
refreshTokens(
event, "[form_token]", "[form_token_path]", [token_expires_sec]);
});
}
[end]
[if-any project]
_fetchUserProjects(false);
[end]
_onload();
});
</script>
[else]
<script type="text/javascript" nonce="[nonce]">
runOnLoad(function() {
TKR_install_ac();
});
</script>
[end]
<script
data-autoload-cookie-consent-bar="true"
src="https://www.gstatic.com/brandstudio/kato/cookie_choice_component/cookie_consent_bar.v3.js"
nonce="[nonce]">
</script>