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

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: Change in policy.js 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..463de66598587617f558aed13399aa1a19e91b03 100644
--- a/chrome/browser/resources/policy.html
+++ b/chrome/browser/resources/policy.html
@@ -65,7 +65,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 +73,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 +83,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