<commit_before><% 
if @deal.imagen.present?
  @imageurl = @deal.imagen
else
  @imageurl = @deal.promoimage.url(:big)
end
@current_url = request.protocol+request.host_with_port
set_meta_tags og: {
  title:    @deal.title,
  description:    @deal.description,
  type:     'product',
  url:      @current_url+"/descuentos/"+@deal.id.to_s+"-"+@deal.slug,
  image:    @current_url+@imageurl,
  site_name: 'Descuentos y Promociones'
}
set_meta_tags twitter: {
  card: "summary",
  site: "@gerardoayalad",
  title:    @deal.title,
  description:    @deal.description,
  image:    @current_url+@imageurl
}
set_meta_tags canonical: @current_url+"/descuentos/"+@deal.id.to_s+"-"+@deal.slug
%>
<style type="text/css">
  .button_row .history_tools{
    display: none;
  }
</style>
<div class="row deal-detail">
  <div class="container">
    <div class="col-md-9 deal-det">
      <!--CATEGORÍA, USUARIO, COMENTARIOS Y RANKING-->
      <div class="row">
        <% if current_user.try(:admin?) %>
        <!--Comienza barra para aceptar-->
        <div class="col-md-12" style="text-align: center;margin: auto;">
          <% if @deal.status == 2 %>
            <p> Estatus: Rechazada</p>
          <% end %>
          <ul class="menu-aceptar">
            <% if @deal.status != 1 %>
            <a href="#aceptar" id="accept" class='deal-action'><li class="btn-aceptar"><span class="glyphicon glyphicon-ok"></span> Publicar</li></a>
            <a href="/descuentos/<%= @deal.id %>/edit"><li class="btn-editar"><span class="glyphicon glyphicon-pencil"></span> Editar</li></a>
            <% end %>
            <% if @deal.status != 2 %>
            <a href="#rechazar" data-toggle="modal"><li class="btn-rechazar"><span class="glyphicon glyphicon-remove"></span> Rechazar</li></a>
            <% end %>
            <a href="#eliminar" data-toggle="modal"><li class="btn-rechazar"><span class="glyphicon glyphicon-trash"></span> Eliminar</li></a>
            <%= render 'deals/modal' %>
          </ul><commit_msg>Strip Tags<commit_after><% 
if @deal.imagen.present?
  @imageurl = @deal.imagen
else
  @imageurl = @deal.promoimage.url(:big)
end
@current_url = request.protocol+request.host_with_port
set_meta_tags og: {
  title:    @deal.title,
  description:    strip_tags(@deal.description),
  type:     'product',
  url:      @current_url+"/descuentos/"+@deal.id.to_s+"-"+@deal.slug,
  image:    @current_url+@imageurl,
  site_name: 'Descuentos y Promociones'
}
set_meta_tags twitter: {
  card: "summary",
  site: "@gerardoayalad",
  title:    @deal.title,
  description:    strip_tags(@deal.description),
  image:    @current_url+@imageurl
}
set_meta_tags canonical: @current_url+"/descuentos/"+@deal.id.to_s+"-"+@deal.slug
%>
<style type="text/css">
  .button_row .history_tools{
    display: none;
  }
</style>
<div class="row deal-detail">
  <div class="container">
    <div class="col-md-9 deal-det">
      <!--CATEGORÍA, USUARIO, COMENTARIOS Y RANKING-->
      <div class="row">
        <% if current_user.try(:admin?) %>
        <!--Comienza barra para aceptar-->
        <div class="col-md-12" style="text-align: center;margin: auto;">
          <% if @deal.status == 2 %>
            <p> Estatus: Rechazada</p>
          <% end %>
          <ul class="menu-aceptar">
            <% if @deal.status != 1 %>
            <a href="#aceptar" id="accept" class='deal-action'><li class="btn-aceptar"><span class="glyphicon glyphicon-ok"></span> Publicar</li></a>
            <a href="/descuentos/<%= @deal.id %>/edit"><li class="btn-editar"><span class="glyphicon glyphicon-pencil"></span> Editar</li></a>
            <% end %>
            <% if @deal.status != 2 %>
            <a href="#rechazar" data-toggle="modal"><li class="btn-rechazar"><span class="glyphicon glyphicon-remove"></span> Rechazar</li></a>
            <% end %>
            <a href="#eliminar" data-toggle="modal"><li class="btn-rechazar"><span class="glyphicon glyphicon-trash"></span> Eliminar</li></a>
            <%= render 'deals/modal' %>
          </ul>
{'fraction_non_alphanumeric': 0.190997264362099, 'fraction_numerical': 0.0029843322556577967, 'mean_word_length': 3.07085020242915, 'pattern_counts': {'":': 0, '<': 97, '<?xml version=': 0, '>': 97, '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': '2108163', 'n_tokens_mistral': 1498, 'n_tokens_neox': 1410, 'n_words': 250}