Sha256: fc5f442e53434987b89a93cd45c3d32d1097d33eeee91e9ea95cb9bd89a27a74

Contents?: true

Size: 1.59 KB

Versions: 3

Compression:

Stored size: 1.59 KB

Contents

<%= row do %>
<%= span(12) do %>
    <section>
      <h1 class="section-title">
        <%= @product.title %>
      </h1>
    </section> 
  <% end %>
<% end %>
<%= row do %>
  <%= span(4) do %>
    <section>
    <%= image_tag @product.photo.url %>
    </section>
    <h3><%= t(:other_products, :scope => "site", :default => "Other products") %></h3>
    <ul class="thumbnails">
      <% (@product.line.products - [@product]).each do |product| %>
          <li>
            <%= link_to page_url_for(product), :title => product.title, :rel => 'tooltip', :class => "thumbnail" do %>
            <%= image_tag product.index_photo.url(:icon), :height => "60", :width => "60" %>
            <% end %>
          </li>
                  
      <% end %>
      
    </ul>
  <% end %>
  <%= span(8) do %>
      <section>
        <div>
          <%= raw @product.text %>
        </div>
      </section>
      <section>
        <h3><%= t(:recipes_with, :scope => "site", :default => "Recipes with") %> <%= @product.title %></h3>
        <% @product.recipes.in_groups_of(4, false).each do |recipes| %>
          <section>
            <%= row do %>
          
              <% recipes.each do |recipe| %>
                  <%= span(4) do %>
                  <%= link_to page_url_for(recipe), :title => recipe.title, :rel => 'tooltip', :class => "image-link" do %>
                    <%= image_tag recipe.image.url(:thumb) %>
                  <% end %>
                  <% end %>
              <% end %>
              
            <% end %>
            
          </section>

        <% end %>
        
      </section>
  <% end %>
<% end %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
fullstack-cms-0.2.24 lib/generators/fullstack/cms/templates/rails/app/views/site/site/product.html.erb
fullstack-cms-0.2.23 lib/generators/fullstack/cms/templates/rails/app/views/site/site/product.html.erb
fullstack-cms-0.2.22 lib/generators/fullstack/cms/templates/rails/app/views/site/site/product.html.erb