Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 <!-- | |
| 2 Copyright 2016 The Chromium Authors. All rights reserved. | |
| 3 Use of this source code is governed by a BSD-style license that can be | |
| 4 found in the LICENSE file. | |
| 5 --> | |
| 6 <!DOCTYPE html> | |
| 7 <html> | |
| 8 <head> | |
|
Marc Treib
2016/04/15 09:00:30
Why did you remove the head and body tags? Is this
jkrcal
2016/04/15 14:11:50
Yes, just trying to be more consistent with the po
| |
| 9 <meta charset="utf-8"> | |
| 10 <if expr="is_android or is_ios"> | |
| 11 <meta name="viewport" content="width=device-width, initial-scale=1.0, | |
| 12 maximum-scale=1.0, user-scalable=no"> | |
| 13 </if> | |
| 14 <title>Snippets Internals</title> | |
| 15 <link rel="stylesheet" href="chrome://resources/css/text_defaults.css"> | |
| 16 <link rel="stylesheet" href="snippets_internals.css"> | |
| 17 <script src="chrome://resources/js/cr.js"></script> | |
| 18 <script src="chrome://resources/js/jstemplate_compiled.js"></script> | |
| 19 <script src="chrome://resources/js/util.js"></script> | |
| 20 <script src="snippets_internals.js"></script> | |
| 21 | |
| 22 <body> | |
| 23 <div id="info"> | |
| 24 <div class="section" jsskip="true"> | |
| 25 <h2>Properties</h2> | |
| 26 <table class="section-details"> | |
| 27 <tr> | |
| 28 <td class="name">Snippets enabled | |
| 29 <td id="flag-snippets" class="value"> | |
| 30 <tr> | |
| 31 <td class="name">Snippets restricted to hosts | |
| 32 <td id="switch-restrict-to-hosts" class="value"> | |
| 33 </table> | |
| 34 </div> | |
| 35 | |
| 36 <div id="snippets" class="section"> | |
| 37 <h2>Snippets <span class="detail">(click for details)</span></h2> | |
| 38 <table class="section-details"> | |
| 39 <tr jsselect="list" style="display:none"> | |
| 40 <td class="title-link"> | |
| 41 <span class="snippet-title" jsvalues="myid:id"> | |
| 42 <span jscontent="title"></span> | |
| 43 >> | |
| 44 </span> | |
| 45 <div jsvalues="id:id" class="snippet-detail snippet-hidden"> | |
| 46 <table> | |
| 47 <tr> | |
| 48 <td>Validity | |
| 49 <td class="expiry"><span class="date" jscontent="published"> | |
|
Bernhard Bauer
2016/04/14 16:50:25
Put the <span> on a new line, as it's a child of t
jkrcal
2016/04/15 08:39:54
Done.
The style guide https://google.github.io/st
| |
| 50 </span> – <span class="date" jscontent="expires"> | |
| 51 </span> | |
| 52 <tr> | |
| 53 <td>Site title | |
| 54 <td jscontent="siteTitle"> | |
| 55 <tr> | |
| 56 <td>Text | |
| 57 <td jscontent="snippet"> | |
| 58 <tr> | |
| 59 <td>URL | |
| 60 <td><a class="url" jsvalues="href:url" jscontent="url"></a> | |
| 61 <tr> | |
| 62 <td>Favicon | |
| 63 <td><a class="url" jsvalues="href:faviconUrl" | |
| 64 jscontent="faviconUrl"></a> | |
| 65 <tr> | |
| 66 <td>Salient image | |
| 67 <td><a class="url" jsvalues="href:salientImageUrl" | |
| 68 jscontent="salientImageUrl"></a> | |
| 69 </table> | |
| 70 </div> | |
| 71 </table> | |
| 72 <div class="detail" id="snippets-empty" jsskip="1"></div> | |
| 73 <div class="forms" jsskip="1"> | |
| 74 <input id="submit-clear" type="submit" value="Clear the list"> | |
| 75 </div> | |
| 76 <div class="forms" jsskip="1"> | |
| 77 <input id="submit-download" type="submit" value="Add snippets"> | |
| 78 from hosts <input id="hosts-input" type="text"> | |
| 79 <div class="detail"> | |
| 80 e.g. "www.wired.com www.bbc.co.uk", <span id="hosts-help"></span>. | |
| 81 </div> | |
| 82 </div> | |
| 83 </div> | |
| 84 | |
| 85 <div id="discarded-snippets" class="section"> | |
| 86 <h2>Discarded snippets <span class="detail">(click for details)</span></h2> | |
| 87 <table class="section-details"> | |
| 88 <tr jsselect="list" style="display:none"> | |
| 89 <td class="title-link"> | |
| 90 <span class="discarded-snippet-title" jsvalues="myid:id"> | |
| 91 <span jscontent="title"></span> >></span> | |
| 92 <div jsvalues="id:id" class="snippet-detail snippet-hidden"> | |
| 93 <table> | |
| 94 <tr> | |
| 95 <td>Validity | |
| 96 <td class="expiry"> | |
| 97 <span class="date" jscontent="published"></span> – | |
| 98 <span class="date" jscontent="expires"></span> | |
| 99 <tr> | |
| 100 <td>Text | |
| 101 <td jscontent="snippet"> | |
| 102 <tr> | |
| 103 <td>URL | |
| 104 <td><a class="url" jsvalues="href:url" jscontent="url"></a> | |
| 105 <tr> | |
| 106 <td>Favicon | |
| 107 <td> | |
| 108 <a class="url" jsvalues="href:faviconUrl" | |
| 109 jscontent="faviconUrl"></a> | |
| 110 <tr> | |
| 111 <td>Salient image | |
| 112 <td> | |
| 113 <a class="url" jsvalues="href:salientImageUrl" | |
| 114 jscontent="salientImageUrl"></a> | |
| 115 </table> | |
| 116 </div> | |
| 117 </table> | |
| 118 <div class="detail" id="discarded-snippets-empty" jsskip="1"></div> | |
| 119 <div class="forms" jsskip="1"> | |
| 120 <input id="discarded-snippets-clear" type="submit" value="Clear list"> | |
| 121 </div> | |
| 122 </div> | |
| 123 | |
| 124 <div id="hosts" class="section"> | |
| 125 <h2>Suggestion hosts</h2> | |
| 126 <table class="section-details"> | |
| 127 <tr jsselect="list"> | |
| 128 <td jscontent="url"> | |
| 129 </tr> | |
| 130 </table> | |
| 131 <div class="detail" id="hosts-empty" jsskip="1"></div> | |
| 132 </div> | |
| 133 </div> | |
| OLD | NEW |