Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(465)

Unified Diff: components/physical_web/webui/resources/physical_web.html

Issue 2741823002: Update Physical Web WebUI to show new results automatically (Closed)
Patch Set: remove js dedup and rebase Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/physical_web/webui/resources/physical_web.html
diff --git a/components/physical_web/webui/resources/physical_web.html b/components/physical_web/webui/resources/physical_web.html
index e0515108f20c85e3847d131beea48c1ac6dd7b8c..034912ed7433059ca54275708536114008356014 100644
--- a/components/physical_web/webui/resources/physical_web.html
+++ b/components/physical_web/webui/resources/physical_web.html
@@ -20,26 +20,24 @@
<script src="chrome://physical-web/strings.js"></script>
</head>
<body>
-<div id="body-container" hidden>
+<div id="body-container" hidden>
<h1 i18n-content="title"></h1>
-
- <a class="physicalWebTemplate" id="physicalWebTemplate" jsselect="metadata"
- jsvalues="href:resolvedUrl;onclick:'physicalWebItemClicked(' + index + ')'">
- <div class="physicalWebIcon">
- <img jsvalues="src:pageInfoIcon" />
- </div>
- <div class="physicalWebText">
- <div class="title" jscontent="pageInfoTitle"></div>
- <div class="resolvedUrl" jscontent="resolvedUrl"></div>
- <div class="description" jscontent="pageInfoDescription"></div>
- </div>
- </a>
-
+ <div id="render-container"></div>
+ <div id="empty-list-container" i18n-content="emptyMessage"></div>
</div>
-<div id="empty-list-container" i18n-content="emptyMessage" hidden>
-</div>
+<a hidden id="render-template" class="physicalWebTemplate" jsselect="metadata"
+ jsvalues="href:resolvedUrl;onclick:'physicalWebItemClicked(' + index + ')'">
+ <div class="physicalWebIcon">
+ <img jsvalues="src:pageInfoIcon" />
+ </div>
+ <div class="physicalWebText">
+ <div class="title" jscontent="pageInfoTitle"></div>
+ <div class="resolvedUrl" jscontent="resolvedUrl"></div>
+ <div class="description" jscontent="pageInfoDescription"></div>
+ </div>
+</a>
<script src="chrome://resources/js/i18n_template.js"></script>
<script src="chrome://resources/js/jstemplate_compiled.js"></script>

Powered by Google App Engine
This is Rietveld 408576698