Sha256: e70b05acc782e94856e2110e9f65a9b5de626437d19d18b3d251d7d8ac7ee6c1
Contents?: true
Size: 1.94 KB
Versions: 6
Compression:
Stored size: 1.94 KB
Contents
<% proclaim_title @post.title %> <script type="text/javascript"> $(document).ready(function() { new CommentsHandler('div.discussion', 'div.comment', 'form.comment_form', 'form.main_comment_form', 'button.cancel_comment', 'a.reply', 'a.edit', 'a.delete', 'input.subscription_subscribe', 'div.subscription_email'); <% quill_body = @post.quill_body.html_safe if quill_body.empty? quill_body = '{}' end %> new Quill('div.post_body', { scrollingContainer: 'div#scrolling-container', theme: 'bubble', readOnly: true, }).setContents(<%= quill_body %>) }); </script> <div style = "float: right;"> <% if policy(@post).edit? %> <%= link_to 'Edit', edit_post_path(@post) %> <% end %> <% if policy(@post).destroy? %> <% if policy(@post).edit? %> | <% end %> <%= link_to 'Delete', @post, method: :delete, data: { confirm: 'Are you sure?' } %> <% end %> </div> <div class = "post"> <div class = "post_title"> <h1 class = "post_title"><%= content_for :proclaim_title %></h1> <h2 class = "post_subtitle"><%= @post.subtitle %></h2> </div> <div id="scrolling-container"> <div class = "post_body show"> </div> </div> <div class = "post_information"> <% if @post.published? %> Written <%= timeago_tag @post.published_at, format: "%B %d, %Y" %> by <% else %> Draft last updated <%= timeago_tag @post.updated_at, format: "%B %d, %Y" %> by <% end %> <%= @post.author.send(Proclaim.author_name_method) %> </div> <h2>Comments</h2> <div id="comments"> <%= comments_tree_for @post.comments.hash_tree %> </div> <% commentTemplate = @post.comments.build %> <%= render partial: "proclaim/comments/form", locals: { comment: commentTemplate, target: "#comments", main: true } %> </div>
Version data entries
6 entries across 6 versions & 1 rubygems