Sha256: db0429590af67f815a8d993cf0dee587de1afdbff24fb81dab0c3b992ab96e1f
Contents?: true
Size: 1.37 KB
Versions: 3
Compression:
Stored size: 1.37 KB
Contents
<% # Views that use this partial must provide the following variables: # comment # # Optionally, they can also supply the following variables: thread ||= nil no_remote ||= false %> <% config = comment.thread.config %> <% if comment.errors.any? %> <div class="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 |form| %> <%= form.hidden_field :parent_id %> <% unless comment.parent.nil? %> <div class="replying"> <%= t('commontator.comment.status.replying', creator_name: Commontator.commontator_name(comment.parent.creator)) %> </div> <% end %> <div class="field"> <%= form.text_area :body, rows: '7', id: comment.id.blank? ? "commontator-thread-#{@commontator_thread.id}-new-comment-body" : "commontator-comment-#{comment.id}-edit-body" %> <%= javascript_tag('Commontator.initMentions();') if config.mentions_enabled %> </div> <div class="submit"> <%= form.submit t("commontator.comment.actions.#{comment.id.blank? ? 'create' : 'update'}") %> <%= form.submit t('commontator.comment.actions.cancel'), name: 'cancel' %> </div> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems