go.chromium.org/luci@v0.0.0-20240309015107-7cdc2e660f33/milo/frontend/templates/includes/base.html (about) 1 {{define "base"}} 2 <!DOCTYPE html> 3 <!-- Copyright 2015 The LUCI Authors. All rights reserved. 4 Use of this source code is governed under the Apache License, Version 2.0. 5 that can be found in the LICENSE file. --> 6 <html lang="en"> 7 {{ .GTMJSSnippet }} 8 <meta charset="utf-8"> 9 <meta name="google" value="notranslate"> 10 {{ if .Reload }} 11 <meta http-equiv="refresh" content="{{ .Reload }}"> 12 {{ end -}} 13 <title>{{template "title" .}}</title> 14 <link rel="stylesheet" href="/static/buildbot/css/default.css" type="text/css"> 15 <link rel="stylesheet" href="/static/common/third_party/css/jquery-ui.min.css" type="text/css"> 16 <link rel="stylesheet" href="/static/common/third_party/css/vis.min.css" type="text/css"> 17 <link rel="search" type="application/opensearchdescription+xml" href="/opensearch.xml" title="LUCI" /> 18 <script src="/static/common/third_party/js/moment-with-locales.min.js"></script> 19 <script src="/static/common/third_party/js/moment-timezone-with-data-2012-2022.min.js"></script> 20 <script src="/static/common/js/time.js"></script> 21 <script src="/static/common/third_party/js/jquery.min.js"></script> 22 <script src="/static/common/third_party/js/jquery-ui.min.js"></script> 23 <script src="/static/common/third_party/js/vis-custom.min.js"></script> 24 {{ block "favicon" . }} 25 <link id="favicon" rel="shortcut icon" type="image/png" href="/static/common/favicon/milo-32.png"> 26 {{ end -}} 27 {{- block "head" .}}{{ end }} 28 29 <body class="interface"> 30 {{ .GTMNoScriptSnippet }} 31 {{ if .BannerHTML }} 32 {{ .BannerHTML }} 33 {{ end }} 34 <div id="main"> 35 <header> 36 <div> 37 <a href="/" aria-label="Home page">Home</a> | 38 <a href="/search" aria-label="Search page">Search</a> 39 {{- range .Navi }} 40 | <strong>{{ .Name.HTML }}</strong> {{ range .Links }} 41 - {{ .HTML }} 42 {{ end }} 43 {{ end }} 44 </div> 45 <div> 46 {{ if .IsAnonymous }} 47 <a href="{{.LoginURL}}" alt="Login">Login</a> 48 {{ else }} 49 {{ if .User.Picture }} 50 <img class="account-picture" src="{{.User.Picture}}" alt="Account Icon"> 51 {{ end }} 52 {{ .User.Email }} | 53 <a href="{{.LogoutURL}}" alt="Logout">Logout</a> 54 {{ end }} 55 </div> 56 </header> 57 <hr> 58 {{template "body" .}} 59 <footer> 60 <hr> 61 <div><img class="lucy-logo" src="https://storage.googleapis.com/chrome-infra/lucy-small.png"></div> 62 <div> 63 <a href="https://chromium.googlesource.com/infra/luci">LUCI</a><br> 64 built: <b>{{.CurrentTime | localTime "" }}</b><br> 65 version: <b>{{.AppVersion}}</b><br> 66 </div> 67 </footer> 68 </div> 69 </body> 70 <script> 71 $(function () { 72 'use strict'; 73 // Do these time manipulation functions in a timeout so that the tabs render sooner. 74 setTimeout(function() { 75 milo.makeTimesLocal(); 76 milo.annotateDurations(); 77 }, 0); 78 $(document).tooltip({ 79 show: false, 80 hide: false 81 }); 82 }); 83 </script> 84 <script> 85 (function(i,s,o,g,r,a,m){i['CrDXObject']=r;i[r]=i[r]||function(){ 86 (i[r].q=i[r].q||[]).push(arguments)},a=s.createElement(o), 87 m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m) 88 })(window,document,'script','https://storage.googleapis.com/chops-feedback/feedback.js','crdx'); 89 90 crdx('setFeedbackButtonLink', 'https://bugs.chromium.org/p/chromium/issues/entry?components=Infra%3ELUCI%3EUserInterface'); 91 </script> 92 </html> 93 {{end}}