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

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: . 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
index 8eb63e153d81f52532bfc365b2f4af266377fbff..db547b42f70ff34458f456f40163c63f4444c4f2 100644
--- a/chrome/browser/resources/policy.html
+++ b/chrome/browser/resources/policy.html
@@ -20,9 +20,6 @@
<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 class="separator">
<span id="status-title" i18n-content="statusPaneTitle"></span>
@@ -65,7 +62,7 @@
</div>
<div id="search">
<input id="search-field" type="search" incremental
- placeholder="Filter policies by name">
+ i18n-values="placeholder: filterPoliciesText">
</div>
</div>
<div>
@@ -73,7 +70,8 @@
<div id="no-policies-text" i18n-content="noPoliciesSet"></div>
</div>
<div id="policies"
- jsvalues=".style.visibility: anyPoliciesSet ? 'visible': 'hidden'">
+ jsvalues=".style.display: anyPoliciesSet ?
+ '': 'none'">
<table id="policy-table">
<tr>
<th i18n-content="appliesToTableHeader"></th>
@@ -82,11 +80,11 @@
<th i18n-content="policyValueTableHeader"></th>
<th i18n-content="policyStatusTableHeader"></th>
</tr>
- <tr jsselect="policies"
- jsvalues=".className: Policy.isPolicySet($this)?
+ <tr jsselect="policies"
+ jsvalues=".className: $this.set ?
'policy-set': 'policy-unset';
.style.display: Policy.shouldDisplayPolicy($this) ?
- 'table-row': 'none'">
+ '': 'none'">
<td>
<span class="policy-type" jscontent="sourceType"></span>
</td>

Powered by Google App Engine
This is Rietveld 408576698