<commit_before><% content_for :sidebar do %>
  <%= hook :taxon_sidebar_navigation do %>
    <%= render :partial => "shared/taxonomies" %>
  <% end %>
<% end %>

<script type="text/javascript">
  $(function() {
    $('#description_add_review_link').click(function() {
      show_add_review_container();
      $('#add_review_link').slideUp();
    });

    /*var product_variants = $('#product-variants').detach();
     if (product_variants.length > 0) {
     $('#product-variants-container').append(product_variants);
     }*/

    $('#add_review_link').click(function(e) {
      show_add_review_container();
      $(this).slideUp();
      e.preventDefault();
    });
  });

  function show_add_review_container() {
    $('#add_review_container').slideDown();
  }
</script>

<% @body_id = 'product-details' %>

<h1><%= @product.name %></h1>
<div id="product-show">
  <div id="product-images">
    <%= hook :product_images do %>
      <div id="main-image">
        <%= render 'image' %>
      </div>

    <% end %>

    <div id="product-variants-container">
    </div>
  </div>

  <div id="product-description">
    <%= hook :cart_form do %>
      <div id="cart-form">
        <%= render 'cart_form' %>
      </div>
    <% end %>

    <div id="product_description_menu">
      <table cellpadding="0" cellspacing="0" style="width: 300px">
        <tr>
          <td><%= render 'shared/rating', :product => @product %></td>
          <td><%= render 'compare' if @comparable_products %></td>
        </tr>
        <tr>
          <td><a href="#reviews_anc">Отзывы(<%= @product.reviews.approved.count %>)</a></td>
          <td><a id="description_add_review_link" href="#reviews_anc">Добавить отзыв</a></td>
        </tr>
      </table>
    </div>

    <div id="product_like_buttons">
      <script type="text/javascript" src="//yandex.st/share/share.js" charset="utf-8"></script>
      <div class="yashare-auto-init" data-yashareL10n="ru" data-yashareType="none" data-yashareQuickServices="vkontakte,facebook,twitter"></div>
      <!--  <%= image_tag 'facebook_like.png' %> <%= image_tag 'vkontakte_like.png' %> <%= image_tag 'tweet_like.png' %> -->
    </div>

    <div id="thumbnails">
      <%= render 'thumbnails', :product => @product %>
    </div>

  </div>
</div>

<div style="clear: both" id="product_description">
  <%= hook :product_description do %>
    <h3>Описание:</h3>

    <div class="description-content">
      <%= product_description(@product) rescue t("product_has_no_description") %>
    </div>
  <% end %>
</div>

<div style="clear: both" id="product_parameters">
  <%= hook :product_properties do %>
    <%= render 'properties' %>
  <% end %>
</div>

<% if defined?(RecentlyViewedConfiguration) && get_recently_viewed_products.count > 1 %>
  <div style="clear: both">
    <h3>Вы недавно смотрели:</h3>

    <ul class="similar_product_list">
      <% get_recently_viewed_products.each do |p| %>
        <% next if p.id == @product.id %>
        <li>
          <div class="similar_product_image_container">
            <%= small_image(p) %>
          </div>
          <div><commit_msg>Если отсутствует описание выводится соответвующее сообщение<commit_after><% content_for :sidebar do %>
  <%= hook :taxon_sidebar_navigation do %>
    <%= render :partial => "shared/taxonomies" %>
  <% end %>
<% end %>

<script type="text/javascript">
  $(function() {
    $('#description_add_review_link').click(function() {
      show_add_review_container();
      $('#add_review_link').slideUp();
    });

    /*var product_variants = $('#product-variants').detach();
     if (product_variants.length > 0) {
     $('#product-variants-container').append(product_variants);
     }*/

    $('#add_review_link').click(function(e) {
      show_add_review_container();
      $(this).slideUp();
      e.preventDefault();
    });
  });

  function show_add_review_container() {
    $('#add_review_container').slideDown();
  }
</script>

<% @body_id = 'product-details' %>

<h1><%= @product.name %></h1>
<div id="product-show">
  <div id="product-images">
    <%= hook :product_images do %>
      <div id="main-image">
        <%= render 'image' %>
      </div>

    <% end %>

    <div id="product-variants-container">
    </div>
  </div>

  <div id="product-description">
    <%= hook :cart_form do %>
      <div id="cart-form">
        <%= render 'cart_form' %>
      </div>
    <% end %>

    <div id="product_description_menu">
      <table cellpadding="0" cellspacing="0" style="width: 300px">
        <tr>
          <td><%= render 'shared/rating', :product => @product %></td>
          <td><%= render 'compare' if @comparable_products %></td>
        </tr>
        <tr>
          <td><a href="#reviews_anc">Отзывы(<%= @product.reviews.approved.count %>)</a></td>
          <td><a id="description_add_review_link" href="#reviews_anc">Добавить отзыв</a></td>
        </tr>
      </table>
    </div>

    <div id="product_like_buttons">
      <script type="text/javascript" src="//yandex.st/share/share.js" charset="utf-8"></script>
      <div class="yashare-auto-init" data-yashareL10n="ru" data-yashareType="none" data-yashareQuickServices="vkontakte,facebook,twitter"></div>
      <!--  <%= image_tag 'facebook_like.png' %> <%= image_tag 'vkontakte_like.png' %> <%= image_tag 'tweet_like.png' %> -->
    </div>

    <div id="thumbnails">
      <%= render 'thumbnails', :product => @product %>
    </div>

  </div>
</div>

<div style="clear: both" id="product_description">
  <%= hook :product_description do %>
    <h3>Описание:</h3>

    <div class="description-content">
      <% if @product.description %>
        <%= product_description(@product) %>
      <% else %>
        <%= t("product_has_no_description") %>
      <% end %>
    </div>
  <% end %>
</div>

<div style="clear: both" id="product_parameters">
  <%= hook :product_properties do %>
    <%= render 'properties' %>
  <% end %>
</div>

<% if defined?(RecentlyViewedConfiguration) && get_recently_viewed_products.count > 1 %>
  <div style="clear: both">
    <h3>Вы недавно смотрели:</h3>

    <ul class="similar_product_list">
      <% get_recently_viewed_products.each do |p| %>
        <% next if p.id == @product.id %>
        <li>
          <div class="similar_product_image_container">
            <%= small_image(p) %>
          </div>
          <div>
{'fraction_non_alphanumeric': 0.1975328167009331, 'fraction_numerical': 0.005060888818598766, 'mean_word_length': 3.1279373368146213, 'pattern_counts': {'":': 0, '<': 189, '<?xml version=': 0, '>': 199, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '646054', 'n_tokens_mistral': 2305, 'n_tokens_neox': 2155, 'n_words': 363}