10 lines
266 B
JavaScript
10 lines
266 B
JavaScript
<style>
|
|
{ # give text the color of the metacode by adding the className .metacodeColor{metacode-id} }
|
|
{ Metacode.all.each do |m| }
|
|
{ if m.color }
|
|
{ ".metacodeColor" + m.id.to_s + "{" }
|
|
{ "color:" + m.color + " !important;" }
|
|
{ "}" }
|
|
{ end }
|
|
{ end }
|
|
</style>
|