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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/resources/policy.html
diff --git a/chrome/browser/resources/policy.html b/chrome/browser/resources/policy.html
new file mode 100644
index 0000000000000000000000000000000000000000..230a5d66c50637c1d0865907dff77f2435764841
--- /dev/null
+++ b/chrome/browser/resources/policy.html
@@ -0,0 +1,123 @@
+<!DOCTYPE HTML>
+<html i18n-values="dir:textdirection">
+<head>
+<meta charset="utf-8">
+<title i18n-content="policyTitle"></title>
+<link rel="stylesheet" href="chrome://resources/css/button.css">
+<link rel="stylesheet" href="policy.css">
+<script src="chrome://policy/strings.js"></script>
+<script src="chrome://resources/js/cr.js"></script>
+<script src="chrome://resources/js/cr/ui.js"></script>
+<script src="chrome://resources/js/local_strings.js"></script>
+<script src="chrome://resources/js/i18n_template.js"></script>
+<script src="chrome://resources/js/i18n_process.js"></script>
+<script src="chrome://resources/js/jstemplate_compiled.js"></script>
+<script src="chrome://resources/js/util.js"></script>
+<script src="policy.js"></script>
+</head>
+<body i18n-values=".style.fontFamily:fontfamily;">
+ <div class="header">
+ <h1 id="about-policy-title" i18n-content="policyTitle"></h1>
+ </div>
+ <div id="main-content">
+ <section id="description-section">
+ <p i18n-content="aboutPolicyDescription"></p>
+ </section>
+ <section id="status-section">
+ <div id="status-separator">
+ <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.
+ <tbody>
+ <tr>
+ <td id="status-title" i18n-content="statusPaneTitle"></td>
+ <td id="fetch-policies-button">
+ <button i18n-content="fetchPoliciesText"></button>
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+ <div id="status-pane">
+ <fieldset class="status-box">
+ <legend i18n-content="devicePoliciesBoxTitle"></legend>
+ <ul>
+ <li i18n-content="enrollmentDomainText"></li>
+ <li i18n-content="lastFetchedText"></li>
+ <li i18n-content="fetchIntervalText"></li>
+ <li i18n-content="serverStatusText"></li>
+ </ul>
+ </fieldset>
+ <fieldset class="status-box">
+ <legend i18n-content="userPoliciesBoxTitle"></legend>
+ <ul>
+ <li i18n-content="enrollmentDomainText"></li>
+ <li i18n-content="lastFetchedText"></li>
+ <li i18n-content="fetchIntervalText"></li>
+ <li i18n-content="serverStatusText"></li>
+ </ul>
+ </fielset>
+ </div>
+ </section>
+ <section id="policies-section">
+ <div id="policiesTemplate">
+ <div id="policies-separator">
+ <table class="separator-table">
+ <tbody>
+ <tr>
+ <td id="policies-title" i18n-content="policyTitle"></td>
+ <td id="unsent-policies">
+ <input id="toggle-unsent-policies" type="checkbox">
+ <span i18n-content="showUnsentPoliciesText"></span>
+ </td>
+ <td id="search">
+ <input id="search-field" type="search" incremental
+ placeholder="Filter policies by name">
+ </td>
+ </tr>
+ </tbody>
+ </table>
+ </div>
+
James Hawkins 2011/08/10 17:38:08 Remove blank lines.
simo 2011/08/11 17:12:53 Done.
+ <div>
+ <div id="no-policies" jsdisplay="policies.length === 0">
+ <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.
+ </div>
+
+ <div jsdiplay="policies.length > 0">
+ <div id="policies">
+ <table id="policy-table">
+ <tr>
+ <th i18n-content="appliesToTableHeader"></th>
+ <th i18n-content="policyLevelTableHeader"></th>
+ <th i18n-content="policyNameTableHeader"></th>
+ <th i18n-content="policyValueTableHeader"></th>
+ <th i18n-content="policyStatusTableHeader"></th>
+ </tr>
+ <tr jsselect="policies" jsvalues=".className:isPolicySet($this)?
+ 'policy-set' : 'policy-unset';
+ .style.display:shouldDisplayPolicy($this) ?
+ 'table-row' : 'none'">
+ <td>
+ <span class="policy-type" jscontent="source_type"></span>
+ </td>
+ <td>
+ <span class="policy-level" jscontent="level"></span>
+ </td>
+ <td>
+ <span class="policy-name" jscontent="name"></span>
+ </td>
+ <td>
+ <span class="policy-value" jscontent="value"></span>
+ </td>
+ <td>
+ <span class="policy-status" jscontent="status"></span>
+ </td>
+ </tr>
+ </table>
+ </div>
+ </div>
+ </div>
+ </div>
+ </section>
+ </div>
+</body>
+</html>

Powered by Google App Engine
This is Rietveld 408576698