<commit_before><% if user_signed_in? %>

<span class="tag-title">Vendors <%= link_to image_tag("/assets/icons/add.png"), new_vendor_path, :data => { :colorbox => true }, class: "link-btn" %></span>
<p id="notice"><%= notice %></p>
<table>
  <tr>
    <th>Name</th>
    <th>Email</th>
    <th>Action</th>
  </tr>

<% @vendors.each do |vendor| %>
  <tr>
    <td><%= vendor.name %></td>
    <td><%= vendor.email %></td>
    <td><%= link_to image_tag("/assets/icons/view.png"), vendor, :data => { :colorbox => true }, class: "link-btn" %>
    <% if current_user.id==vendor.user_id %>
    <%= link_to image_tag("/assets/icons/edit.png"), edit_vendor_path(vendor), :data => { :colorbox => true }, class: "link-btn" %>
    <%= link_to image_tag("/assets/icons/delete.png"), vendor, method: :delete, data: { confirm: 'Are you sure?' }, class: "link-btn" %></td>
     <% else %>
    <td>Edit</td>
    <td>Destroy</td>
    <% end  %>
    <% end  %>
</tr>

</table>
<tr align='right'><td><%= will_paginate @vendors %></td></tr>
<br />
<% end %>
<commit_msg>Removing unnecessary links from vendors view<commit_after><% if user_signed_in? %>

<span class="tag-title">Vendors <%= link_to image_tag("/assets/icons/add.png"), new_vendor_path, :data => { :colorbox => true }, class: "link-btn" %></span>
<p id="notice"><%= notice %></p>
<table>
  <tr>
    <th>Name</th>
    <th>Email</th>
    <th>Action</th>
  </tr>

<% @vendors.each do |vendor| %>
  <tr>
    <td><%= vendor.name %></td>
    <td><%= vendor.email %></td>
    <td><%= link_to image_tag("/assets/icons/view.png"), vendor, :data => { :colorbox => true }, class: "link-btn" %>
    <% if current_user.id==vendor.user_id %>
    <%= link_to image_tag("/assets/icons/edit.png"), edit_vendor_path(vendor), :data => { :colorbox => true }, class: "link-btn" %>
    <%= link_to image_tag("/assets/icons/delete.png"), vendor, method: :delete, data: { confirm: 'Are you sure?' }, class: "link-btn" %></td>
    </td>
    <% end  %>
    <% end  %>
</tr>

</table>
<tr align='right'><td><%= will_paginate @vendors %></td></tr>
<br />
<% end %>

{'fraction_non_alphanumeric': 0.2519267822736031, 'fraction_numerical': 0.0, 'mean_word_length': 3.7420091324200913, 'pattern_counts': {'":': 0, '<': 91, '<?xml version=': 0, '>': 103, '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': '4869753', 'n_tokens_mistral': 835, 'n_tokens_neox': 792, 'n_words': 163}