<commit_before><div class="container">
  <div class="dashboard-header-container">
    <div class="dashboard-restaurant-data">
      <h1><%= @restaurant.name %></h1>
      <h3><%= @restaurant.cuisine %></h3>
    </div>

    <div class="dashboard-new-promo-button">
      <%= link_to "Create A New Promotion", new_restaurant_promotion_path(:restaurant_id => @restaurant.id), class: "btn btn-lg btn-primary" %>
    </div>

    <hr class="dashboard-hr"></hr>
  </div>

  <br><br>

  <div class="col-md-6 all-promos">
    <% @restaurant.promotions.each do |promotion| %>
      <div class="col-md-12 single-promo">
        <div class="view-tickets-btn btn btn-primary btn-block">
          <%= link_to promotion.name, class: "view-tickets-btn" %>
        </div>

        <!-- <div class="table-responsive"> -->
          <table class="promo-table col-md-12">
            <thead>
              <th>Min Group</th>
              <th>Max Group</th>
              <th>Preferred Group</th>
              <th>Loss Tolerance</th>
            </thead>
            <tbody>
              <td><%= promotion.min_group_size %></td>
              <td><%= promotion.max_group_size %></td>
              <td><%= promotion.preferred_group_size %></td>
              <td>$<%= promotion.loss_tolerance.round(2) %></td>
              <!-- <td><%#= number_to_currency(promotion.loss_tolerance, locale: :en) %></td> -->
            </tbody>
          </table>
        <!-- </div> -->
      </div>
    <% end %>
  </div>

  <div class="col-md-6 ticket-div" style="display: none">
  </div>

</div>

<%= javascript_include_tag "tickets.js" %><commit_msg>add route in link for AJAX call, remove display:none styling in empty div to append partial<commit_after><div class="container">
  <div class="dashboard-header-container">
    <div class="dashboard-restaurant-data">
      <h1><%= @restaurant.name %></h1>
      <h3><%= @restaurant.cuisine %></h3>
    </div>

    <div class="dashboard-new-promo-button">
      <%= link_to "Create A New Promotion", new_restaurant_promotion_path(:restaurant_id => @restaurant.id), class: "btn btn-lg btn-primary" %>
    </div>

    <hr class="dashboard-hr"></hr>
  </div>

  <br><br>

  <div class="col-md-6 all-promos">
    <% @restaurant.promotions.each do |promotion| %>
      <div class="col-md-12 single-promo">
        <div class="btn btn-primary btn-block">
          <%= link_to promotion.name, promotion_tickets_path(promotion), class: "view-tickets-btn", id: promotion.id %>
        </div>

        <!-- <div class="table-responsive"> -->
          <table class="promo-table col-md-12">
            <thead>
              <th>Min Group</th>
              <th>Max Group</th>
              <th>Preferred Group</th>
              <th>Loss Tolerance</th>
            </thead>
            <tbody>
              <td><%= promotion.min_group_size %></td>
              <td><%= promotion.max_group_size %></td>
              <td><%= promotion.preferred_group_size %></td>
              <td>$<%= promotion.loss_tolerance.round(2) %></td>
              <!-- <td><%#= number_to_currency(promotion.loss_tolerance, locale: :en) %></td> -->
            </tbody>
          </table>
        <!-- </div> -->
      </div>
    <% end %>
  </div>

  <div class="col-md-6 ticket-div">
  </div>

</div>

<%= javascript_include_tag "tickets.js" %>
{'fraction_non_alphanumeric': 0.19124700239808154, 'fraction_numerical': 0.006594724220623501, 'mean_word_length': 2.236663433559651, 'pattern_counts': {'":': 0, '<': 133, '<?xml version=': 0, '>': 135, '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': '2875780', 'n_tokens_mistral': 1180, 'n_tokens_neox': 1102, 'n_words': 211}