| /** |
| * Copyright (C) 2017 The Android Open Source Project |
| * |
| * Licensed under the Apache License, Version 2.0 (the "License"); |
| * you may not use this file except in compliance with the License. |
| * You may obtain a copy of the License at |
| * |
| * http://www.apache.org/licenses/LICENSE-2.0 |
| * |
| * Unless required by applicable law or agreed to in writing, software |
| * distributed under the License is distributed on an "AS IS" BASIS, |
| * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| * See the License for the specific language governing permissions and |
| * limitations under the License. |
| */ |
| |
| {namespace com.google.gerrit.httpd.raw} |
| |
| /** |
| * @param canonicalPath |
| * @param staticResourcePath |
| */ |
| {template .Index autoescape="strict" kind="html"} |
| <!DOCTYPE html>{\n} |
| <html lang="en">{\n} |
| <meta charset="utf-8">{\n} |
| <meta name="description" content="Gerrit Code Review">{\n} |
| <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">{\n} |
| |
| {if $canonicalPath != ''} |
| <script>window.CANONICAL_PATH = '{$canonicalPath}';</script>{\n} |
| {/if} |
| |
| <link rel="icon" type="image/x-icon" href="{$canonicalPath}/favicon.ico">{\n} |
| |
| // SourceCodePro fonts are used in styles/fonts.css |
| // @see https://github.com/w3c/preload/issues/32 regarding crossorigin |
| <link rel="preload" href="{$staticResourcePath}/fonts/SourceCodePro-Regular.woff2" as="font" type="font/woff2" crossorigin>{\n} |
| <link rel="preload" href="{$staticResourcePath}/fonts/SourceCodePro-Regular.woff" as="font" type="font/woff" crossorigin>{\n} |
| <link rel="stylesheet" href="{$staticResourcePath}/styles/fonts.css">{\n} |
| <link rel="stylesheet" href="{$staticResourcePath}/styles/main.css">{\n} |
| <script src="{$staticResourcePath}/bower_components/webcomponentsjs/webcomponents-lite.js"></script>{\n} |
| <link rel="preload" href="{$staticResourcePath}/elements/gr-app.js" as="script" crossorigin="anonymous">{\n} |
| <link rel="import" href="{$staticResourcePath}/elements/gr-app.html">{\n} |
| |
| <body unresolved>{\n} |
| <gr-app id="app"></gr-app>{\n} |
| {/template} |