module-and-template-store/app/views/extensions/index.html.erb

9 lines
397 B
Plaintext

<div class="row">
<% @extensions.each do |extension| %>
<div class="col-lg-4">
<h3><%=link_to extension.title, extension %></h3>
<p><b>Author:</b> <%= extension.author %></p>
<p><%=image_tag extension.preview.thumb.url%></p>
<p><%= link_to 'View details &raquo;'.html_safe ,extension, :class=>"btn btn-primary"%></p>
</div>
<%end%>