Copybara | 854996b | 2021-09-07 19:36:02 +0000 | [diff] [blame^] | 1 | [if-any local_id] |
| 2 | [define title][local_id][end] |
| 3 | [else] |
| 4 | [define title]Monorail[end] |
| 5 | [end] |
| 6 | |
| 7 | [define is_ezt][end] |
| 8 | [include "../framework/header-shared.ezt"] |
| 9 | |
| 10 | [include "../webpack-out/mr-app.ezt"] |
| 11 | |
| 12 | <mr-app [if-any logged_in_user] |
| 13 | userDisplayName="[logged_in_user.email]"[end] |
| 14 | loginUrl="[login_url]" |
| 15 | logoutUrl="[logout_url]" |
| 16 | versionBase="[version_base]" |
| 17 | ></mr-app> |
| 18 | |
| 19 | [include "../framework/polymer-footer.ezt"] |
| 20 | |
| 21 | [if-any local_id] |
| 22 | <script type="text/javascript" nonce="[nonce]"> |
| 23 | window.addEventListener('load', () => { |
| 24 | window.getTSMonClient().recordIssueDetailSpaTiming(); |
| 25 | }); |
| 26 | </script> |
| 27 | [end] |
| 28 | |
| 29 | <script type="text/javascript" nonce="[nonce]"> |
| 30 | runOnLoad(function() { |
| 31 | if (typeof(ClientLogger) === "function") { |
| 32 | let cl = new ClientLogger("issues"); |
| 33 | if (cl.started("new-issue")) { |
| 34 | cl.logEnd("new-issue", null, 120 * 1000); |
| 35 | } |
| 36 | if (cl.started("issue-search")) { |
| 37 | cl.logEnd("issue-search"); |
| 38 | } |
| 39 | } |
| 40 | }); |
| 41 | </script> |