<%= content_tag :span, class: "storytime-snippet storytime-snippet-#{snippet.id}" do %>
  <% if logged_in_storytime_user? && Pundit.policy(current_user, Storytime::Snippet).manage? %>
    <%= link_to [:edit, :dashboard, snippet], class: "storytime-modal-trigger", remote: true do %>
      <span class='snippet-content'><%= raw snippet.content %></span>
    <% end %>
  <% else %>
    <%= raw snippet.content %>
  <% end %>
<% end %>
<%= content_tag :span, class: "storytime-snippet storytime-snippet-#{snippet.id}" do %>
  <% if logged_in_storytime_user? && Pundit.policy(current_user, Storytime::Snippet).manage? %>
    <%= link_to [storytime, :edit, :dashboard, snippet], class: "storytime-modal-trigger", remote: true do %>
      <span class='snippet-content'><%= raw snippet.content %></span>
    <% end %>
  <% else %>
    <%= raw snippet.content %>
  <% end %>
<% end %>
Add storytime to link_to array
Add storytime to link_to array
