Admin option to add banners and show banners

This commit is contained in:
MaiteHdezRivas
2016-05-19 12:47:50 +02:00
parent b375e696c0
commit 3b2bfc46cf
41 changed files with 760 additions and 6 deletions

View File

@@ -0,0 +1,9 @@
<% banner = @banners.sample%>
<div class="<%= banner.style %>">
<div class="<%= banner.image %>">
<%= link_to banner.target_url do %>
<h2><%=banner.title%></h2>
<h3><%=banner.description%></h3>
<% end %>
</div>
</div>