Sha256: 5a279b2a19b205dc64fb9c840c340b5aac35475768f79b4fdf1b58b30a4dea68
Contents?: true
Size: 999 Bytes
Versions: 4
Compression:
Stored size: 999 Bytes
Contents
<% # Clients of this partial must provide the following variables: # comment # # Additionally, they can override the following variables: thread ||= nil no_remote ||= false %> <% config = comment.thread.config %> <% if comment.errors.any? %> <div class="comment_error_explanation"> <h3>This <%= config.comment_name %> could not be <%= comment.id.blank? ? config.comment_create_verb_past : 'updated' %> because of the following error<%= comment.errors.count == 1 ? '' : 's' %>:</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| %> <%= f.text_area :body, :rows => '7' %> <p> <%= f.submit (comment.id.blank? ? \ config.comment_create_verb_present : \ 'update').capitalize + \ ' ' + config.comment_name %> </p> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems