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

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

Issue 7585036: First CL for the about:policy page. This only implements the policy section of the page. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed the map wrapper and wrapped the javascript functions into an object. Created 9 years, 4 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
(Empty)
1 <!DOCTYPE HTML>
2 <html i18n-values="dir:textdirection">
3 <head>
4 <meta charset="utf-8">
5 <title i18n-content="policyTitle"></title>
6 <link rel="stylesheet" href="chrome://resources/css/button.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>
18 <body i18n-values=".style.fontFamily:fontfamily;">
19 <div class="header">
20 <h1 id="about-policy-title" i18n-content="policyTitle"></h1>
21 </div>
22 <div id="main-content">
23 <section id="description-section">
24 <p i18n-content="aboutPolicyDescription"></p>
25 </section>
26 <section id="status-section">
27 <div id="status-separator">
28 <table class="separator-table">
James Hawkins 2011/08/10 17:38:08 Is this really tabular data?
simo 2011/08/11 17:12:53 No, I guess not. I have changed this now.
29 <tbody>
30 <tr>
31 <td id="status-title" i18n-content="statusPaneTitle"></td>
32 <td id="fetch-policies-button">
33 <button i18n-content="fetchPoliciesText"></button>
34 </td>
35 </tr>
36 </tbody>
37 </table>
38 </div>
39 <div id="status-pane">
40 <fieldset class="status-box">
41 <legend i18n-content="devicePoliciesBoxTitle"></legend>
42 <ul>
43 <li i18n-content="enrollmentDomainText"></li>
44 <li i18n-content="lastFetchedText"></li>
45 <li i18n-content="fetchIntervalText"></li>
46 <li i18n-content="serverStatusText"></li>
47 </ul>
48 </fieldset>
49 <fieldset class="status-box">
50 <legend i18n-content="userPoliciesBoxTitle"></legend>
51 <ul>
52 <li i18n-content="enrollmentDomainText"></li>
53 <li i18n-content="lastFetchedText"></li>
54 <li i18n-content="fetchIntervalText"></li>
55 <li i18n-content="serverStatusText"></li>
56 </ul>
57 </fielset>
58 </div>
59 </section>
60 <section id="policies-section">
61 <div id="policiesTemplate">
62 <div id="policies-separator">
63 <table class="separator-table">
64 <tbody>
65 <tr>
66 <td id="policies-title" i18n-content="policyTitle"></td>
67 <td id="unsent-policies">
68 <input id="toggle-unsent-policies" type="checkbox">
69 <span i18n-content="showUnsentPoliciesText"></span>
70 </td>
71 <td id="search">
72 <input id="search-field" type="search" incremental
73 placeholder="Filter policies by name">
74 </td>
75 </tr>
76 </tbody>
77 </table>
78 </div>
79
James Hawkins 2011/08/10 17:38:08 Remove blank lines.
simo 2011/08/11 17:12:53 Done.
80 <div>
81 <div id="no-policies" jsdisplay="policies.length === 0">
82 <div i18n-content="noPoliciesSet">NO_POLICIES_RECEIVED</div>
James Hawkins 2011/08/10 17:38:08 Did you intend to leave this string in the div?
simo 2011/08/11 17:12:53 No. Done.
83 </div>
84
85 <div jsdiplay="policies.length > 0">
86 <div id="policies">
87 <table id="policy-table">
88 <tr>
89 <th i18n-content="appliesToTableHeader"></th>
90 <th i18n-content="policyLevelTableHeader"></th>
91 <th i18n-content="policyNameTableHeader"></th>
92 <th i18n-content="policyValueTableHeader"></th>
93 <th i18n-content="policyStatusTableHeader"></th>
94 </tr>
95 <tr jsselect="policies" jsvalues=".className:isPolicySet($this)?
96 'policy-set' : 'policy-unset';
97 .style.display:shouldDisplayPolicy($this) ?
98 'table-row' : 'none'">
99 <td>
100 <span class="policy-type" jscontent="source_type"></span>
101 </td>
102 <td>
103 <span class="policy-level" jscontent="level"></span>
104 </td>
105 <td>
106 <span class="policy-name" jscontent="name"></span>
107 </td>
108 <td>
109 <span class="policy-value" jscontent="value"></span>
110 </td>
111 <td>
112 <span class="policy-status" jscontent="status"></span>
113 </td>
114 </tr>
115 </table>
116 </div>
117 </div>
118 </div>
119 </div>
120 </section>
121 </div>
122 </body>
123 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698