blob: 698f99181bd61705071e80530d6c058d6147ce5b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
<!DOCTYPE HTML>
<html i18n-values="dir:textdirection;">
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="flags.css"/>
<script src="chrome://flags/flags.js"></script>
<script src="chrome://flags/strings.js"></script>
<script src="chrome://resources/js/i18n_template.js"></script>
</head>
<body i18n-values=".style.fontFamily:fontfamily;.style.fontSize:fontsize">
<div id="body-container" style="visibility:hidden">
<div id="header"><h1 i18n-content="flagsLongTitle">TITLE</h1></div>
<div id="blurb-container">
<span id="blurb-warning" i18n-content="flagsWarningHeader">WARNING</span>
<span i18n-content="flagsBlurb">WARNING TEXT</span>
</div>
<div id="flagsExperimentTemplate">
<div id="container" class="vbox-container">
<div id="top" class="wbox">
<div class="section-header">
<table cellpadding="0" cellspacing="0"><tr valign="center">
<td>
<span class="section-header-title" i18n-content="flagsTableTitle"
>TITLE</span>
</td>
</tr></table>
</div>
</div>
</div>
<div class="content">
<div class="experiment-name no-experiments"
jsdisplay="flagsExperiments.length === 0">
<div i18n-content="flagsNoExperimentsAvailable"
>NO_EXPERIMENTS_ARE_AVAILABLE</div>
</div>
<div jsdisplay="flagsExperiments.length > 0">
<div class="experiment" jsselect="flagsExperiments">
<table width="100%" cellpadding="2" cellspacing="0">
<!-- TODO(mkwst): This doesn't work exactly as expected for multivalue
experiments. See http://crbug.com/73730 -->
<tr jsvalues="class:enabled ? 'experiment-enabled' : 'experiment-disabled'">
<td valign="top">
<div class="experiment-text">
<div>
<span class="experiment-name"
jscontent="name">NAME</span>
<div>
<span jsvalues=".innerHTML:description">
</div>
<div jsdisplay="choices && choices.length > 0">
<select
class="experiment-select"
jsvalues=".internal_name:internal_name;.disabled:!enabled">
<option jsvalues=".selected:selected"
jsselect="choices"
jscontent="description">NAME
</option>
</select>
</div>
</div>
</div>
<div class="experiment-actions">
<!-- If enabled isn't set (i.e. in multi_type options),
then both jsdisplay tests fail, and we get no
rendering from this section. -->
<span>
<a
class="experiment-disable-link"
jsvalues=".internal_name:internal_name"
jsdisplay="enabled"
href="#"
i18n-content="disable"
>DISABLE</a>
<a
class="experiment-enable-link"
jsvalues=".internal_name:internal_name"
jsdisplay="!enabled"
href="#"
i18n-content="enable"
>ENABLE</a>
</span>
</div>
</td>
</tr>
</table>
</div>
</div>
<div class="needs-restart" jsdisplay="needsRestart">
<div i18n-content="flagsRestartNotice">NEEDS_RESTART</div>
<button class="experiment-restart-button"
type="button"
i18n-content="flagsRestartButton">RESTART</button>
</div>
</div>
</div>
</div>
<script src="chrome://resources/js/i18n_process.js"></script>
<script src="chrome://resources/js/jstemplate_compiled.js"></script>
</body>
</html>
|