* Delete all things related to banner images and styles (in code) * Add a new test to check that the banner is showing correctly * Update the specs accordingly to match the changes Update dev_seed to set a random background_color and a font_color for banners (and remove everything about image and style) Add a rake task to migrate the banner style to backgroun_color and font_color (so that the banners have the same colors than before)
8 lines
313 B
Plaintext
8 lines
313 B
Plaintext
<% banner = @banners.sample %>
|
|
<div class="banner" style="background-color:<%= banner.background_color %>">
|
|
<%= link_to banner.target_url do %>
|
|
<h2 style="color:<%= banner.font_color %>"><%=banner.title %></h2>
|
|
<h3 style="color:<%= banner.font_color %>"><%=banner.description %></h3>
|
|
<% end %>
|
|
</div>
|