Sha256: 555251f2b2b5902bdb80127e34d3646e5fbefedb62917c8c588dc32558673170
Contents?: true
Size: 1.08 KB
Versions: 2
Compression:
Stored size: 1.08 KB
Contents
<% # Clients of this partial must provide the following variables: # comment # # Optionally, they can also supply the following variables: per_page ||= nil thread ||= nil no_remote ||= false %> <% config = comment.thread.config %> <% if comment.errors.any? %> <div class="comment_error_explanation"> <h3><%= t "commontator.comment.errors.#{comment.id.blank? ? 'create' : 'update'}" %></h3> <ul> <% comment.errors.full_messages.each do |msg| %> <li><%= msg %></li> <% end %> </ul> </div> <% end %> <%= form_for([commontator, thread, comment], :remote => !no_remote) do |f| %> <%= hidden_field_tag :per_page, per_page %> <div class="comment_form_field"> <%= f.text_area :body, :rows => '7' %> <%= javascript_tag('Commontator.initMentions()') if Commontator.mentions_enabled %> </div> <div class="comment_form_actions"> <%= f.submit t("commontator.comment.actions.#{comment.id.blank? ? 'create' : 'update'}") %> <%= f.submit t('commontator.comment.actions.cancel'), :name => 'cancel' %> </div> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
commontator-4.11.1 | app/views/commontator/comments/_form.html.erb |
commontator-4.11.0 | app/views/commontator/comments/_form.html.erb |