Top Templates

<% @templates.each do |template| %>

<%=link_to template.title, template %>

Author: <%= template.author %>

<%=image_tag template.preview.thumb.url%>

<%= link_to 'View details »'.html_safe ,template, :class=>"btn btn-primary"%>

<%end%>
<%= link_to 'More »'.html_safe,templates_path, :class=>"btn btn-danger"%>

Top Modules

<% @extensions.each do |extension| %>

<%=link_to extension.title, extension %>

Author: <%= extension.author %>

<%=image_tag extension.preview.thumb.url%>

<%= link_to 'View details »'.html_safe ,extension, :class=>"btn btn-primary"%>

<%end%>
<%= link_to 'More »'.html_safe,extensions_path, :class=>"btn btn-danger"%>