gr-app-p2 is still needed for google hosts
Change-Id: Idc3ec6787507781706d438ed161cc311438a8e52
diff --git a/resources/com/google/gerrit/httpd/raw/PolyGerritIndexHtml.soy b/resources/com/google/gerrit/httpd/raw/PolyGerritIndexHtml.soy
index 147e8f2..8598229 100644
--- a/resources/com/google/gerrit/httpd/raw/PolyGerritIndexHtml.soy
+++ b/resources/com/google/gerrit/httpd/raw/PolyGerritIndexHtml.soy
@@ -92,8 +92,17 @@
<link rel="import" href="{$assetsPath}/{$assetsBundle}">{\n}
{/if}
- <link rel="import" href="{$staticResourcePath}/elements/gr-app.html">{\n}
+ // TODO(taoalpha): only used by Google, remove once polymer 2 fully rolled out
+ {if $polymer2}
+ <link rel="import" href="{$staticResourcePath}/elements/gr-app-p2.html">{\n}
+ {else}
+ <link rel="import" href="{$staticResourcePath}/elements/gr-app.html">{\n}
+ {/if}
<body unresolved>{\n}
+ {if $polymer2}
+ <gr-app-p2 id="app"></gr-app-p2>{\n}
+ {else}
<gr-app id="app"></gr-app>{\n}
+ {/if}
{/template}