blob: c0ae57eb6e529b07923ecb475b0984d71a57bed9 [file] [log] [blame]
<!DOCTYPE html>
[# This is the master header file that is included in all Monrail servlets that render a page.
arg0: Can be "showtabs", "showusertabs" or "showusergrouptabs" to select which top-plevel tabs are shown.
arg1: String like "t1", "t2", "t3" to identify the currently active tab.
<html lang="en">
<link rel="icon" type="image/" href="/static/images/monorail.ico">
[if-any link_rel_canonical]
<link rel="canonical" href="[link_rel_canonical]">
<script type="text/javascript" nonce="[nonce]">
[# Javascript object containing basic page data. ]
var CS_env = {
'absoluteBaseUrl': '[format "js"][absolute_base_url][end]',
'app_version': '[format "js"][app_version][end]',
'token': '[format "js"][xhr_token][end]',
[if-any logged_in_user]
'tokenExpiresSec': [format "js"][token_expires_sec][end],
[if-any logged_in_user]
'[format "js"][][end]'
'login_url': '[format "js"][login_url][end]',
'logout_url': '[format "js"][logout_url][end]',
[if-any logged_in_user]
'[format "js"][logged_in_user.profile_url][end]'
'projectName': '[format "js"][projectname][end]',
[# Improve the snippet that appears in search]
[if-any show_search_metadata]
<meta name="Description" content="Monorail is simple, reliable, and flexible issue tracking tool.">
<meta name="robots" content="NOODP">
[if-any title][title] - [end]
[if-any projectname]
[projectname] -
[if-any viewing_user_page][viewed_user.display_name] - [end]
[if-any title_summary][title_summary] - [else]
[if-any project_summary][project_summary] - [end]
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="referrer" content="no-referrer">
[if-any robots_no_index]
<meta name="ROBOTS" content="NOINDEX,NOARCHIVE">
<meta name="ROBOTS" content="NOARCHIVE">
<meta name="viewport" content="width=device-width">
<link type="text/css" rel="stylesheet" href="/static/css/ph_core.css?version=[app_version]">
<link type="text/css" rel="stylesheet" href="/static/css/ph_mobile.css?version=[app_version]">
[if-any category_css]
<link type="text/css" rel="stylesheet" href="/static/[category_css]?version=[app_version]">
[if-any page_css]
<link type="text/css" rel="stylesheet" href="/static/[page_css]?version=[app_version]">
[# NO MORE SCRIPTS IN HEAD, it makes page loading too slow.]
<body class="[main_tab_mode] [if-any perms.EditIssue]perms_EditIssue[end]">
[# Tiny script used sitewide. ]
<script type="text/javascript" nonce="[nonce]">
function _go(url) { document.location = url; }
function $(id) { return document.getElementById(id); }
var loadQueue = [];
function runOnLoad(fn) { loadQueue.push(fn); }
window.onload = function() {
for (var fn of loadQueue)
delete loadQueue;
[include "maintabs.ezt" arg0 arg1]
[include "banner_message.ezt"]
<div id="maincol">
[include "alert.ezt"]