Sha256: 7218eacc9a66c0654ec04f70248e5a5b7d6ca70ee309f3565c131d6e55a148a0
Contents?: true
Size: 1.7 KB
Versions: 1
Compression:
Stored size: 1.7 KB
Contents
<div class="talkie-comment-holder"> <% if display_user_avatar? %> <div class="talkie-comment-creator-avatar"> <%= avatar_image_tag comment.creator %> </div> <% end %> <div class="talkie-comment-content"> <header class="talkie-comment-header"> <% if display_user_handler? %> <div class="talkie-comment-creator"> <%= link_to_creator comment.creator, class: "talkie-comment-creator-link" %> </div> <% end %> <small class="talkie-comment-created-at"><%= l comment.created_at, format: :long %></small> </header> <p class="talkie-comment-body"> <%= comment.body %> </p> <div class="talkie-comment-footer"> <% if nested_enabled? %> <div class="talkie-comment-reply"> <a href="#" class="talkie-comment-reply-link"><%= t("talkie.comment.reply") %></a> <% if allow? :destroy, comment %> <%= link_to t("talkie.comment.delete"), [talkie, comment], method: :delete, class: "talkie-comment-delete" %> <% end %> </div> <div class="talkie-comments-reply-form-container" style="display:none"> <%= form_for [talkie, Talkie::Comment.new] do |f| %> <%= f.hidden_field :commentable_id, value: commentable.id %> <%= f.hidden_field :commentable_type, value: commentable.class.name %> <%= hidden_field_tag :parent_comment_id, comment.id %> <%= f.text_area :body, placeholder: t("talkie.comment.form.body_placeholder") %> <%= submit_tag t("talkie.comment.form.reply"), class: 'talkie-comments-form-submit' %> <% end %> </div> <%= render comment.children %> <% end %> </div> </div> </div>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
talkie-0.1.0 | app/views/talkie/comments/_comment.html.erb |