Sha256: 40a046b3c37a7193235450a634c0e4f24ae98615efdabb12b74f6567d0a2d208

Contents?: true

Size: 432 Bytes

Versions: 7

Compression:

Stored size: 432 Bytes

Contents

<%= content_tag :span, class: "storytime-snippet storytime-snippet-#{snippet.id}" do %>
  <% if logged_in_storytime_user? && Pundit.policy(current_user, 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 %>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
storytime-2.1.6 app/views/storytime/snippets/_snippet.html.erb
storytime-2.1.5 app/views/storytime/snippets/_snippet.html.erb
storytime-2.1.4 app/views/storytime/snippets/_snippet.html.erb
storytime-2.1.3 app/views/storytime/snippets/_snippet.html.erb
storytime-2.1.2 app/views/storytime/snippets/_snippet.html.erb
storytime-2.1.1 app/views/storytime/snippets/_snippet.html.erb
storytime-2.1.0 app/views/storytime/snippets/_snippet.html.erb