views: inline notes partial into posts show page.

This commit is contained in:
evazion
2022-04-18 04:00:26 -05:00
parent dff0b0e48b
commit a45b18ed36
2 changed files with 3 additions and 2 deletions

View File

@@ -1 +0,0 @@
<article data-width="<%= note.width %>" data-height="<%= note.height %>" data-x="<%= note.x %>" data-y="<%= note.y %>" data-id="<%= note.id %>" data-body="<%= note.body %>"><%= raw NoteSanitizer.sanitize(note.body) %></article>

View File

@@ -339,7 +339,9 @@
<section id="notes" style="display: none;">
<% if @post.has_notes? %>
<%= render partial: "notes/note", collection: @post.notes.active %>
<% @post.notes.active.each do |note| %>
<article data-width="<%= note.width %>" data-height="<%= note.height %>" data-x="<%= note.x %>" data-y="<%= note.y %>" data-id="<%= note.id %>" data-body="<%= note.body %>"><%= raw NoteSanitizer.sanitize(note.body) %></article>
<% end %>
<% end %>
</section>