[Rt-commit] rt branch, 4.4/gray-out-no-value, created. rt-4.2.11-135-gfd224a6
Dustin Graves
dustin at bestpractical.com
Mon Aug 10 12:00:34 EDT 2015
The branch, 4.4/gray-out-no-value has been created
at fd224a64856abb5ded8bac9b84a0258efbdb38d4 (commit)
- Log -----------------------------------------------------------------
commit fd224a64856abb5ded8bac9b84a0258efbdb38d4
Author: Dustin Graves <dustin at bestpractical.com>
Date: Mon Aug 10 15:52:23 2015 +0000
Gray out custom fields with "(no value)"
Add class 'no-value' to fields without value with grey color in css
Fixes: I#31130
diff --git a/share/html/Elements/ShowCustomFields b/share/html/Elements/ShowCustomFields
index 7f90fbf..2853264 100644
--- a/share/html/Elements/ShowCustomFields
+++ b/share/html/Elements/ShowCustomFields
@@ -56,7 +56,7 @@
% next if $HideEmpty and not $count;
<tr id="CF-<%$CustomField->id%>-ShowRow">
<td class="label"><% $CustomField->Name %>:</td>
- <td class="value">
+ <td class="value<% $count ? '' : ' no-value' %>">
% unless ( $count ) {
<i><&|/l&>(no value)</&></i>
% } elsif ( $count == 1 ) {
diff --git a/share/static/css/base/forms.css b/share/static/css/base/forms.css
index 5e2c565..2e37a7e 100644
--- a/share/static/css/base/forms.css
+++ b/share/static/css/base/forms.css
@@ -24,6 +24,10 @@ form {
}
+.value.no-value {
+ color: #666;
+}
+
div.button-row {
-----------------------------------------------------------------------
More information about the rt-commit
mailing list