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

Side by Side Diff: chrome/browser/resources/policy.html

Issue 7828042: Implemented status section functionality for about:policy. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: . Created 9 years, 3 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 <!DOCTYPE HTML> 1 <!DOCTYPE HTML>
2 <html i18n-values="dir:textdirection"> 2 <html i18n-values="dir:textdirection">
3 <head> 3 <head>
4 <meta charset="utf-8"> 4 <meta charset="utf-8">
5 <title i18n-content="policyTitle"></title> 5 <title i18n-content="policyTitle"></title>
6 <link rel="stylesheet" href="chrome://resources/css/button.css"> 6 <link rel="stylesheet" href="chrome://resources/css/button.css">
7 <link rel="stylesheet" href="policy.css"> 7 <link rel="stylesheet" href="policy.css">
8 <script src="chrome://policy/strings.js"></script>
9 <script src="chrome://resources/js/cr.js"></script>
10 <script src="chrome://resources/js/cr/ui.js"></script>
11 <script src="chrome://resources/js/local_strings.js"></script>
12 <script src="chrome://resources/js/i18n_template.js"></script>
13 <script src="chrome://resources/js/i18n_process.js"></script>
14 <script src="chrome://resources/js/jstemplate_compiled.js"></script>
15 <script src="chrome://resources/js/util.js"></script>
16 <script src="policy.js"></script>
17 </head> 8 </head>
18 <body i18n-values=".style.fontFamily:fontfamily;"> 9 <body i18n-values=".style.fontFamily:fontfamily; .style.fontSize:fontsize">
19 <div class="header"> 10 <div class="header">
20 <h1 id="about-policy-title" i18n-content="policyTitle"></h1> 11 <h1 id="about-policy-title" i18n-content="policyTitle"></h1>
21 </div> 12 </div>
22 <div id="main-content"> 13 <div id="main-content">
23 <section id="status-section"> 14 <div id="dataTemplate">
James Hawkins 2011/09/05 22:10:38 IDs should be dash-form.
simo 2011/09/07 12:18:16 Done.
24 <div class="separator"> 15 <section id="status-section" jsselect="status"
25 <span id="status-title" i18n-content="statusPaneTitle"></span> 16 style="display: none" jsdisplay="displayStatusSection">
James Hawkins 2011/09/05 22:10:38 Don't specify style in HTML.
simo 2011/09/07 12:18:16 Done.
26 <div id="fetch-policies"> 17 <div class="separator">
27 <button id="fetch-policies-button" i18n-content="fetchPoliciesText"> 18 <span id="status-title" i18n-content="statusPaneTitle"></span>
28 </button> 19 <div id="fetch-policies">
20 <button id="fetch-policies-button" i18n-content="fetchPoliciesText">
21 </button>
22 </div>
29 </div> 23 </div>
30 </div> 24 <div id="status-pane">
31 <div id="status-pane"> 25 <fieldset class="status-box">
32 <fieldset class="status-box"> 26 <legend i18n-content="devicePoliciesBoxTitle"></legend>
33 <legend i18n-content="devicePoliciesBoxTitle"></legend> 27 <ul>
34 <ul> 28 <li>
35 <li i18n-content="enrollmentDomainText"></li> 29 <span i18n-content="enrollmentDomainText"></span>
36 <li i18n-content="lastFetchedText"></li> 30 <span jscontent="devicePolicyDomain"></span>
37 <li i18n-content="fetchIntervalText"></li> 31 </li>
38 <li i18n-content="serverStatusText"></li> 32 <li>
39 </ul> 33 <span i18n-content="clientIdText"></span>
40 </fieldset> 34 <span jscontent="deviceId"></span>
41 <fieldset class="status-box"> 35 </li>
42 <legend i18n-content="userPoliciesBoxTitle"></legend> 36 <li>
43 <ul> 37 <span i18n-content="lastFetchedText"></span>
44 <li i18n-content="enrollmentDomainText"></li> 38 <span id="device-last-fetch-time"
45 <li i18n-content="lastFetchedText"></li> 39 jscontent="deviceLastFetchTime"></span>
James Hawkins 2011/09/05 22:10:38 Wrapped lines should be 4 space indented from the
simo 2011/09/07 12:18:16 Done.
46 <li i18n-content="fetchIntervalText"></li> 40 </li>
47 <li i18n-content="serverStatusText"></li> 41 <li>
48 </ul> 42 <span i18n-content="fetchIntervalText"></span>
49 </fielset> 43 <span jscontent="deviceFetchInterval"></span>
50 </div> 44 </li>
51 </section> 45 <li>
52 <section id="policies-section"> 46 <span i18n-content="serverStatusText"></span>
53 <div id="policiesTemplate"> 47 <span jscontent="deviceStatusMessage"></span>
48 </li>
49 </ul>
50 </fieldset>
51 <fieldset class="status-box">
52 <legend i18n-content="userPoliciesBoxTitle"></legend>
53 <ul>
54 <li>
55 <span i18n-content="usernameText"></span>
56 <span jscontent="user"></span>
57 </li>
58 <li>
59 <span i18n-content="clientIdText"></span>
60 <span jscontent="userId"></span>
61 </li>
62 <li>
63 <span i18n-content="lastFetchedText"></span>
64 <span id="user-last-fetch-time"
65 jscontent="userLastFetchTime"></span>
66 </li>
67 <li>
68 <span i18n-content="fetchIntervalText"></span>
69 <span jscontent="userFetchInterval"></span>
70 </li>
71 <li>
72 <span i18n-content="serverStatusText"></span>
73 <span jscontent="userStatusMessage"></span>
74 </li>
75 </ul>
76 </fielset>
77 </div>
78 </section>
79 <section id="policies-section">
54 <div class="separator"> 80 <div class="separator">
55 <span id="policies-title" i18n-content="policyTitle"></span> 81 <span id="policies-title" i18n-content="policyTitle"></span>
56 <div id="unsent-policies-control"> 82 <div id="unsent-policies-control">
57 <div id="checkbox-and-label"> 83 <div id="checkbox-and-label">
58 <input id="toggle-unsent-policies" type="checkbox"> 84 <input id="toggle-unsent-policies" type="checkbox">
59 <label for="toggle-unsent-policies" 85 <label for="toggle-unsent-policies"
60 i18n-content="showUnsentPoliciesText"></label> 86 i18n-content="showUnsentPoliciesText"></label>
61 </div> 87 </div>
62 </div> 88 </div>
63 <div id="search"> 89 <div id="search">
64 <input id="search-field" type="search" incremental 90 <input id="search-field" type="search" incremental
65 i18n-values="placeholder: filterPoliciesText"> 91 i18n-values="placeholder: filterPoliciesText">
66 </div> 92 </div>
67 </div> 93 </div>
68 <div> 94 <div>
69 <div id="no-policies" jsdisplay="!anyPoliciesSet"> 95 <div id="no-policies" stylchre="display: none"
James Hawkins 2011/09/05 22:10:38 What is stylechre?
simo 2011/09/07 12:18:16 A typo.
96 jsdisplay="!anyPoliciesSet">
70 <div id="no-policies-text" i18n-content="noPoliciesSet"></div> 97 <div id="no-policies-text" i18n-content="noPoliciesSet"></div>
71 </div> 98 </div>
72 <div id="policies" 99 <div id="policies"
73 jsvalues=".style.display: anyPoliciesSet ? 100 jsvalues=".style.display: anyPoliciesSet ?
74 '': 'none'"> 101 '': 'none'">
75 <table id="policy-table"> 102 <table id="policy-table">
76 <tr> 103 <tr>
77 <th i18n-content="appliesToTableHeader"></th> 104 <th i18n-content="appliesToTableHeader"></th>
78 <th i18n-content="policyLevelTableHeader"></th> 105 <th i18n-content="policyLevelTableHeader"></th>
79 <th i18n-content="policyNameTableHeader"></th> 106 <th i18n-content="policyNameTableHeader"></th>
80 <th i18n-content="policyValueTableHeader"></th> 107 <th i18n-content="policyValueTableHeader"></th>
81 <th i18n-content="policyStatusTableHeader"></th> 108 <th i18n-content="policyStatusTableHeader"></th>
82 </tr> 109 </tr>
83 <tr jsselect="policies" 110 <tr jsselect="policies"
84 jsvalues=".className: $this.set ? 111 jsvalues=".className: $this.set ?
85 'policy-set': 'policy-unset'; 112 'policy-set': 'policy-unset';
86 .style.display: Policy.shouldDisplayPolicy($this) ? 113 .style.display: Policy.shouldDisplayPolicy($this) ?
87 '': 'none'"> 114 '': 'none'">
88 <td> 115 <td>
89 <span class="policy-type" jscontent="sourceType"></span> 116 <span class="policy-type" jscontent="sourceType"></span>
90 </td> 117 </td>
91 <td> 118 <td>
92 <span class="policy-level" jscontent="level"></span> 119 <span class="policy-level" jscontent="level"></span>
93 </td> 120 </td>
94 <td> 121 <td class="collapsed">
95 <span class="policy-name" jscontent="name"></span> 122 <span class="policy-name" jscontent="name"></span>
96 </td> 123 </td>
97 <td> 124 <td>
98 <span class="policy-value" jscontent="value"></span> 125 <div class="text-container collapsed">
126 <span class="cellText" jscontent="value"></span>
James Hawkins 2011/09/05 22:10:38 Classes use dash-form.
simo 2011/09/07 12:18:16 Done.
127 </div>
128 <a class="toggler expand" style="display: none"
James Hawkins 2011/09/05 22:10:38 Use hidden instead of display: none.
simo 2011/09/07 12:18:16 But won't the togglers take up space when they are
129 jsdisplay="Policy.shouldShowExpand(this)"
130 i18n-content="showMoreText"></a>
131 <a class="toggler collapse" style="display: none"
132 i18n-content="hideText"></a>
99 </td> 133 </td>
100 <td> 134 <td>
101 <span class="policy-status" jscontent="status"></span> 135 <div class="text-container collapsed">
136 <span class="cellText" jscontent="status"></span>
137 </div>
138 <a class="toggler expand" style="display: none"
139 jsdisplay="Policy.shouldShowExpand(this)"
140 i18n-content="showMoreText"></a>
141 <a class="toggler collapse" style="display: none"
142 i18n-content="hideText"></a>
102 </td> 143 </td>
103 </tr> 144 </tr>
104 </table> 145 </table>
105 </div> 146 </div>
106 </div> 147 </div>
107 </div> 148 </section>
108 </section> 149 </div>
109 </div> 150 </div>
151 <script src="chrome://policy/strings.js"></script>
James Hawkins 2011/09/05 22:10:38 Why did you move these? Scripts should be sourced
simo 2011/09/07 12:18:16 Because I was looking at other html files like plu
152 <script src="chrome://resources/js/cr.js"></script>
153 <script src="chrome://resources/js/cr/ui.js"></script>
154 <script src="chrome://resources/js/i18n_template.js"></script>
155 <script src="chrome://resources/js/i18n_process.js"></script>
156 <script src="chrome://resources/js/jstemplate_compiled.js"></script>
157 <script src="chrome://resources/js/util.js"></script>
158 <script src="policy.js"></script>
James Hawkins 2011/09/05 22:10:38 Indentation off.
simo 2011/09/07 12:18:16 Done.
110 </body> 159 </body>
111 </html> 160 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698