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

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: . 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> 8 <script src="chrome://policy/strings.js"></script>
9 <script src="chrome://resources/js/cr.js"></script> 9 <script src="chrome://resources/js/cr.js"></script>
10 <script src="chrome://resources/js/cr/ui.js"></script> 10 <script src="chrome://resources/js/cr/ui.js"></script>
11 <script src="chrome://resources/js/local_strings.js"></script> 11 <script src="chrome://resources/js/local_strings.js"></script>
12 <script src="chrome://resources/js/i18n_template.js"></script> 12 <script src="chrome://resources/js/i18n_template.js"></script>
13 <script src="chrome://resources/js/i18n_process.js"></script> 13 <script src="chrome://resources/js/i18n_process.js"></script>
14 <script src="chrome://resources/js/jstemplate_compiled.js"></script> 14 <script src="chrome://resources/js/jstemplate_compiled.js"></script>
15 <script src="chrome://resources/js/util.js"></script> 15 <script src="chrome://resources/js/util.js"></script>
16 <script src="policy.js"></script> 16 <script src="policy.js"></script>
17 </head> 17 </head>
18 <body i18n-values=".style.fontFamily:fontfamily;"> 18 <body i18n-values=".style.fontFamily:fontfamily;">
19 <div class="header"> 19 <div class="header">
20 <h1 id="about-policy-title" i18n-content="policyTitle"></h1> 20 <h1 id="about-policy-title" i18n-content="policyTitle"></h1>
21 </div> 21 </div>
22 <div id="main-content"> 22 <div id="main-content">
23 <section id="description-section">
24 <p i18n-content="aboutPolicyDescription"></p>
25 </section>
26 <section id="status-section"> 23 <section id="status-section">
27 <div class="separator"> 24 <div class="separator">
28 <span id="status-title" i18n-content="statusPaneTitle"></span> 25 <span id="status-title" i18n-content="statusPaneTitle"></span>
29 <div id="fetch-policies"> 26 <div id="fetch-policies">
30 <button id="fetch-policies-button" i18n-content="fetchPoliciesText"> 27 <button id="fetch-policies-button" i18n-content="fetchPoliciesText">
31 </button> 28 </button>
32 </div> 29 </div>
33 </div> 30 </div>
34 <div id="status-pane"> 31 <div id="status-pane">
35 <fieldset class="status-box"> 32 <fieldset class="status-box">
(...skipping 22 matching lines...) Expand all
58 <span id="policies-title" i18n-content="policyTitle"></span> 55 <span id="policies-title" i18n-content="policyTitle"></span>
59 <div id="unsent-policies-control"> 56 <div id="unsent-policies-control">
60 <div id="checkbox-and-label"> 57 <div id="checkbox-and-label">
61 <input id="toggle-unsent-policies" type="checkbox"> 58 <input id="toggle-unsent-policies" type="checkbox">
62 <label for="toggle-unsent-policies" 59 <label for="toggle-unsent-policies"
63 i18n-content="showUnsentPoliciesText"></label> 60 i18n-content="showUnsentPoliciesText"></label>
64 </div> 61 </div>
65 </div> 62 </div>
66 <div id="search"> 63 <div id="search">
67 <input id="search-field" type="search" incremental 64 <input id="search-field" type="search" incremental
68 placeholder="Filter policies by name"> 65 i18n-values="placeholder: filterPoliciesText">
69 </div> 66 </div>
70 </div> 67 </div>
71 <div> 68 <div>
72 <div id="no-policies" jsdisplay="!anyPoliciesSet"> 69 <div id="no-policies" jsdisplay="!anyPoliciesSet">
73 <div id="no-policies-text" i18n-content="noPoliciesSet"></div> 70 <div id="no-policies-text" i18n-content="noPoliciesSet"></div>
74 </div> 71 </div>
75 <div id="policies" 72 <div id="policies"
76 jsvalues=".style.visibility: anyPoliciesSet ? 'visible': 'hidden'" > 73 jsvalues=".style.display: anyPoliciesSet ?
74 '': 'none'">
77 <table id="policy-table"> 75 <table id="policy-table">
78 <tr> 76 <tr>
79 <th i18n-content="appliesToTableHeader"></th> 77 <th i18n-content="appliesToTableHeader"></th>
80 <th i18n-content="policyLevelTableHeader"></th> 78 <th i18n-content="policyLevelTableHeader"></th>
81 <th i18n-content="policyNameTableHeader"></th> 79 <th i18n-content="policyNameTableHeader"></th>
82 <th i18n-content="policyValueTableHeader"></th> 80 <th i18n-content="policyValueTableHeader"></th>
83 <th i18n-content="policyStatusTableHeader"></th> 81 <th i18n-content="policyStatusTableHeader"></th>
84 </tr> 82 </tr>
85 <tr jsselect="policies" 83 <tr jsselect="policies"
86 jsvalues=".className: Policy.isPolicySet($this)? 84 jsvalues=".className: $this.set ?
87 'policy-set': 'policy-unset'; 85 'policy-set': 'policy-unset';
88 .style.display: Policy.shouldDisplayPolicy($this) ? 86 .style.display: Policy.shouldDisplayPolicy($this) ?
89 'table-row': 'none'"> 87 '': 'none'">
90 <td> 88 <td>
91 <span class="policy-type" jscontent="sourceType"></span> 89 <span class="policy-type" jscontent="sourceType"></span>
92 </td> 90 </td>
93 <td> 91 <td>
94 <span class="policy-level" jscontent="level"></span> 92 <span class="policy-level" jscontent="level"></span>
95 </td> 93 </td>
96 <td> 94 <td>
97 <span class="policy-name" jscontent="name"></span> 95 <span class="policy-name" jscontent="name"></span>
98 </td> 96 </td>
99 <td> 97 <td>
100 <span class="policy-value" jscontent="value"></span> 98 <span class="policy-value" jscontent="value"></span>
101 </td> 99 </td>
102 <td> 100 <td>
103 <span class="policy-status" jscontent="status"></span> 101 <span class="policy-status" jscontent="status"></span>
104 </td> 102 </td>
105 </tr> 103 </tr>
106 </table> 104 </table>
107 </div> 105 </div>
108 </div> 106 </div>
109 </div> 107 </div>
110 </section> 108 </section>
111 </div> 109 </div>
112 </body> 110 </body>
113 </html> 111 </html>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698