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