app/views/talkie/comments/_form.html.erb in talkie-0.2.0 vs app/views/talkie/comments/_form.html.erb in talkie-0.3.0

- old
+ new

@@ -1,10 +1,14 @@ <div class="talkie-comments-form-container"> - <%= form_for [talkie, Talkie::Comment.new] do |f| %> + <%= form_for [talkie, Talkie::Comment.new], html: { class: "talkie-comments-form" } do |f| %> <%= f.hidden_field :commentable_id, value: commentable.id %> <%= f.hidden_field :commentable_type, value: commentable.class.name %> - <%= f.text_area :body, placeholder: t("talkie.comments.form.body_placeholder") %> + <%= f.text_area :body, placeholder: t("talkie.comments.form.body_placeholder"), class: "talkie-comment-body-textarea", required: "required" %> + <% if Talkie.mentions_enabled? %> + <p class="talkie-hint"><%= t("talkie.comments.form.hint_html") %></p> + <%= f.hidden_field :mention_tokens, class: "comment-mentions" %> + <% end %> <%= f.submit t("talkie.comments.form.submit"), class: "talkie-comments-form-submit" %> <% end %> </div> <h5 class="talkie-comments-count"><%= pluralize commentable.comments.size, t("talkie.comments.count.singular"), plural: t("talkie.comments.count.plural") %></h5>