Chromium Code Reviews| Index: components/ntp_tiles/webui/resources/site_tiles_internals.html |
| diff --git a/components/ntp_tiles/webui/resources/site_tiles_internals.html b/components/ntp_tiles/webui/resources/site_tiles_internals.html |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..9df9ca094ee5af4920177e64669777ab47998f9c |
| --- /dev/null |
| +++ b/components/ntp_tiles/webui/resources/site_tiles_internals.html |
| @@ -0,0 +1,117 @@ |
| +<!-- |
| +Copyright 2016 The Chromium Authors. All rights reserved. |
| +Use of this source code is governed by a BSD-style license that can be |
| +found in the LICENSE file. |
| +--> |
| +<!DOCTYPE html> |
| +<html> |
| +<head> |
| +<meta charset="utf-8"> |
| +<if expr="is_android or is_ios"> |
| +<meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| +</if> |
| +<title>Site Tiles Internals</title> |
| +<link rel="stylesheet" href="chrome://resources/css/text_defaults.css"> |
| +<link rel="stylesheet" href="chrome://resources/css/list.css"> |
| +<link rel="stylesheet" href="site_tiles_internals.css"> |
| +<script src="chrome://resources/js/cr.js"></script> |
| +<script src="chrome://resources/js/jstemplate_compiled.js"></script> |
| +<script src="chrome://resources/js/load_time_data.js"></script> |
| +<script src="chrome://resources/js/util.js"></script> |
| +<if expr="is_ios"> |
| +<!-- TODO(crbug.com/487000): Remove this once injected by web. --> |
| +<script src="chrome://resources/js/ios/web_ui.js"></script> |
| +</if> |
| +<script src="site_tiles_internals.js"></script> |
| +</head> |
| + |
| +<body> |
| +<div> |
|
Marc Treib
2016/12/12 09:42:18
Might be useful to add a top-level "is ntp_tiles a
sfiera
2016/12/12 10:09:50
I'll add that to the list of things still needed.
|
| + <div id="sources" class="section"> |
| + <h2>Sources</h2> |
| + <table class="section-details"> |
| + <tbody jsselect="topSites"> |
| + <tr> |
| + <th colspan="2">TOP_SITES</th> |
| + </tr> |
| + <tr> |
| + <td class="detail">enabled</td> |
| + <td class="value" jsdisplay="$this">yes</td> |
| + <td class="value" jsdisplay="!$this">no</td> |
| + </tr> |
| + <tr> |
| + <th colspan="2">SUGGESTIONS_SERVICE</th> |
| + </tr> |
| + </tbody> |
| + <tbody jsselect="suggestionsService"> |
| + <tr> |
| + <td class="detail">enabled</td> |
| + <td class="value" jsdisplay="$this">yes</td> |
| + <td class="value" jsdisplay="!$this">no</td> |
| + </tr> |
| + </tbody> |
| + <tbody jsselect="popular"> |
| + <tr> |
| + <th colspan="2">POPULAR</th> |
| + </tr> |
| + <tr jsdisplay="$this"> |
| + <td class="detail">URL</td> |
| + <td class="value"><input id="override-url" type="text" jsvalues="value:overrideURL;placeholder:url"></td> |
| + </tr> |
| + <tr jsdisplay="$this"> |
| + <td class="detail">Country</td> |
| + <td class="value"><input id="override-country" type="text" jsvalues="value:overrideCountry;placeholder:country"></td> |
| + </tr> |
| + <tr jsdisplay="$this"> |
| + <td class="detail">Version</td> |
| + <td class="value"><input id="override-version" type="text" jsvalues="values:overrideVersion;placeholder:version"></td> |
| + </tr> |
| + <tr jsdisplay="!$this"> |
| + <td class="detail">enabled</td> |
| + <td class="value">no</td> |
| + </tr> |
| + </tbody> |
| + <tbody jsselect="whitelist"> |
| + <tr> |
| + <th colspan="2">WHITELIST</th> |
| + </tr> |
| + <tr> |
| + <td class="detail">enabled</td> |
| + <td class="value" jsdisplay="$this">yes</td> |
| + <td class="value" jsdisplay="!$this">no</td> |
| + </tr> |
| + <tr jsskip="true"> |
| + <th colspan="2"><input id="submit-update" type="submit" value="Update"></input></th> |
| + </tr> |
| + </tbody> |
| + </table> |
| + </div> |
| + |
| + <div id="sites" class="section"> |
| + <h2>Sites</h2> |
| + <table class="section-details"> |
| + <tbody jsselect="sites"> |
| + <tr> |
| + <th colspan="2" jscontent="title"></th> |
| + </tr> |
| + <tr> |
| + <td class="detail">Source</td> |
| + <td class="value" jsdisplay="source < 0">???</td> |
| + <td class="value" jsdisplay="source == 0">TOP_SITES</td> |
| + <td class="value" jsdisplay="source == 1">SUGGESTIONS_SERVICE</td> |
| + <td class="value" jsdisplay="source == 2">POPULAR</td> |
| + <td class="value" jsdisplay="source == 3">WHITELIST</td> |
| + <td class="value" jsdisplay="source > 3">???</td> |
| + </tr> |
| + <tr> |
| + <td class="detail">URL</td> |
| + <td class="value"><a jsvalues="href:url" jscontent="url"></a></td> |
| + </tr> |
| + </tbody> |
| + </table> |
| + </div> |
| +</div> |
| + |
| +</body> |
| +</html> |
| + |