My site allows users to change the backround color (among other things)
for
their page. These values are stored in database.
Their choices (or the default) are placed on the page using a
block
at the end of the block in the layout. Here is what the style
block
looks like.
<% if !!school %>
<style>
div#header {
color: #<%= (!!school.school_name_color and
!school.school_name_color.blank?) ? school.school_name_color : “ffffff”
%>;
background-color: #<%= (!!school.header_color and
!school.header_color.blank?) ? school.header_color : “6FA9C7” %>;
}
div#header a {
color: #<%= (!!school.school_name_color and
!school.school_name_color.blank?) ? school.school_name_color : “ffffff”
%>;
}
</style>
<% end %>
Can anyone suggest how to verify that the
the
css attribute color: #ffffff or color: #<% school.header_color%>.
Best,
Tom