Admin option to add banners and show banners
This commit is contained in:
9
app/views/shared/_banner.html.erb
Normal file
9
app/views/shared/_banner.html.erb
Normal 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>
|
||||
Reference in New Issue
Block a user