2014-09-30 02:26:12 +00:00
|
|
|
<style>
|
2017-09-12 21:01:08 +00:00
|
|
|
<% # give text the color of the metacode by adding the class .metacodeColor{metacode-id} %>
|
2014-09-30 02:26:12 +00:00
|
|
|
<% Metacode.all.each do |m| %>
|
|
|
|
<% if m.color %>
|
2017-09-12 21:01:08 +00:00
|
|
|
<%= ".metacodeColor" + m.id.to_s + "{" %>
|
2017-09-08 20:58:17 +00:00
|
|
|
<%= "color:" + m.color + " !important;" %>
|
2014-09-30 02:26:12 +00:00
|
|
|
<%= "}" %>
|
|
|
|
<% end %>
|
|
|
|
<% end %>
|
2017-09-08 20:58:17 +00:00
|
|
|
</style>
|