<commit_before><table id="notifications" class="generic_datatable table table-striped table-bordered">
  <% if defined? title %>
    <caption><h3><%= title %></h3></caption>
  <% end %>
  <thead>
    <tr>
      <th>Status</th>
      <th>Event</th>
      <th>Start at</th>
      <th>Channels</th>
      <th colspan="1"></th>
    </tr>
  </thead>

  <%# TODO: I need to allow info only Notifications %>
  <tbody>
    <% notifications.each do |notification| %>
      <tr>
        <td><%= notification.status %></td>
        <td><%= notification.event ? (link_to notification.event.title, notification.event) : 'None' %></td>
        <td><%= notification.scheduled_start_time %></td>
        <td><%= notification.channels %></td>
        <td><%= link_to 'Edit', edit_notification_path(notification) %></td>
      </tr>
    <% end %>
  </tbody>
</table><commit_msg>Add Edit permission check to Notifications table<commit_after><table id="notifications" class="generic_datatable table table-striped table-bordered">
  <% if defined? title %>
    <caption><h3><%= title %></h3></caption>
  <% end %>
  <thead>
    <tr>
      <th>Status</th>
      <th>Event</th>
      <th>Start at</th>
      <th>Channels</th>
      <th colspan="1"></th>
    </tr>
  </thead>

  <%# TODO: I need to allow info only Notifications %>
  <tbody>
    <% notifications.each do |notification| %>
      <tr>
        <td><%= notification.status %></td>
        <td><%= notification.event ? (link_to notification.event.title, notification.event) : 'None' %></td>
        <td><%= notification.scheduled_start_time %></td>
        <td><%= notification.channels %></td>
        <td><%= link_to 'Edit', edit_notification_path(notification) if can? :update, notification %></td>
      </tr>
    <% end %>
  </tbody>
</table>
{'fraction_non_alphanumeric': 0.19663865546218487, 'fraction_numerical': 0.0033613445378151263, 'mean_word_length': 3.013483146067416, 'pattern_counts': {'":': 0, '<': 93, '<?xml version=': 0, '>': 93, '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': '3516975', 'n_tokens_mistral': 622, 'n_tokens_neox': 579, 'n_words': 133}