blob: fe798aff426628939e9eb94e59ebe9ea7c96a187 [file] [log] [blame]
Copybara854996b2021-09-07 19:36:02 +00001[# This is the main header file that is included in all Monorail servlets that render a page.
2
3 Args:
4 arg0: Can be "showtabs", "showusertabs" or "showusergrouptabs" to select which top-plevel tabs are shown.
5 arg1: String like "t1", "t2", "t3" to identify the currently active tab.
6]
7[define is_ezt]Yes[end]
8[include "header-shared.ezt"]
9
10[include "../webpack-out/ezt-element-package.ezt"]
11
12<body class="[main_tab_mode] [if-any perms.EditIssue]perms_EditIssue[end]">
13
14[# Tiny script used sitewide. ]
15<script type="text/javascript" nonce="[nonce]">
16 function _go(url, newWindow) {
17 if (newWindow)
18 window.open(url, '_blank');
19 else
20 document.location = url;
21 }
22 function $(id) { return document.getElementById(id); }
23
24 var loadQueue = [];
25 function runOnLoad(fn) { loadQueue.push(fn); }
26
27 window.onload = function() {
28 for (var i = 0; i < loadQueue.length; i++)
29 loadQueue[[]i]();
30 delete loadQueue;
31 };
32</script>
33
34[include "maintabs.ezt" arg0 arg1]
35
36[include "banner_message.ezt"]
37
38<div id="maincol">
39[include "alert.ezt"]